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


all groups > dotnet windows forms > may 2006

Filter by week: 1 2 3 4 5

How to Fax on Demand
Posted by Jordan Richard at 5/31/2006 8:32:00 PM
I'm desigining and building a new system from scratch that will provide its users with the ability to send faxes on demand (amongst many other features). This new system will include a .NET 2.0 Windows Forms client with a SQL Server 2005 database on the back end. I would like to know som...more >>

vs.net add-in problem
Posted by dave at 5/31/2006 7:06:02 PM
I created an add-in and i have a problem. When i debug it does not show up on the tool menu. I am not sure where to go from here. Any ideas? thx dave...more >>

How to hide caption Bar in a Form
Posted by sajin at 5/31/2006 8:14:50 AM
Hi All, When we create new windows application there appears a default form without any controls , it shows a caption as "Form1" in blue bar , could any one tell me how can i hide that part through program , i am using vb .net 2005 ( meaning i don't want to show the controls like close,minimi...more >>

How to Create a Graphical Designer
Posted by Dave at 5/31/2006 7:09:01 AM
I am looking for documentation or sample code on how to build a standalone GUI designer. The basic functionality is -- A tool box -- A canvas that controls can be dropped onto and be (re)positioned and viewed at design time. -- Property Explorer to set the various properties of a con...more >>

Where can I find pennis enlargment pills and download VS Studio 20
Posted by omvinh NO[at]SPAM tma.com.vn at 5/31/2006 5:27:02 AM
Hi all, Where can I download VS Studio 2005 ? Pls contact me via emails : omvinh@tma.com.vn lttuan@tma.com.vn Many thanks, IL2F ...more >>

Sorting in a TreeView
Posted by steffen_home_92 NO[at]SPAM hotmail.com at 5/31/2006 4:36:54 AM
hi all, when sorting in a tree view (.NET 2.0) is enabled, the control automatically sorts an inserted node. When a user edits the label and changes the name the edited node wont be sorted afterwards. I tried to call the Sort() methode of the tree view control when the AfterLabelEdit event is...more >>

Running a VS2003 App with .Net Framework 2.0
Posted by Robert W. at 5/30/2006 7:30:01 PM
I've built a C# WinForms app using VS2003. I've just released it for Alpha testing and am receiving reports back that it's not running on computers that have the .Net Framework 2.0 but not 1.1. So I did some research and read that I can resolve this by simply creating a text file in my pro...more >>

call a mnuFileNew_Click method from a Main MDI class from another class (can be a MdiChild class.. )?
Posted by M. G, at 5/30/2006 11:45:48 AM
how can i do it? thanks ...more >>



DLL from the Debug Bin directory
Posted by Steve, Putman at 5/30/2006 10:19:41 AM
Hi Gurus, I need some suggestions. We have a vb.net(framework 2.0) project. We work on it in Debug mode not in Release mode. When we fix some bug we just go to the bin directory and copy the dll file and put it on the production server. Does it really maters that we are not compiling it on...more >>

GDI Leaks in 1.1 Framework sp 1
Posted by Jason G at 5/30/2006 9:52:02 AM
Hello, I'm running the 1.1 FW sp 1 on XP sp 2. I've been trying to plug leaks in our application for a month now, and while I've reduced the memory leaked (the owned forms leak was a killer), our power users still consistently encounter crashes from running out of GDI handles. I...more >>

Somebody MUST know the answer to this...
Posted by William Buchanan at 5/30/2006 12:00:00 AM
Hi folks Excuse the title, but i've been looking for an answer to this simple problem for months now and nobody seems to be able to help. I am using VS 2005. I have a web service which returns a data table through a web method. I also have a win form with a combo box. The combo box is lin...more >>

about MDIChild
Posted by cok at 5/30/2006 12:00:00 AM
Hi ,All when I new a MDIChild, and Show It, It's Position move to right and down a little, I want the the MDIChild hold It's old position , How can I do ? I know the MDIClient save the position of last created MDIChild, then when It create new Child, It add a little to position, t...more >>

How to render a windows form control to a given DC in
Posted by Buddhist.CHinA NO[at]SPAM gmail.com at 5/29/2006 6:56:53 PM
In my application, I mixed win32 GDI porgramming and windows.form control. And I had to draw the windows.form control on a win32 DC. But I don't know how to accomplish it. Now, I have a workaround to complete this. Firstly, I got a bitmap of the windows.control, then pass the bitmap to unmanag...more >>

Filtering focus messages/events
Posted by paulo at 5/29/2006 6:04:16 PM
Hello, I'm developing a Windows Forms application with .NET 2.0 and I need to centrally get all focus messages / events. For example, when a user tabs from one TextBox to another in the application, I want to know that TextoBox1 lost focus and TextBox2 got focus. I tried to add a IMessage...more >>

Tooltip, .ShowDialog(), and .Dispose() on .NET 2.0 generate a NullReferenceException
Posted by Emmanuel_ at 5/29/2006 5:55:01 PM
Hi, I have the following problem, most probably a bug: I have a windows form that incorporates one Button control and one ToolTip control. On the form's Load event, I am setting the tooltip message of the button by calling the SetTooltip() method. On the button's Click event the form i...more >>

ToolStripMenuItem and tool tips
Posted by steffen_home_92 NO[at]SPAM hotmail.com at 5/29/2006 10:42:37 AM
Hi, Is it normal that tool tips appear on menu items of a menu strip although the ShowItemToolTips property of the menu strip is set to false? I know that setting the ToolTipText property of a menu item to an empty string prevents tool tips from being shown but I need this property to fill t...more >>

intermittent NullReferenceException: Object reference not set
Posted by bfbfbfbfb at 5/29/2006 6:42:01 AM
hello, I have an application that somethimes throws this exception in different windows forms, if I rerun the application all is 'ok' and the error disappears. the stack trace is the same on different windows forms. any ideas ? thank's this is the exception: NullReferenceException: O...more >>

Making multiple forms same size and position
Posted by Enrico Campidoglio at 5/29/2006 3:53:01 AM
Hi, I have a Windows Forms application written in .NET 2.0 made up of multiple forms. These forms use visual inheritance to share a common layout while presenting some specific content. The application switches among the different forms by showing/hiding them making only one form visible...more >>

OpenFileDialog throws "Illegal characters in path"
Posted by Shilpa at 5/29/2006 3:29:33 AM
Hi, I have a OpenFileDialog on my windows form whose filter is *.*. I want the users to be able to further filter the files by giving *.doc or *.zip etc in the "file name" field of the dialog (Just like it happens in the open file dialog of MS Word) Currently, if the user enters a wild card c...more >>

Converting XML datasource to PDF
Posted by Puneet at 5/29/2006 2:52:37 AM
Hello everyone, I have data in XML file, thats generated at runtime. Now i want to load this all data into a PDF file and save that file... can someone suggest me dome way of doing the same. Thanx ...more >>

Combobox change selected value automatically?
Posted by Coco at 5/29/2006 2:46:01 AM
Hi, I have four combobox in my windows code that has the same data source. I noticed that whenever i select a value in one of the combobox the others will change it selected value to the same as the one i select. Is there anything i miss out here? Coco...more >>

Context menu strip
Posted by steffen_home_92 NO[at]SPAM hotmail.com at 5/28/2006 4:15:35 AM
hi ng, I actually want to program an application whose main window contains a menu strip and a tree view control. In the main menu there are items I want to use for a context menu strip in the tree view but if I add a menu item from the main menu strip to a context menu it disappears from t...more >>

I just don't get it (Windows Forms that is). Please Help!
Posted by A Wieser at 5/27/2006 12:47:29 PM
I've just started climbing the steep learning curve from VC6/MFC to Windows forms and C++/CLI. But I just can't find the documentation that describes the philosophy of what's going on. A simple example: I want to create a popup menu class that can be reused on multiple forms, and star...more >>

Save settings ...
Posted by Gabriel at 5/26/2006 6:01:22 PM
Hello, Is there an easy way to save the application ? for example : - Application position on the screen - Imagine if I have an "option" form How save and restore these informations ? Thanks, ...more >>

Programatically open a combo box
Posted by john conwell at 5/26/2006 10:54:02 AM
I'm trying to find a way to programatically open a combo box's drop down window. Any ideas?...more >>

JIT Debugger and WinForms
Posted by Jay at 5/26/2006 9:30:01 AM
I'm working on a windows forms application that has a wrapper around the main execution code (in Main) to report any unhandled exception through a custom dialog. This works fine on my machine but when I give it to a client the dialog doesn't appear but rather they are presented with a "Ignore...more >>

DataGridViewComboBoxColumn - Requires multiple clicks to get menu to dropdown?
Posted by ESmith at 5/26/2006 8:28:59 AM
How can I pass the initial mouse click through to the dropdown control on a DataGridView? Currently, the user needs to click on it - I guess first to select, then again on it to see the dropdown choices (sometimes this requires several clicks). The CheckBox doesn't seem to have this issue - ...more >>

anoying splitter behaviour
Posted by eduwushu at 5/26/2006 2:46:01 AM
Hi I have put an splitter container in my form and have set its orientation property to horizontal The in the upper panel i have put a listbox wit dock property to fill . The problem is that when i move the splitter up and down the distance between the lower border of the listbox and the spl...more >>

Panels, UserControls, and component position in the UserControl
Posted by dchman at 5/25/2006 5:26:02 PM
I inherited a C# Windows app (.net 2.0) . There is a main form with a panel and menu. When the user selects a menu item, a usercontrol form is added to the panel and displayed. The User control forms have things like datagridview and command buttons, as well as a panel that gets loaded with...more >>

UserControl Border Color
Posted by Craig at 5/25/2006 3:04:02 PM
Hi I have a simple UserControl hosting a couple of other controls, the BorderStyle = BorderStyle.FixedSingle. All I want to do is change the border color of the control. Anyhow got an example on the best approach to do this. I tried the following which didn't make any difference: pr...more >>

How to determine when a form is first displayed
Posted by curtsfakeguy NO[at]SPAM hotmail.com at 5/25/2006 2:14:56 PM
Hi, this question must have been answered many times before, but I just can't find the answer in the groups. How can I determine when a Windows Form is displayed on-screen? When my application starts up I want to immediately display a "wizard" to guide the user, but when I tell the wizard for...more >>

about MDIContainer's AutoScroll and background image
Posted by cok at 5/25/2006 10:12:36 AM
Hi, all I have a question when I use form as MDIContainer when I move a MDIChild out of edge of MDIContainer, the Container's Scroll bar appear(yet "AutoScroll" property is "False"), and the Container's background image look like error!! How can I disable auto scroll of the Container or Ho...more >>

Toggle form from editable to readonly and vice versa
Posted by J. Clay at 5/25/2006 8:24:48 AM
I know this has to be simple and I am missing something, but, I have a windows forms application. The forms are bound to an object. I want to be able to have the form open as readonly until an "Edit" button is pressed. After all of the edits are done, they can then click an "End Edit" but...more >>

adding controls to fontDialog?
Posted by Lionel at 5/25/2006 8:04:03 AM
I'd like to declare a class that inherits from the fontDialog class and adds a "Color..." button to the bottom of the dialog. However, fontDialog doesn't seem to have a "Controls" property according to the documentation. In this case how do I host the button?...more >>

Newbie - ListBox doesn't have OnChanged event?
Posted by moshaiov NO[at]SPAM gmail.com at 5/25/2006 7:09:30 AM
I have a ListBox control which is not bounded to any data source automatically. How can I intercept the event of adding/removing items to it? - Tal ...more >>

VB.NET ebook needed
Posted by Pradeep at 5/25/2006 6:02:03 AM
hey if anyone has any ebook for vb.net kindly send me a copy.. Im badly in need of it to refer to some concepts on data access, storage and retrieval pradeep.mani@gmail.com is my email id bye Pradeep ...more >>

Image in DataGridView Button Column
Posted by Coco at 5/25/2006 1:36:02 AM
Hi, How can i put image as button in DataGridView column?...more >>

correct way to paint custom caption
Posted by + Kennedy Kok + at 5/24/2006 7:00:50 PM
What is the correct way to paint custom caption in .NET and XP? I like the new custom caption in Office 2007, how do I do that? Kennedy ...more >>

Controlling Read/Write Permissions Per User
Posted by Jeremy S. at 5/24/2006 6:47:54 PM
I'm writing a Windows Forms app (connecting to SQL Server db) that will need to enable/disable access to various UI controls based on the particular user that is currently logged in. My question: What are some of the building blocks that I should look to use? E.g., how do I know who the cu...more >>

Opaque (semi-trasparent) control
Posted by Viktar Zhardzetski at 5/24/2006 3:37:02 PM
I neet to create a "Colored glass" effect, so I can cover a couple of buttons on my form with an opaque (semi-transparent) shape and some text. I tried the following: 1. Create a control that will support a transparent background and use ARGB colors to set an opacity for the background (or ...more >>

TabControl.SelectedTab.Name issue
Posted by Terry at 5/24/2006 2:29:02 PM
Hello All, I’m having a issue with the TabControl.SelectedTab.Name in the SelectedIndexChanged method. All I want to do is keep track of what tab the control is currently on. I have tried the following. I get an Index error or Object is not an instance of a Object error. Is there a work ar...more >>

Showing Multiple Displaymembers
Posted by Nathan Guill at 5/24/2006 1:41:07 PM
I have a combobox that lists 3 columns of data. When a row is selected, I need to show 2 of those colums to the user. I would like to show this in the combobox, but the default ability doesn't allow this, I'm wondering how others have handled this in the past and what suggestions others might h...more >>

fontDialog.Color
Posted by Lionel at 5/24/2006 1:31:02 PM
Hello, the following "fontDialog1.Color = Color.LimeGreen;" fails. - the selected color displayed when fontDialog1 is shown is black. It will work if I set the color to red, blue, etc but not LimeGreen. I noticed that this particular color doesn't reside in the color drop-down picke...more >>

ComboBox value as parameter for stored procedure?
Posted by Daniel Manes at 5/24/2006 12:07:28 PM
Ok, I have a DataGridView, and I want to fill it with data from a stored procedure (which is on a SQL server express database). This procedure requires a parameter called "Country." The user selects the country from a ComboBox elsewhere on the form. All seems to be working fine except one thin...more >>

DisplayMember is being ignored
Posted by Dundealing at 5/24/2006 11:29:03 AM
Hi, I have the following code to set the DataSource of a ComboBox to a certain table in an untyped DataSet, and I also want to set the DisplayMamaber of the ComboBox to a certain column: cmbID.DataSource = Me.Ds.Tables("Groups") Dim str As String = Me.Ds.Tables("Groups").Columns("Cust...more >>

Mnemonic and Accelerator Issue
Posted by msoegrad NO[at]SPAM gmail.com at 5/24/2006 10:30:55 AM
In doing some development and testing I have found a curious issue with the use of Mnemonics and Accelerators that I would like some input on. If you create a form that has 2 buttons on it, one with text "&Button1" and one with "B&utton2" and set up event handlers for both you will see a curious...more >>

datagridview border column width
Posted by dchman at 5/24/2006 9:44:01 AM
In DataGridView control I want to set the width of the border column, i.e., that column that borders the grid on the left. At run time the user can adjust its width, but is it possible to do it at design time? thanks -- dchman...more >>

Printing a report without print dialog. Beginner question. VB 2005
Posted by Federico Caselli at 5/24/2006 1:56:01 AM
Hi, I made a local report (add New item -> report) bound to a oleDB data source. I order to preview it, I made a form and added a ReportViewer control. But now I need to batch-print it without showing print dialog. Is it possible? Is it necessary to use the ReportViewer even if the user ...more >>

2.0 Web Browser Control
Posted by Amy L at 5/23/2006 7:52:32 PM
Does anyone know of a way to prevent images/cookies etc from being pulled via the new web browser control. Essentially what I am looking for is html rendering like what is done via outlook (it blocks images, etc) until you tell it that its ok to download them. Does anyone know of anything (b...more >>

each control on a form
Posted by Gabriel at 5/23/2006 6:49:02 PM
Hello, I'd like check all the control on my tabcontrol (all tabpages) I tried this : foreach (Control oControl in this.Controls) { if (oControl.GetType() == typeof(TextBox)) { oControl.DataBindings.Clear(); }...more >>


DevelopmentNow Blog