Archived Months
June 2003
July 2003
August 2003
September 2003
October 2003
November 2003
December 2003
January 2004
February 2004
March 2004
April 2004
May 2004
June 2004
July 2004
August 2004
September 2004
October 2004
November 2004
December 2004
January 2005
February 2005
March 2005
April 2005
May 2005
June 2005
July 2005
August 2005
September 2005
October 2005
November 2005
December 2005
January 2006
February 2006
March 2006
April 2006
May 2006
June 2006
July 2006
August 2006
September 2006
October 2006
November 2006
December 2006
January 2007
February 2007
March 2007
April 2007
May 2007
June 2007
July 2007
August 2007
September 2007
October 2007
November 2007
December 2007
January 2008
February 2008
March 2008
April 2008
May 2008
June 2008
all groups > dotnet windows forms > january 2008 > threads for january 8 - 14, 2008

Filter by week: 1 2 3 4 5

Abort form closing
Posted by Aleksey Timonin at 1/14/2008 6:33:26 PM
Hi guys, I show my Form in dialog mode. So I have "Ok" button on it with DialogResult = Ok. What is the right way and how can I abort form closing from the button click event. Thanks a lot Aleksey ...more >>


drawing issue with modeless window
Posted by Nathan Smith at 1/14/2008 10:34:04 AM
I have a popup window created from a form that contains a progress bar and a label field. The problem is while the progress bar updates fine, the label field does not show up at all on the form. I have tried a couple of different things, but nothing seems to make the label field to show. ...more >>

setting focus to control after validation
Posted by kelvin.koogan@googlemail.com at 1/14/2008 12:56:40 AM
I have a number of controls on a tab page. I want to validate them all when the user tries to leave the tab. I then want to highlight the first control which fails validation. How can I do this? I try setting focus but something seems to set the focus back to the control which had it before va...more >>

Generate the Datalink in code
Posted by Elmo Watson at 1/13/2008 12:33:58 AM
I want to programmatically generate the Windows datalink window, so the end user can choose the database of his choice, and get back the connection string he generates, using the DataLink window. I had some old COM code a long time ago (with vb6) - - but I need to know how to do it at least...more >>

How to trap F1 from a menu item
Posted by Johnny at 1/11/2008 5:49:09 PM
Hi there, Does anyone know how I can trap F1 to activate help when a menu item is active, preferably without creating a "ToolStripMenuItem" derivative (so I can quickly wire this up using the designer). I'm doing this when my users activate a menu from my main form. I simply want to activat...more >>

How to select a GridItem in PropertyGrid?
Posted by Arto Viitanen at 1/11/2008 4:00:31 PM
PropertyGrid has property SelectedGridItem, that lets you get and set the selected GridItem. Fine, but where do you get the GridItem? I know you can get sub items of a Griditem by its GridItems property and its parent with Parent property, but where do you get the initial GridItem? -- Arto Vi...more >>

Serialization of objects
Posted by Flack at 1/11/2008 10:18:07 AM
Hey guys, Lets say I have an object, MyObject, that has a couple of public properties. I want to serialize this object and include it in a larger xml message. So, I have some elements in the xml message that have nothing to do with the object, whose values are retrieved elsewhere, and some ...more >>

Combobox SelectedItem
Posted by Robert at 1/11/2008 9:19:07 AM
I am trying to set a Combobox's SelectedItem property to an object but without any success. Code Example: for (int i = 1; i < 10; i++) { Person p = new Person("JDoe" + i.ToString()); Combobox1.Items.Add(p); } ...more >>



NULLABLE datagridviewcomboboxcolumn (vbnet 2005)
Posted by alex at 1/11/2008 3:48:01 AM
I have a datagridview with datagridviewcomboboxcolumn bind to a nullable integer datatable field When I add a new row I can do it without select any item on combo and the NULL value in inserted on the datatable But if I select an Item than there is no way to unselect it and choose null Even ...more >>

Help, Can't send to SMTP using SmtpClient using SSL on port 465
Posted by Rob Dob at 1/10/2008 10:27:06 PM
The following code is giving me a timeout problem., no matter what I do I can't send a piece of mail using .net2.0 System.Net.Mail.SmtpClient via port 465 and using ssl, if however I try using outlook or outlook express it works fine.. System.Net.Mail.MailMessage msgMail = new S...more >>

How to browse for a folder
Posted by Andy at 1/10/2008 6:51:48 PM
I need to allow the user to select a folder for further processing of a procedure. How do I do this in C# code? Thanks in advance. Andy...more >>

Design verbs
Posted by Luis F. Rodas at 1/10/2008 4:26:38 PM
Hi all, Can I get "design verbs" from a control (System.Windows.Forms.Control) ? How ? I would like display them in a popup menu. Best Regards, Luis F. (Indusoft Team) ...more >>

DataGridView column DisplayIndex problem
Posted by Aleksey Timonin at 1/10/2008 4:09:19 PM
Hi guys, I try to adjust columns order in DataGridView via DisplayIndex property and it doesn't work me properly. Here is the code: protected override void AdjustGridColumns() { foreach (DataGridViewColumn clmn in _grdCustomizations.Columns) clmn.Visible = false; AdjustColumn...more >>

