Find All Event Handlers for a Winforms Control in .Net
Is there a way to find all event handlers for a Winforms control? Specifically statically defined event handlers? ...
Is there a way to find all event handlers for a Winforms control? Specifically statically defined event handlers? ...
The Visual Studio 2005 Forms Designer automatically reorders statements in it's generated form.cs.designer file. This makes code reviews and svn logs quite useless for UI issues as a little change is lost in the countless auto-generated ones. Same goes for the auto-generated .resx files. I'm sure this issue has been annoying more than j...
I would like to close a modal form when the user clicks outside (anywhere on the computer desktop) the modal form. How can we do this as a modal form is not meant to lose focus. ...
I know that here there is a duplicate but I would like, if possible, to be able to define a relative path for 'Start External Program' or any workaround that do not constrain me to add a complete new empty project to my solution. I am using VB.NET in Visual Studio 2010 environment developing WinForms apps. ...
Hi, see below program. I start a new thread x with function abc, then I do some longer task. Why does x only start after end sub? Shouldn't it start right-away, before sleep ? Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim x As New Threading.Thread(AddressOf abc) ...
Hello all! I have a winform with a form called MainForm. I have a static class called ObjMgr. In ObjMg, I have several other static classes, values, but Its not important now. In the ObjMgr class, I also have a static void Pulse() method, that I populate my other static classes in the ObjMgr. This pulse method have to run very often, l...
Hi, As the title says, I am wondering if it is possible to implement a Drop Down Menu on the Title Bar of my Form, similar to Firefox 4's: Is it possible for me to do this with C# and WinForms? If so, how? It doesn't have to be very fancy like the Office Ribbon. In fact it can look exactly the same as the Firefox button, but with m...
I'm integrating the CKEditor in a WinForms application and I would like to know how can I: add a custom button and open a custom WinForms dialog call 'Cut', 'Copy', 'Paste' from code in order to integrate the commands with my application cut, copy and paste insert some HTML text at the position where the mouse cursor is placed enable t...
I have a LOB app that we use internally that is Winforms with a Linq to SQL DAL. I want to make a copy of this so that we can test some major changes going forward. We use TFS 2010, is this what branching can do? I need to be able to edit GUI and DAL while being able to deploy it side by side with the Live version. Then, once the c...
In C#, how can I make a ToolTip remain displayed until the mouse move out of the ToolTip region. No matter what delay I set it stay displayed. I tried to change AutoPopDelay, InitialDelay, and ReshowDelay properties to 0 but the only way I can see is to set the delay to a very large value which is not what I'm looking for. ...
Hi, I have one problem. I validate two texboxs. If texbox are not validate I show error message with error provider. Situation : tbAzetId.Text="string"; tbHeslo.Text=empty; errorprovider show error message in tbHeslo, this is ok. Then I write some text in tbHeslo, click on button but errorprovider is still show error message in tbHes...
This is a C# WinForms app: A TabControl by default will change tabs when the Control+PageUp or PageDown keys are pressed. How do I prevent this behavior? I've tried to handle the event as follows, but the control changes tab pages anyway: private void tabControl_KeyDown(object sender, KeyEventArgs e) { if (ModifierKey...
In VB.Net with Winforms how do I make an image follow the cursor even when it leaves the form? I want to do this during a drag and drop operation. BCL and/or GDI is better for my usecase than P/Invokes. If you are familiar with PeaZip, it does something of this sort when dragging a file from it's interface. ...
In a WinForms TextBox control, how can I obtain, in screen coordinates the bounding box of the text as a specified character position? I know the start index and end index of the text in question, but given those two values, how can I find the bounding box of that text? To be clear... I know how to get the bounding box of the control i...
Since the ToolTip doesn't do what I need, I created my own based on a Label using C#. My problem is when my tooltip is too big, the Label is cut by the Form. The Label displays in the form and not on top of the form. Can I make a Label to display on top of the Form to allow it to be bigger than the Form and see the entire Label? If yes ...
How times changed the screensaver Code View : RegistryKey screenSaverKey = Registry.CurrentUser.OpenSubKey(@"Control Panel\Desktop"); if (screenSaverKey != null) { string screenSaverFilePath = screenSaverKey.GetValue("SCRNSAVE.EXE", string.Empty).ToString(); if (!string.IsNullOrEmpt...
My code is used to form1 private int X,Y; private void timer1_Tick(object sender, EventArgs e) { if (this.X != Cursor.Position.X || this.Y != Cursor.Position.Y) { this.Form1_Load(this, e); } else { this.Text = (Convert.ToInt16(this.Text)+1).ToSt...
Hello, I have a from "fm" that is a simple info window that opens every 10 mints (fm.Show();) . how I can make that every 10 mints it will check if the the form "fm" is open and if it is open it closes it and open it again! now the from fm is always created with form fm = new form(); so when I try to check if the form is open it will ...
I want to set DataGridView's columns to ReadOnly except one or two columns. I was trying to do this. dgv.Columns.AsQueryable().ForEach(col=>col.ReadOnly=true); But I found that these extension methods are not available at DataGridViewColumnCollection How can I do the same by this way ...
I'm trying to make an Aduto-Forum poster with VB.NET windows form application This is the page, http://www.inviteshare.com/community/viewforum.php?id=9 First I'm trying to log-in automatically I insert username & pass but I can't click the Login button because there are 2 buttons with the same ID on the page. ( input type="image" name="...