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

Filter by week: 1 2 3 4 5

ToolStrip Control
Posted by Jay at 12/31/2005 8:01:30 PM
How do I setup a ToolStrip with ToolStripButtons to look like Outlook with the nice gradient. Thanks Jay ...more >>

Help: XP look for FORMs
Posted by noor at 12/31/2005 2:20:12 PM
hi, i'm developing a windows based application for configuration purpose. i want to give a "SOFT LOOK" to my form for example "xp look" or something like this kindly guid me how can it b possible in .net environment. R there some skins available for .net forms if yes then kindly give me that one...more >>

Implement Remember password feature in Login Dialog
Posted by Sandeep Singh at 12/31/2005 1:23:26 PM
How can implement remember password feature in Windows Login Dialog in my custom application. Thanks, Sandeep...more >>

TreeNode can't find .ChildNodes
Posted by Alien Attack at 12/30/2005 11:50:32 AM
Using .NET 2.0 I'm trying to traverse a treeview by using the following // Some other code // node is a System.Windows.Form.TreeNode node.ChildNodes.Count However, I keep getting the following error System.Windows.Form.TreeNode does not contain a definition for 'ChildNodes'. No one els...more >>

Recent Files list - Is there a simple way?
Posted by Paddy at 12/30/2005 9:32:02 AM
In my Windows Forma application, I would like to add a recent file list as part of a menu. I am thinking of adding an entry in registry whenever the user select a file and process it and then retrieve it back from registry. I also need to shorten the file name so that the menu's width will not...more >>

How do I set form equal to nothing?
Posted by Mike Edgewood at 12/30/2005 7:02:22 AM
Check this out: [VS 2005 .NET 2.0] Start a new project, drop a button on form1. Add a form (form2). In the button1 click event on form1, add the following... ........ If My.Forms.Form2 Is Nothing Then My.Forms.Form2.Show() End If ........ Taken directly from sample code. This will...more >>

Prevent tab page from changing
Posted by kosjanne NO[at]SPAM hotmail.com at 12/30/2005 5:34:33 AM
I need to prevent user from changing a tab page, if the current tab page has incorrect data. I've been searching these forums for a solution and have found a suggestion that goes something like this: [StructLayout(LayoutKind.Sequential)] public struct NMHDR { public int hwndFrom; public...more >>

How to create Lines on the Form?
Posted by Saravanan at 12/30/2005 5:14:03 AM
Hi i am newbie to C#, i need of to seperate the forms in to two equal parts by lines, will u please any body tell me how to i do that? Thanks in advance Any help and suggessions are appreciated Bye. ...more >>



Help :Redirecting Console results on form
Posted by noor at 12/29/2005 5:17:12 PM
Hi, I'm creating an interface for a network device basically its a GUI for cofiguring the devices. Configration Commands are working fine on command prompt I just want to make there GUI so my client should not go to that BLACK screen to configure those devices. I m useing this code //Declare ...more >>

Controls are resized from one computer to another
Posted by Romain at 12/29/2005 2:45:02 PM
Hi, I am developing a Windows Forms application which is the client of an XML Web Service. When running this application on my development system, forms and controls are showing as designed in the IDE. When I run my application on any other computer, every forms and controls are a little ...more >>

Splitter between panels
Posted by MMahank at 12/29/2005 1:43:16 PM
Can we have a splitter between two panels. one panel's dock property is set to left and other ones set to fill. The splitter does not seem to work properly for the panels I suppose. Any ideas on how to approach the problem would be appreciated. Thanks, VPMahank ...more >>

ClickOnce and/or No Touch Deployment example sites?
Posted by asanford at 12/29/2005 11:02:02 AM
Hello, We are considering utilizing ClickOnce for windows forms deployment, but we'd like to see it in action: 1) does Microsoft have any test web sites that the public can access a sample ClickOnce or No Touch Deployment application? (we'd prefer the former.) 2) Does anyone know of any...more >>

