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 > december 2007

Suppress Save Dialog in WebBrowser control
Posted by anand gothe at 12/28/2007 5:38:38 PM
Hi, I'm using the WebBrowser control (.NET 2.0) to login to a website and download a file. I navigate to the login page of the website, then programatically fill username and password to login. Then I navigate to the URL of the file. It all works fine, but I get the IE Save Dialog box when ...more >>


MP3 component?
Posted by Jakob Lithner at 12/28/2007 1:49:01 AM
I would like to manipulate MP3 files that I have recorded. My main need is to decrease file size by decreasing bit rate. I have found several freeware programs that offers this but not in a flexible way where I am allowed to set the bit rate to any value I want. My idea then was to create a sma...more >>

DataGridView, preventing CancelNew
Posted by Jim at 12/27/2007 1:48:31 PM
Hi, I have a DataGridView bound to a BindingList. When the user clicks on the "new row" row at the bottom of the grid, a new row gets added with all the right defaults, etc. The problem is that, unless they edit this row, it disappears the moment they leave it. I would like for the new r...more >>

Location in DateTimePicker
Posted by Richard MSL at 12/26/2007 2:54:00 PM
I am using a DateTimePicker control to allow users to input dates. My users have asked for a number entry mode, where they can use the numeric keypad to key in 122607 for December 26, 2007, for example. The DateTimePicker control does not support this, but I have been able to somewhat write my...more >>

Preventing focus from leaving DataGridView
Posted by Larry at 12/24/2007 3:31:28 PM
Hi, I need to prevent a user from moving away from a DataGridView if it contains invalid data. Some specifics: The user should be able to move within the specific grid, but not move to any other control on the form (including any other grid on the form). I have tried a number of methods...more >>

WebBrowser.Document.ExecCommand / SaveAs / vista, ignores parameters
Posted by Lucvdv at 12/24/2007 12:50:33 PM
I'm using a webbrowser control on vista to programmatically save files from the web. I'm trying to use the WebBrowser.Document.ExecCommand function with the SaveAs command, as documented in http://msdn2.microsoft.com/en-us/library/ms537418%28VS.85%29.aspx [I replaced ( and ) in the URL by...more >>

save a printpreview in a file
Posted by Hugo Villatoro at 12/21/2007 2:16:01 PM
I'm using Visual Studio 2005 and I want to save something I draw in a printpreviewcontrol into a file. Thanks....more >>

using EM_GETRECT vs. using EM_GETLINECOUNT with a RichTextBox
Posted by Bill Woodruff at 12/20/2007 9:11:42 PM
I develop in C#. The 'beauty' of using 'SendMessage 'EM_GETLINECOUNT ... with a TextBox or RichTextBox ... is that it returns not just the lines that are visible in the RichTextBox at its current size, but effectively the number of lines of text content (including lines produced by word-wra...more >>



Detecting word-wrap in a TextBox or RichTextBox control
Posted by Bill Woodruff at 12/19/2007 8:36:13 AM
Hi, I have been trying to find a way to make a TextBox or RichTextBox with word-wrap enabled "grow/shrink automatically" in height as the user types new lines (or deletes existing ones). And scrollbars are out for this usage. Monitoring the 'TextChanged Event and using the 'Lines property of ...more >>

Toolstrip auto resize in height
Posted by Joe at 12/18/2007 12:09:45 PM
I want the toolstrip to grow in height (and add another row) to accomodate all the buttons instead of overflowing into the dropdown arrow. Is this possible? Thanks, Joe ...more >>

Color Scheme Guidelines?
Posted by CMoya at 12/16/2007 8:49:34 PM
So it seems Microsoft has purposefully abandoned the whole notion of consistent color schemes on the OS level. It seems that in Vista, color schemes in apps (toolbars, status bars, backgrounds, etc) are purposefully DIFFERENT colors between apps for a reason. My question is: Have they docum...more >>

