Skip to main content
The 2024 Developer Survey results are live! See the results

All Questions

0 votes
0 answers
63 views

How to handle events from Usercontrol in separate AppDomain

I have a number of dll assemblies with usercontrols that I load into a Border control in my main window (like old MDI approach). I wish to now load these assemblies into a separate AppDomain. I have ...
Seer's user avatar
  • 3
-1 votes
1 answer
325 views

Calling a specific UserControl based on which node is checked in a TreeView structure

In my Windows Form, there are two User Controls, placed one on top of the other. I also have a TreeView Structure (TreeView1) that has a root node (with two child nodes itself, with check boxes). ...
Gamma-ray-burst's user avatar
0 votes
1 answer
280 views

How can you pass events from a UserControl to one of its children?

Assume you have a UserControl called ActionableListBox which is composed of a DockPanel that contains a Button and a ListBox. Setting up ActionableListBox to expose the properties on the wrapped ...
Mark A. Donohoe's user avatar
0 votes
1 answer
315 views

C# Windows Form User Control Not Recognized by Calling Form

I'm writing a simple user control with two buttons: Save and Cancel. I think that it thinks there are no subscribers because it's always null where I indicated in the code. Please help. Here is ...
Missy's user avatar
  • 1,331
1 vote
1 answer
963 views

Dynamically created User Control detecting button click from main Form

I have been trying to figure this out for the better part of two days and have searched everywhere to find a solution, so if this is easily answered I apologize up front. Also, I am fairly new to c# ...
koosh's user avatar
  • 13
0 votes
1 answer
3k views

Expose all event handlers of UserControl

I have a bunch of TextBoxes in my WinForm UserControl. Each of those text boxes has few event handlers such as On_Enter - show ListBox with suggestions, On_KeyUP - if Keys.Code == Keys.Enter - ...
ArtK's user avatar
  • 1,159
1 vote
2 answers
3k views

Use both Telerik RadGrid's OnRowClick as well as custom User Control Event Handler

I have a Telerik RadGrid populated in a Web User Control in C#, and it has a client OnRowClick event that occurs in Javascript on the client side of my User Control. This works nicely. I also have ...
paged.csci's user avatar
0 votes
2 answers
318 views

Click event not registering when clicking on certain parts of UserControl

Refer to this previous question I asked where I couldn't get the click event for a UserControl on my form to fire off. The way I have my control set up is I have the control itself sized to 50, 20. I ...
Ben Black's user avatar
  • 3,760
0 votes
1 answer
1k views

Click event not firing for custom UserControl on a form

I have created a UserControl called Toggle, this is my code for it [DefaultEvent("Click")] public partial class Toggle : UserControl { public bool ToggleStatus { get { return toggleStatus; } } ...
Ben Black's user avatar
  • 3,760
0 votes
0 answers
873 views

How to Trigger Click Event of a Button in UserControl from ContentPage?

I have a ShoppingCart UserControl on MasterPage. I have a following functionality: User adds item to the cart. after clicking the button "Complete Sale" in UserControl the page is redirected to "...
SHEKHAR SHETE's user avatar