winforms

Visual C++ 2008 Forms Incredibly Slow

In Visual C++ 2008 Express Edition when adding forms all of the default handlers for buttons, check boxes, etc go into FormName.h by default. So when I do this most of my handler code now goes in the header, then I switch back to the "Design View" to see the form designer. Once I have any reasonable size interface going back to "Design V...

change hue/saturation of screen without using form background color

in vb.net i would like to change the hue and saturation and darkness of the screen without using a form. for example these two colors change the color of the screen directly (however i doubt they were programmed in vb.net) http://www.stereopsis.com/flux/ http://colororacle.cartography.ch/ ...

Retaining the changes made to the backcolor property

Hi all, I am developing a windows application. I have 3 forms: I want to change the backcolor of all the 3 forms to the color selected by the user. I have used the following code I am able to change the backcolor but When I exit the application and restart it I am not able to get the color that user has set. I am getting the default ...

ZedGraph: just the dots

Hi! I am new to ZedGraph, so far I could draw curves and bars but couldn't figure out how can I display just the dots without connecting them. Can you help me? (Context: C#, WinForms) ...

How to put extended WinForms Control on ToolBox

I plan to add functionalities to TextBox with the following: public class TextBoxExt : TextBox { protected override void OnKeyPress(KeyPressEventArgs e) { base.OnKeyPress(e); } } The question is how can we use this TextBoxExt? Is there anyway to get this class onto the ToolBox so that ...

C# - How to put extended WinForms Control on ToolBox

I plan to add functionalities to TextBox with the following: public class TextBoxExt : TextBox { protected override void OnKeyPress(KeyPressEventArgs e) { base.OnKeyPress(e); } } The question is how can we use this TextBoxExt? Is there anyway to get this class onto the ToolBox so that ...

multiple grid form layout

Hello: I have a time sheet type of presentation, which is currently using three (3) datagridview controls on a winform as follows: 1) projectGrid - rows are variable, with one for however many projects were worked on that week (typical is 1 to 5 for most users). 2) nonProjectGrid - four rows of fixed activities one can record time spe...

WinForms Forms.Loaded like member

I have a form on that form I have a radiobutton When the radiobutton changes I want to do some stuff. However I only want to do this if the FormLoad event has fired and dor some wierd reason the radiobutton changed event is getting hit prior to the FormLoad Call stack is not much use, but its coming from the settings.designer.cs file...

WinForm not receiving messages except right after creation

I've got some unmanaged code sitting in a DLL. It publishes some methods that my calling (managed) code uses to hook into some COM notifications. Rather than deal with unmanaged code calling back into managed code, I've created a hidden Control derived object and am passing its handle property which the unmanaged code then uses as a pa...

.net dottrace memory profiling usage questions - Filter Circular References

I use DotTrace as memory profiler. I wonder how it can filter circular incoming references? As for the scenarios that I want to see who the hell holds reference to my object and keep it alive, those circular references, especially event handlers are not of interest but the true bad reference is often hidden among them. Additionally, w...

Winforms ToolStripSplitButton displays with a grey line under it, and is only raised on when the mouse hovers over it

I'm trying to figure out the ToolStripSplitButton. The purpose is to display a usercontrol gauge when a ToolStripSplitButton is pressed. However, no matter what settings I try, there is a grey line visible below the button. The ToolStrip itself is set to RenderMode.System, is not docked, and the ToolStripSplitButton is the only compone...

How to convert TabControl into wizard style in .NET?

I want to have my form in a wizard style and so I used TabControl to have the pages of the Wizard as my TabPages. There were small issues to be corrected, such as, making the tabs being displayed in runtime. I inherited the TabControl and I added a property called "TabsVisible" and corrected it. It worked fine. (See : http://dotnetrix.co...

About PropertyStore and MDI child form.

This is .net WinForm question about MDI setting. When the main form creates an MDI child form, the main form's PropertyStore holds a reference to the MDI child form. I wonder whether this will cause the child form to be alive even if it is closed. If so, what shall I do when disposing the child form in order to remove this reference? T...

Windowsforms: How to draw lines/bars on a DataGridView?

I'm using a DataGridView in a Windows application (.NET 3.5) showing some colored bars (basically "tasks in time"): What I need now is, to show a custom graphical "completed" bar on the cells depending on a percentage value. Here is a photoshopped image: Any hint how I could approach the problem or a creative solution? Thanks! Ed...

Should a control be disabled and hidden or just hidden?

When manipulating controls on a .NET windows form which of the following is best practice and why? //Hide control from user and stop control form being useable oControl.Enabled = false; oControl.Visible = false; or //Hide control from user and stop control form being useable oControl.Visible = false; I've been using the first case ...

Execute .NET application (no-install) from webpage (intranet) and pass argument(s)?

Hi, i built an intranet on .NET MVC. I'm also building a separate planning tool in Winforms (performance choice). I would now like to 'open' the planning tool from the intranet (IE7) and pass an argument (e.g. Workorder number) so I can display the planning for that specific item. Is this possible? I have a .application file for the W...

C# Datagridview - Convert TextColumn to ComboBoxColumn

Hello! I have a windows forms application containing a datagridview control. The datagridview is populated by the contents of an xml file. At the moment, all of the columns are displayed as datagridviewtextboxcolumns. I want to select one that is populated by a particular xml tag and display it's content in a datagridviewcomboboxcolumn a...

how to get an icon to appear next to the clock?

i built a small app in vb.net and i would like my icon to appear next to the computer clock in the taskbar. how can i do this? ...

show / hide form when cursor is in the top left corner

i have a little form that looks like this in vb.net http://img11.imageshack.us/img11/5651/samplennk.jpg you know how you can set the windows taskbar to appear and disappear when the position of the mouse is all the way at the bottom? i want to do the same thing with my form when the mouse is in the top left corner of screen. or perhap...

detecting a mouse click that is outside of the form

i would like my form to dissappear when the user clicks outside the form in vb.net. how do i do this? ...