DataGridView.RowPrePaint - how to selectively paint the background
Posted by JeremyHolt at 12/29/2005 5:40:03 AM
Hi, I am trying to change the background colour of the entire row based on the contents of a value in a cell. Using the examples in the MSDN documentation I have got thus far, however, the foreground text is garbled: Private Sub DataGridView1_RowPrePaint(ByVal sender As System.Objec...more >>

Dynamically changing UpdateLocation at Runtime
Posted by Abe Munk at 12/28/2005 6:08:02 PM
I have an application to deploy using ClickOnce, but do not have one location for updates. I want to dynamically change ApplicationDeployment.CurrentDeployment.UpdateLocation at runtime. Problem is that that property is read only! Many of my clients do not have an internet connection, a...more >>

Help with CONNECTION object and STORED PROCEDURES
Posted by John Cosmas at 12/28/2005 11:36:11 AM
I am trying to build an application that requires me to locate/detect the versions of SQL SERVER. I've successfully enumerated my SQL SERVERS, but I need to now find out what version of SQL they run. I know there are some STORED PROCEDURES like SP_HELPFILE that you can run to get information...more >>

Call javascript function from browser control?
Posted by john conwell at 12/28/2005 11:05:02 AM
I'm using the Browser control to display html that my application generates. Some times i want a javascript to run when the html gets displayed in the browser control, and sometimes i dont. Is there a way to invoke a javascript function from the browser control? or maybe inject some javas...more >>

Associating a file extension to an application
Posted by MJB at 12/28/2005 9:43:59 AM
I have an application that understands a proprietary format and file extension. I can associate the file to my application using the windows 'Open With' dialog, but I want my application to automatically load the file when opening it. What is the proper way to do this? An example of how...more >>

Z-Order: How to determine and then persist?
Posted by Jules Winfield at 12/28/2005 8:43:44 AM
I've developed a WinForms application that allows users to create a number of child forms within a larger parent form. The child forms can be dragged around within the bounds of the parent. They can also be resized. When the user closes the application, I want the size and position of the c...more >>

Threading in .NET
Posted by sonali_reddy123 NO[at]SPAM yahoo.com at 12/28/2005 5:44:43 AM
Hi all, I have a problem regarding the threading issues in .NET. Actually I have a application in which i execute a process by invoking the thread in the background and at the same time I want to display a modal dialog which will only block my UI. It doesn't have to do anything with my thread...more >>

MDI, Control box buttons, Maximized, Pict, MainMenu, etc. SOS
Posted by mcskf at 12/27/2005 8:33:02 PM
Hello, I make an MDI app. The parent form has a MainMenu. The questions: 1. When I open a child form, before the first menu item a picture is shown (the form picture). How can I hide this picture. (like MS Word 2003) 2. In the menu row the control buttons are shown. How can I hide ONLY the ...more >>

How to Invoke a property in C#
Posted by Tony at 12/27/2005 6:31:36 PM
I know how to call Invoke on a method, but I can't figure out HOW to call Invoke on a property to set it's value. Does anyone know how to do this? Thanks, Tony ...more >>

winforms look-n-feel when hosted in IE
Posted by jaboir NO[at]SPAM yahoo.com at 12/27/2005 12:58:52 PM
I'm very excited about the possibilities of applications based in winforms, hosted in Internet Explorer and communicating to the back end via web services. However, when I started reading about the possibilities recently, I was disappointed by the look-n-feel that I've been seeing. For examp...more >>

Using Leave event to trigger an Update in Datagrid
Posted by Earl at 12/27/2005 12:29:19 PM
I've often used the datagrid CurrentCellChanged event to trigger my Update code. However, I've noticed with checkbox columns, this event is not triggered in the same fashion as with textboxcolumns. So I've been playing around with the datagrid Leave event to trigger an Update and am curious if...more >>

Listview
Posted by Chris at 12/27/2005 11:24:31 AM
Hi all, I have a listview box which is populated from a List<T> collection. The items in this collection are generated from a user filled out form. The items in the listview have the same index as the ones in List<T>, so I have an event which loops through the ListView, and if selected = tr...more >>

RichTextBox and color
Posted by Luc Bolly at 12/27/2005 10:09:42 AM
Hi all. It's not new, but I cannot find a really good solution. The context: I grab text lines from log files in a RichTextBox and I would like to mark with a specific color some keyworks (e.g. the errors). I wrote a function (see hereunder) that works correctly when the number of lines is sma...more >>

Forms.TextBox hides letters?!
Posted by Andrew at 12/27/2005 8:42:04 AM
Hello, friends, We have a Windows Form app using C#.net. In a fixed size window, we have a Forms.TextBox control to allow users to type in info, up to 255 characters. However, when typing letters reach the end of a line, there are a few letters keep going in this line, thus are hidden, bef...more >>

HowTo - MDI child forms delegates to Parent form
Posted by FredC at 12/27/2005 8:00:02 AM
I'd like to know how to set up a delegate in an MDI child form to send an event to the MDI parent. There are multiple children forms of the same class. ...more >>

How to provide shortcut keys
Posted by SwatSoftwareDev at 12/26/2005 6:43:19 PM
Hi I want to provide shortcut keys for different tab pages on my form (such as Ctrl+H).the problem I'm facing is I don know on which control focus currently is. I also want to handle up & down arrow keys. Is there any other way than handling key press and key down on any control( such as handl...more >>

ControlPaint.DrawReversibleRectangle
Posted by mdahmus NO[at]SPAM io.com at 12/26/2005 12:05:42 PM
This method, found via google, appears to be the recommended way to draw a selection rectangle in a windows.forms control; but it shows up as unresolved when I compile, and I can't find it in MS's online help either. What gives? Thanks, MD ...more >>

hide the tab of tabpage
Posted by Esmail Bonakarian at 12/26/2005 12:03:35 PM
Hello all, I have a tabcontrol with 3 tabpages. I want to hide (not just disable) the 3 actual selection tabs that allow a user to select a given tab page, but keep the page around and active. Instead I will be changing the current tabpage shown programmatically. I haven't found a way t...more >>

change mouse cursor c#
Posted by family.glick NO[at]SPAM gmail.com at 12/26/2005 1:42:53 AM
hi there! i would like to change the mouse cursor once the user is pressing on a button. i would like it to change to a jpg file i have. (if it's a problem maybe a bmp file will help). how do i deal with it? ...more >>

Hiding a dialog without closing it
Posted by Michael Wong at 12/25/2005 8:50:30 PM
Hi, I am desperate searching for an answer to this problem. I have shown a dialog (using ShowDialog) in my main form. As I'm using a virtual desktop, I'm able to switch to another desktop (which will hide or show the dialog and main form, depending if we are leaving or coming back to that...more >>

newbie: 1 form w/ 3 panels, cycle through ....
Posted by Esmail Bonakarian at 12/25/2005 10:34:35 AM
Greetings all, I am trying to display several screens/views of the interface to a user by using multiple panels within the same form by making them visible/bringing them to the front as needed. This instead of popping up several different forms. I am having problems with this. Here's the ba...more >>

question on mp3
Posted by CobraStrikes NO[at]SPAM al.com at 12/24/2005 9:23:14 PM
Hi All, How can I play mp3 or a wav file from vcs2003 when a button is clicked ? TIA ...more >>

populating combobox
Posted by Chris at 12/24/2005 11:10:51 AM
Hi, I need a combobox populated with system fonts and was wondering if the following would be adequate: Declare "FontFamily[] ff = FontFamily.Families;" as a form member. In form constructor populate combo box as follows: "for (int i = 0; i < ff.Length; i++) { comboBox1.Items...more >>

Tree-view with databinding
Posted by Pete Smith at 12/23/2005 4:32:50 PM
Hi, what's best practice to bind data to tree-view control? Thanks for any advice in advance Pete -- Pete Smith ...more >>

VS.NET 2005 / .NET 2.0 Memory Retention Problems with DataGrid
Posted by Robbe Morris [C# MVP] at 12/23/2005 11:29:23 AM
Has anybody noticed problems with the windows forms DataGrid not releasing memory? I did some testing loading up a DataGrid with 5000 or so records (and yes, I need that many in the UI at any one given time - odd I know). If I clear the rows and columns and reload the grid, it never releas...more >>

show vs showdialog vs application.Run
Posted by Eric at 12/23/2005 11:12:02 AM
I’m creating an application that waits for a certain button to be pressed on the keyboard and pops up a winform. I’d like to instantiate the winform on application start to increase performance. When the user hits the break key I’d like to .Show() the form. After the first launch I’...more >>

maximized mdi parent form
Posted by Yossi And Inbar at 12/23/2005 8:44:32 AM
Hi, How Can i maximized MDI parent form ? the maximized property is not working Thanks, Yossi ...more >>

Copy List View
Posted by Yossi And Inbar at 12/23/2005 8:43:15 AM
Hi, I Want to copy one ListView to another ? How can i do it ? if i do ListView1 = FulListView i get in ListView1 the detail on FulListView But i cant see it on ListView1 What is the problem ? Thanks, Yossi ...more >>

compile web reference to x64 Release Failed
Posted by Shachar at 12/22/2005 6:33:56 PM
Hi All, When I'm trying to compile a class library with no web reference to x64 Release I Succeed. When trying to compile a class library with web reference to x64 Debug I Succeed. When trying to compile a class library with web reference to x64 Release I get an error : Error 1 "sgen.exe" ...more >>

How to stretch a ToolStripProgressBar?
Posted by Tim_Mac at 12/22/2005 5:17:21 PM
hi, i'm very impressed with the new ToolStrip controls. but one thing i can't seem to do is get the ToolStripProgressBar to stretch with the form, like anchor=bottom | left | right. i like to have a good wide progress bar, but perhaps this isn't ever necessary? i know i could do it in code ba...more >>

set form.owner
Posted by guoqi zheng at 12/22/2005 4:26:08 PM
Dear sir, I would like to open form1 from form2. Form2 contains a menu item, when click one of the menu items, I do the following. Dim s As New Form3 s.Owner = Me s.Show() What I want is that form1 open within the windows of form2, can not be larger than or ou...more >>

Looping through a DataGrid
Posted by Shawn at 12/22/2005 2:17:01 PM
Hi. I have a DataGrid that is displaying records from my DB. The fifth column in my DataGrid contains a number. I need to calculate the number in that column for all the rows, but I can't figure out how to do it. Something like this: For each row in Datagrid mycounter = mycounter + row(5)...more >>

ClickOnce - how do I generate hash/sign for one of the files in a manifest?
Posted by John Yung at 12/22/2005 2:05:42 PM
All, Here is my situation? I have an application that communicates with the middle tier via the .NET remoting. The middle tier connectivity information is store in the application configuration file. Depending on the environment (QA, UAT, and Production), the configuration file will be diff...more >>

How do I create a C# application that survives logoffs (windows xp/nt)?
Posted by Preethi at 12/22/2005 1:48:38 PM
How do I create a C# application that survives logoffs (windows xp/nt)? ------------------------------------------------------------------------------ -- How do I create a C# application that survives logoffs (windows xp/nt) and that if opened in some user that logged out - will be opened i...more >>

Console::WriteLine()
Posted by bill at 12/22/2005 1:22:19 PM
Is there a way to see the results of Console::WriteLine() in a .NET WindowsForms application? TIA Bill ...more >>

Windows Forms Application Config File Not Read
Posted by Infamous ET at 12/22/2005 12:39:02 PM
I have my first windows forms application in which I have added a configuration file. I have two keys and either the file is not being read or it is not happy with the way the file is structured. I welcome any ideas on why this occurring. The file is in the same directory as the applicati...more >>

DragDrop - determine if file or folder
Posted by Grant Merwitz at 12/22/2005 12:17:18 PM
Hi I have an application that allows users to drag files from there desktop into a TreeView Now, i'm not sure how to deteremine if they are dragging a file or a folder, and want to disable dropping of folders Here is my DragDrop code. How can i determine is this points to a File or Folde...more >>

DataGridView Export
Posted by Mike Rand at 12/22/2005 10:29:03 AM
I have been unable to find a way, short of writing custom code, to export a DataGridView to Excel (or a text document for that matter). I think that this feature should be standard, but I'm having no luck. Any ideas? Thanks in advance! - Mike...more >>


DevelopmentNow Blog