Description:
Microsoft .NET technology newsgroup.
|
|
|
The DropDown triangle's color in a ToolStripDropDownButton
|
| |
Hi there - if I try to set the BackColor and ForeColor of a ToolStrip - like this: this.toolStrip1.BackColor = Color.Black; this.toolStrip1.ForeColor = Color.White; The ToolStripDropDownButton's drop down triangle remains black - which makes it invisible - until the user moves their mouse over the control... more »
|
|
Form Load Events
|
| |
Hello All, I have a large application with multiple Windows Forms. I have code that needs to be executed in the Load Event of every Form in the application and was wondering if there was a way to add the code without having to go to each form and copy and paste? Is there a global location to override all the Load Events?... more »
|
|
OnValidating override question
|
| |
Let's say I subclass a control such as TextBox, and I override OnValidating. The first thing I should do, I think, is call base.OnValidating. Then, I should check if the base has cancelled? Then, what if I am subclassed? In other words, when the subclass calls me. Looking for a general strategy for... more »
|
|
Browsable attributes won't save
|
| |
I have a text box (inherited) with some browsable attributes defined such as the following. I instantiate one of these on a control, and open the control in VS designer. At one point I set them to nondefault values (false in this case) and that is how they are set in the designer.cs file. When I try to change them back to true, it accepts it in the designer. I save, and... more »
|
|
Move Data From popup form to Textbox
|
| |
I have a main VB 2005 form, with a button to launch a popup form with a ListView containing available choices. My aim is to send the Listview's value back to the main form and close the popup. On the double click event of the Listview is where I'm trying to pass the value back to the main form. That is where I'm stuck. I cannot code the call... more »
|
|
drawing on a panel
|
| |
when I draw an ellipse on a panel on a form the ellipse actually gets drawn behind the panel, so that the panel covers it. Is there a way to draw graphics inside a panel, or some other control, so that the panel serves as a canvas, and the mouse coordinates are relative to the panel? even if I use the panel MouseMove event the coordinated of e... more »
|
|
OnResize and OnPaint
|
| |
in my application, the user creates graphics (ellipses etc.) on the form, but when the form repaints or resizes the graphics disappear. is there a simple way to make the methods OnPaint and OnResize draw everything that's on the form?
|
|
using a wait cursor while datagridview refreshes
|
| |
Hi Using vs2008 C# winforms So i have a datagridview bound to a dataset being populated via a sqldataadaptor. I have implemented a wait cursor, but it always reverts back to default to soon. It seems the data is loaded, within a try catch clause, which is where i have my wait cursor code, but large amount of data takes a little... more »
|
|
|