Windows Form DesignTime/Mode Detection
Posted by Laser Lu at 12/15/2007 3:43:35 PM
Hi, I'm a novice in .NET Windows Forms programming. Recently, I was stumbled by a puzzle, regarding how to determine whether the code is currently executing under design-time or not. My code was written in C# under Visual Studio .NET 2003. In my project, I just created a Windows Form as a bas...more >>

Creating wizard
Posted by John at 12/15/2007 1:40:38 AM
Hi I need to create a wizard in my application. Are there any third party controls that provide some sort of framework to help write one? I just want to save some time if I can. Thanks Regards ...more >>

Why isn't this easier?
Posted by Jeff Johnson at 12/13/2007 11:08:27 AM
The Control class offers a ContextMenuStrip so that you can assign a menu to be automatically displayed when the control is right-clicked. That's nice. Why then don't the more complex controls provide you with an easy way of determining WHAT was clicked? For example, I have a tree view. I w...more >>

Treeview bug ...or mystery?
Posted by Anonymous at 12/8/2007 1:56:17 AM
Hi experts, Using: Visual Studio 2003, .NET Framework 3.0, Treeview Class Here's what I'm trying to do: I've got a form with a toolbar and a treeview. Using a dropdown button on the toolbar you can add nodes to a treeview. When a node is added the node automatically enters the "edit" mode...more >>

TableLayoutPanel Control
Posted by Nutan at 12/7/2007 11:56:53 AM
Hello, I am using TableLayoutPanel control in a .net Windows app. and adding controls(radio buttons) at run-time in TableLayoutPanel. Can anyone help me with how can i make height of all Rows EQUAL in this = control. Thanx and Regards Nutan nutan@nagarro.com 09911328107...more >>

OpenFileDialog problem
Posted by Kevin S Gallagher at 12/7/2007 8:09:50 AM
I need to allow users of an application to browse their personal "favorites" folder, GetFolderPath(Environment.SpecialFolder.Favorites) to select a URL/Shortcut which will be stored (not the filename but the url within) into a table within a database. OpenFileDialog permits me to browse...more >>

Reordering rows in DataGrid cause wrong value selected in ComboBox
Posted by Paul S at 12/6/2007 12:06:01 PM
Hi I have a DataGrid with 2 columns and one of them is a ComboBoxColumn. I have implemented re-ordering of rows as described in windowsclient.net/samples//Go%20To%20Market/DataGridView/DataGridView% If I have selected a value in the ComboBoxColumn and then move that row to a new position t...more >>

Treeview is slow as it's getting bigger.
Posted by Mufasa at 12/6/2007 8:36:43 AM
I have a treeview that is part of a window's explorer like app. When the number of records was small (under a thousand) it worked great. Now that my dataset is getting bigger, it's taking longer and longer to load. I realize I could rewrite the code so that it only loads the subnodes when the ...more >>

where should I keep all the funtions?
Posted by Allen at 12/5/2007 8:40:57 PM
I am working with forms. I am used to work with regular C++ code, where all your functions are going to be on the bottom of the source code file. I notice when working with forms using Microsoft Widows .NET Framework that provides a set of classes for building GUI applications all your work ...more >>

MaskedTextBox and currency?
Posted by Bradley Plett at 12/5/2007 12:37:57 PM
Either I don't know how to use it particularly well (entirely possible), or the MaskedTextBox included with VS2005 (and VS2008) really sucks!!! All I need is a simple control to allow me to enter decimal or currency values. I would prefer behavior that looks a lot more like a standard text box...more >>

Screen resolution independent app
Posted by John at 12/4/2007 7:29:04 PM
Hi How can I develop a screen resolution independent winform app in vb.net? Do I need a third party tool to achieve this? Thanks Regards ...more >>

Icon.FromHandle + ImageList = decreased color depth
Posted by Alex Blekhman at 12/1/2007 2:52:04 AM
Hello, I'm writing Visual Studio add-in in C# (VS 2008, WinXP SP2). I need to display a list of files in ListView control. In order to get the file type's associated icon I use `SHGetFileInfo' API from Shell32.dll (the code is taken verbatim from here: http://www.codeproject.com/csharp/...more >>


DevelopmentNow Blog