Archived Months
November 2003
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 controls > february 2008

DateTimePicker : Does anyone have some code for nullable values?
Posted by Russell Mangel at 2/28/2008 9:46:54 PM
Hi, Does anyone have a solution for making the Windows Forms DateTimePicker behave with nullable dates? Specifically, to display *nothing* when the date is null, control will also be bound using Windows Forms BindingSource. I am using Visual Studio 2005, .NET 2.0 only. I don't want to use a...more >>

.NET 2.0 border around controls
Posted by Jarod80 at 2/25/2008 6:56:01 PM
How is it possibile to draw a black border around the controls (TextBox, Combobox) while they're focused, not in designtime, at runtime? I have inherited the controls in some customclasses of mine. The problem I seem to have is that my border get overwritten almost always. Thanks. ...more >>

WPF or Windows Forms
Posted by John at 2/24/2008 5:34:00 PM
Hi If I have a choice of WPF or Windows Form versions of a control which one should I purchase? Thanks Regards ...more >>

Using the WebBrowser Control with vb.net to print a web-page (including any javascript code changes)
Posted by \ at 2/23/2008 9:56:58 PM
I'm using vb.net in Visual Studio 2005 to create an executable that can print a web-page. I use the WebBrowser Control... Navigate to the page... and then call WebBrowser1.Print() It works! .... except for 1 thing. If the web-site uses any javascript code to change the display (hi...more >>

Listview column width - automatically calculate?
Posted by Homer J. Simpson at 2/20/2008 10:59:00 AM
Hi all, What's the tried and true method to programmatically set the width of a listview column at runtime so its header's text is completely visible (eg, it doesn't get trimmed and have '...' appended at the end), given that I don't know ahead of time what this text is? This can be hard...more >>

Detecting cursor position in numericUpDown control ?
Posted by Jean-Charles at 2/19/2008 9:55:05 AM
Hi I would like to detect the cursor position in a numericUpDown control (like in a textbox). I fact I want to personnalize this control to have a variable increment depending on the cursor function so as to be able to to increment or decrement the digit on which the cursor is located. ...more >>

Capturing hot keys
Posted by John at 2/18/2008 9:49:31 PM
Hi How can my main form capture key strokes and pass them to various controls on the form? Thanks Regards ...more >>

Add or insert an existing treenode to a treeview?
Posted by Markus Sch. at 2/18/2008 4:33:01 AM
Hello, all methods of the treenodescollection for adding or inserting a new treenode support the possibility for giving keys to the new treenodes. But the .add or .insert methods for exisiting treenodes do not?? I need the possibility to move treenodes to other parenttreenodes. I need ke...more >>



96 dpi vs 120 dpi
Posted by Charles A. Lackman at 2/17/2008 1:04:13 PM
Hello, I wrote a program in .NET 2.0 and it works great when the host compter is set to 96 dpi. I have a lot of users that are using 120 dpi and the forms don't fit on the screen and the textboxes and label are run together. I changed autoscalemode to Font, None, DPI and Inherrit and none...more >>

Changing the BackColor on a control
Posted by Cartoper at 2/14/2008 9:59:36 AM
I am working in VS2008. I have a TabControl on a form. The background color of the TabControl is not the standard KnownColor.Control color, it is a lighter color. I have placed a TrackBar on the TabControl and it's BackColor is that of the KnownColor.Control. The question is, how do I make...more >>

OwnerDrawn Combobox - Varying Fonts
Posted by djdouma at 2/12/2008 8:29:02 PM
I'm developing a combobox that lists the fonts in their given font face, attempting to replicate how MS Word displays them. I have my code mostly working, but the problem I'm running into is some fonts, like 'Cambria Math', don't fit within the fixed ItemHeight (hardcoded to 20 at the moment). ...more >>

WebBrowser Control Print and Preview Headers and Footers
Posted by Bruce at 2/12/2008 4:45:17 PM
I am using the .Net 2.0 WebBrowser control in a C# WinForms application to display and print custom HTML reports. Is there a way to turn off the IE Page Setup headers and footers using C# before using the WebBrowser control's ShowPrintPreviewDialog() or ShowPrintDialog() methods so that the...more >>

Text Box - WM5 - .NET CF 3.5 - How to select all text on focus
Posted by SteveS at 2/12/2008 6:48:06 AM
I want to select all the text in a text box, when focus is put on the control. I see the SelectAll method but it does not highlight the text (like double clicking does). Is there a way to force highlighting of the text automatically? -- SteveS...more >>

Multiline Text Box - Windows Mobile 5 - Automatic scrolling
Posted by SteveS at 2/11/2008 6:50:01 AM
I am using a Text Box with scroll bars to display the status of a process as it is running. I am appending lines of text as the process runs and the display is getting updated. txtStatus.Text = txtStatus.Text & vbcrlf & msg This works fine, but once there is more text that what can appear ...more >>

DataGridView causing CurrencyManager to trigger an exception (Index -1 does not have a value)
Posted by J.P. at 2/8/2008 8:28:56 AM
I have a DataGridView on a form that is triggering exceptions which appear to be completely at random. I have a hard time reproducing the problem. Here's what I'm working with: I have a custom business object and list that the datagridview is bound to: public class MyObject { public Bar ...more >>

What do I call what I want to do?
Posted by Elmo Watson at 2/7/2008 12:00:00 AM
OK - here's the scenario - I understand the building of a control - a dll - so that the developer can drag it onto a form. That's NOT what I need to do. Picture the FolderBrowserDialog and the Save and Open File Dialogs - I need to build a 'control' I guess you'd call it - a dialog control...more >>

.NET 2.0 designtime partial rendering, any ideas?
Posted by Jarod80 at 2/6/2008 1:32:05 PM
Hi, I need to do draw text or simbols "in" a combobox while in designmode. I don't need, and I would prefer not to draw all the combo by myself cause I want it to appear "run-time" like. I need to know if it's possible to draw something after the paint as done it's work. All things I've trie...more >>

OnPaintBackground Override
Posted by Derek Hart at 2/6/2008 11:49:23 AM
Does anybody have a sample of how to do an override on OnPaintBackground to draw an image on the background of a winform, and then set an alpha level for it so it is dimmed? ...more >>

autocomplete popup form
Posted by Igor at 2/3/2008 1:41:01 PM
I'm trying to create textbox with custom autocomplete form with a listbox on it. Results in the listbox will be changed as the user types in the textbox. The problem is loosing of focus in the textbox when the popup form is shown. I tried with ToolStripDropDown but problem is the same. Please h...more >>

Background Image Of Form
Posted by Derek Hart at 2/1/2008 10:45:51 AM
I am setting the BackGroundImage of a form to a specific graphic. I have been going in circles trying to determine how to set the alpha level of the image on the background of the form so all the controls on top of the form show up better. I am thinking of just using a graphic program to alt...more >>


DevelopmentNow Blog