strange windows behaviour
Posted by EricW at 1/10/2008 2:09:31 PM
Hi, Before my main form is opened, I have my program check some things. One of the checks will open a form and when the user clicks on a button on that form, it will open another form to fill in some data. On the last form there 2 buttons, one to save and one to cancel. On save the data is s...more >>

form minimizes after messagebox.show
Posted by Dominik Gallus at 1/10/2008 1:38:28 PM
Hello guys, got a weird problem here. On sucessful saving operations i'm showing a messagebox with the use of MessageBox.Show(...); The problem is, when the messagebox is shown and the user clicks ok, the main form minimizes. That is very annoying. Any suggestions? Thanks in a...more >>

Closing a notifyicon application
Posted by Zamdrist at 1/10/2008 10:29:20 AM
So I have my notify icon, the form, the context menu all that jazz working fine. My notifyicon has a context menu with an Exit option. Works fine. If the form is current visible and you close is (X)...it hides itself rather than close. Double click on the notifyicon, and it reappears. All i...more >>

Drag a UserControl
Posted by Arne Garvander at 1/10/2008 7:16:03 AM
I have made a user control that is full labels. How do I drag this control unto a form? I envision a windows form with about three user controls, each user control has 5-10 labels. User controls works great in ASP.Net, but seems less flexible on a windows form. What am I doing wrong? -- Ar...more >>

Detecting Minimize event causes loop
Posted by BillAtWork at 1/10/2008 5:30:01 AM
Hi, Found some code to do this but seems to be causing a stack overflow due to a loop somewhere. Code is: .... public event EventHandler Minimize; .... //in form constructor .... this.Minimize += new EventHandler(Form1_Minimize); .... void Form1_Minimize(o...more >>

I can't get my computer to go to system restore?
Posted by yutah at 1/9/2008 8:38:01 PM
When I power up my computer and hit F10 the computer will not bring up the system restore screen? It brings me to the safe mode start up which will do none of the comands offered? Is there a way to force it to the restore besides F10 on start up? I don't have a xp disc because its on the har...more >>

How check ActiveX already registered from ocx or dll file?
Posted by Alvaro E. Gonzalez V. at 1/9/2008 2:36:06 PM
Hi. Using C#, receiving input ocx or DLL file that has an ActiveX How can verify that has already been registered in the system? tks. Alvaro....more >>

Third-party tools
Posted by Andy at 1/9/2008 2:15:26 PM
I am looking to get a good set of third-party controls for use in .NET that can simplify programming WindowsForms in C#. Controls like Browse for Folder, Button Edit, Grids, etc. would really help in creating applications. Any recommendation is greatly appreciated. Thanks in advance. A...more >>

PropertyGrid and Commands Pane
Posted by Luis F. Rodas at 1/9/2008 9:46:49 AM
Hi all, I developed a form designer using the PropertyGrid control. The commands pane is not appearing for controls that have "hot commands" (example Tab Control: AddTab and RemoteTab). I set the "CommandsVisibleIfAvailable" property for true. Anybody has some idea (or sample) of what it ca...more >>

Dynamically loaded controls
Posted by Arne Garvander at 1/9/2008 6:13:00 AM
How can I dynamically load controls unto a windows form? I need to write some custom controls that are a composite of other controls. These custom controls needs to be dynamically loaded into a container, maybe a panel. I know this can easily be done in Asp.net. Now I need to duplicate this t...more >>

AutoGrow for ListView (View List)
Posted by martin.zugec@gmail.com at 1/9/2008 5:27:12 AM
Heya, I encountered one problem today. I am using ListView for storing some items here. View mode is List (to show as many items as possible), however view is trimmed (instead of TestPackageXXX it will show TestPacka...). Is there any option to change this behavior? Thanks, Martin...more >>

how to give DataGridViewButtonColumn a background image
Posted by Lamis at 1/9/2008 1:15:00 AM
Hi this is my code DataGridViewButtonColumn buttonupColumn = new DataGridViewButtonColumn(); buttonupColumn.HeaderText = ""; buttonupColumn.Name = "btnUp"; buttonupColumn.Text = "Up"; I want to have a background image to my button instear ...more >>

Control Selection & Resizing at runtime
Posted by for1248 at 1/8/2008 1:04:25 PM
I have a common mousemove/down/up handler for any control placed on the panel at runtime .It's Working fine . I need for moving and resizing controls (labels/textboxes/checkboxes/etc) and shape controls (LineShape ,RectangleShape, OvalShape which are from powerpacks.dll ) which i place on the...more >>

tree view
Posted by Steve at 1/8/2008 8:50:02 AM
I would like to impliment cut, copy, paste functionality on selected nodes (and sub nodes) of a tree view control that resides on a windows form. How can I do this? -- Steve H....more >>

ClickOnce deployment with Password
Posted by Neeraj at 1/8/2008 5:14:33 AM
Hi All I want to publish my application in such a way that at the time of Install it should ask for password.Means If put publish URL then will ask for password if i click on Install button .So without password no one can download my application.I do not know it is possible through publ...more >>


DevelopmentNow Blog