Psst! Did you know DevelopmentNow is a mobile web site design agency?

Contact us for help mobilizing your site, or to sign up for our beta Mobile Web SDK!


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 > july 2006

Filter by week: 1 2 3 4 5

How to override a tabcontrol to give VS2005 property pages style look
Posted by nirdesh.dabas NO[at]SPAM nagarro.com at 7/31/2006 11:31:49 PM
I am using tab controls. I need to give my application a look like VS2005 property pages . I dont need autoscroll of tabcontrol. Rather i am looking ahead for the context menu for hidden tabs access. how do i do that. Secondly , there is a border around the tabs in project properties page ...more >>


Edit the text of a MenuItem at run-time
Posted by illegal.prime NO[at]SPAM gmail.com at 7/31/2006 9:17:30 PM
Hey all, I would like to allow users to edit the text in a MenuItem simply by clicking on it. I.E. if they click on the item, the text gets a cursor that they can now type in new text for that MenuItem. I don't think this is possible with a usual MenuItem object. So is there some other MenuI...more >>

load runs sub progs
Posted by John at 7/31/2006 3:17:08 PM
when I am setting my values for a form in the Load sub, I set some of the textbox and combobox values. this cuases their textchanged event to happen and my subs run as if the text changed even though this is just the initial load. should I be using a different event or a different way to set...more >>

user controls
Posted by Alejandro González at 7/31/2006 2:11:59 PM
Hi. I have this problem. I create a user control with a constructor with several parameters. I also add the default constructor so I can add this control in desing time to a form. Why this isn't working? (default constructor was called in InitializeComponent()) private void Form1_Load(objec...more >>

ListView (CLR 2.0) in virtual mode and OwnerDraw = true
Posted by Frédéric de Buisseret at 7/31/2006 11:01:02 AM
Hi, I use the new version of the ListView (.net framework 2.0). I decided to make it virtual (due to the large amount of items) and set the ownerdraw property to true (to have the full control of the items drawing). The items (and sub items) are correctly displayed as long as i do not move...more >>

SaveFileDialog translation issue
Posted by berylwilson NO[at]SPAM gmail.com at 7/31/2006 2:31:55 AM
Hi all. In my application I use SaveFileDialog as follows. SaveFileDialog exportFileDialog = new SaveFileDialog(); exportFileDialog.Filter = "csv files (*.csv)|*.csv"; exportFileDialog.RestoreDirectory = true ; exportFileDialog.CreatePrompt = true; Since I have enabled CreatePrompt to ...more >>

DragDrop with RichTextBox under .net 1.1
Posted by Rolf Welskes at 7/31/2006 2:16:10 AM
Hello, I have tried to implement dragdrop for RichTextBox under .Net 1.1. IMPORTANT: it must be .NET 1.1 without any service pack, because of the distribution worldwide. 2.0 is not possible. I have implemented a sample I found. First there should be RichTextBox.DragEnter and RichTextBox.Dr...more >>

Modal Windows & Parents
Posted by cj_junktrap NO[at]SPAM mail.com at 7/31/2006 1:28:18 AM
Is it possible to have form.ShowDialog() be modal only to its parent/owner form, and allow the user to still use any other forms in the app? I've tried passing the parent form in as the parameter to form.ShowDialog, but that doesn't seem to make any difference. ...more >>



Winform Splash Screen
Posted by Angelina at 7/31/2006 12:00:00 AM
What is the best practice to create a splash screen in .net winforms applications so that the splash screen loads immediately after we start application and closes when all dlls loading and initializations is completed. I don't want any idle situation to be seen by the user. Currently I hav...more >>

Cancelling a new row in an unbound datagridview
Posted by Kelllisa NO[at]SPAM gmail.com at 7/30/2006 5:36:06 PM
When a user adds a row to an unbound datagridview, then clicks out of the row (or the control loses focus for any reason) without entering anything, I would like to have the row automatically deleted. However, I cannot find an appropriate event to handle this case. Using CellEndEdit results in...more >>

Howto: DataGridView VB.NET 2005 - How can I set cell type to checkbox programmatically?
Posted by Sam Malone at 7/30/2006 9:28:50 AM
Can anyone show me (sample code???) how to programmatically set a column type to "CheckBox" in code (as opposed to the designer)? The datagridview isn't bound to a design-time dataset so until it executes there are no columns for which I can select a column type. ...more >>

Tool Window
Posted by danthi NO[at]SPAM gmail.com at 7/30/2006 9:16:48 AM
I want to add tool windows to my application like the dockable "Properties" and "Toolbox" windows in VS 2005. I've googled for information about this and can't seem to find any samples or HOW TO articles. Are these controls on the window or are they windows with borders set to ToolWindow that...more >>

How to track Form.WindowState changes?
Posted by Lloyd Dupont at 7/29/2006 9:30:24 PM
Apparently there are no event associated with a change of the form's WindowState property. How do I know when my windows has been miniaturized? ...more >>

Development environment / tools
Posted by Hari Shankar at 7/29/2006 4:56:19 PM
Hi I need to develop user interface similar to car radio in windows. for that i am looking for a programming language and/or development environment which can help me in achieving the same. I have the following in mind 1. C++ with MFC 2. C# .NET 2003 3. C#.NET 2005 4. XAML ( i don't know i...more >>

playing interactive flash(.swf) movies in the form
Posted by Sachin at 7/29/2006 5:28:01 AM
Hi, I've a .swf file which has four buttons. There is a motion effect when mouse gets hover on to any of the buttons. I want to integrate this flash file into my form and want ot perform a certain action on the respactive button (which are in the flash file) click. I observed that I am not ...more >>

Using the mousewheel
Posted by Jean Paul Mertens at 7/28/2006 4:10:21 PM
Hello, I try to use the mousewheel in a user control to to scroll in a pannel where I draw with GDI+ . due to the fact that a pannel don't has focus, I have no mousewheel event at my dispositon. Is there a work around? Someone has an idee? tnx in advance. Jean Paul ...more >>

How do I focus on this cell in a winforms Datagrid control?????
Posted by rhaazy at 7/28/2006 11:48:55 AM
why doesnt this work???? DataGridCell newrowcell = new DataGridCell(dataGrid1.CurrentRowIndex,0); dataGrid1.CurrentCell = newrowcell; If I use the integer 1 instead of 0, it works, but that is the second column, I want the focus to be on the first column, however this piece of code app...more >>

Creating instances of a control
Posted by Robe at 7/28/2006 9:43:01 AM
Hi, Creating instances of a control I have a panel with some controls inside and I need to create a Stack to push into some instances of the panel. I mean, there is a button where the user creates a new instance of the panel each time it push the button. Any idea? Thanks, ...more >>

Anyone reading the bug reports over there?
Posted by Earl at 7/28/2006 1:04:34 AM
For all of the good work that was put into VS2005, I find it utterly astonishing that the 2.0 DataGrid has exactly the same right-alignment header bug in it that the 2003 version had. Wow. ...more >>

Application.SetUnhandledExceptionMode()
Posted by Grant Morgan at 7/28/2006 12:00:00 AM
Hi I'm relatively competent at windows forms programming in net 2.0 (VS 2005), however, I've never really gotten my hands dirty with exception handling until now... My application is using a startup form (not a sub main) for a windows forms project, with application framework enabled. ...more >>

multiple program icons problem - VS converts some 32bit icons to 24bit
Posted by SharpCoderMP at 7/27/2006 6:19:13 PM
i'm trying to embed multiple program icons in my executable. the only way so far i managed to do that is to embed native win32 resource file with multiple icons. it works, but... when i create a native win32 resource file with the VS 2005 and put there my icons, VS always converts some of the 32...more >>

How to detect complex keypress (STRG+N, P)?
Posted by Roland_Müller at 7/27/2006 2:57:18 PM
Hello, i know how to get a simple keyboard combination, but how to detect a combination of keyboard combination, pressing STRG+N and P? This does not work: private void MdiParentForm_KeyDown(object sender, KeyEventArgs e) { Debug.WriteLine(e.KeyData); switch(e.KeyData) { ...more >>

text box format
Posted by John at 7/27/2006 2:48:52 PM
What method is considered the best way to ensure users enter the correct data in a text box if you want an integer or decimal? ...more >>

User Controls - Web vs. WinForms
Posted by Mark at 7/27/2006 1:50:28 PM
What is the difference between a "user control" for Web Forms vs. Windows Forms? I have extensive use of user controls (.NET 1.1) in Web forms. Just wondering how they differ for Windows Forms. Thanks. ...more >>

Display adapter
Posted by Søe at 7/27/2006 1:16:02 PM
Hi, I'm trying to create an project running in a dual display environment. My application instantiate a Windows Form on each monitor, and that works great. However, I need to use DirectX and thereby I need to figure out, which display adapter the form is running on. Until now that hasn't be...more >>

How to show an auto hidden window
Posted by Ramesh at 7/27/2006 6:59:02 AM
In my application, we have some windows that are auto hidden at start up. My intention is to use a menu item to show them, just like that way Visual Studio does with Toolbox, Solution Explorer etc. How can I programmatically show an auto hidden window ?. Any help is highly appreciated. Than...more >>

Button Click Event Fires When Disabled
Posted by rmacias at 7/27/2006 6:33:03 AM
While testing one of our applications, I found some interesting behavior with the Button click event using .NET 2.0. Let's say we have a windows form with a button on it. When the user clicks on the button, the button disables itself (to prevent the user from clicking again), does some pro...more >>

Windows Form Level Exception
Posted by Angelina at 7/27/2006 12:00:00 AM
Is there anything similar to "Error" event of System.Web.UI.Page of Webforms in a Windows Forms?? I want to catch all errors occured in a windows form? I already know there is Application.ThreadException but that is on application level. - angi ...more >>

Question about windowsforms.datagrid control
Posted by rhaazy at 7/26/2006 7:05:54 AM
Using C# I want to be able to select the last VISIBLE row in the datagrid. When I try to do this using the datagrid.select method it tells me my index is out of range. How can I programatically select the last VISIBLE row (which has no data in it) to allow the user to add it leading to th...more >>

Strange behaviour - arrays or treeview?
Posted by hayrob at 7/26/2006 6:50:02 AM
In hunting down a problem I created a simple form. Public Class Form1 Private mOne As TreeNode Private mTwo As TreeNode Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load LoadNodesA() 'LoadNodesB() ...more >>

DataGridView Column header Color - vs 2005
Posted by sudhaoncyberworld NO[at]SPAM gmail.com at 7/26/2006 6:35:52 AM
Hi Techies, I have added datagridview in my windows application, i have set the Column header color to some color, but it is not reflecting the color whatever i set there.Its just showing the color "Control".I am using Win XP OS, But the samething is working perfectly in Win 2000 Prof, ...more >>

.NET running on network
Posted by Roy at 7/26/2006 6:31:02 AM
Hi all, Can .NET applications run on Windows 98? My other question is how a .NET application runs from a network. Is this statement correct? When a .NET application is run from a network, Microsoft’s ..net framework software running on the user’s machine will copy the software into the...more >>

Setting MdiParent property on a form created by another non-Mdi form
Posted by Earl at 7/26/2006 12:00:00 AM
How do I set a form's MdiParent property to the MdiParent when it is NOT created by the MDIParent? For example, frmMain creates frmA, frmA creates frmB .. how to make frmMain the MdiParent of frmB? private void btnAddNew_Click(object sender, EventArgs e) { frmB frmB = new frmB(); // thi...more >>

Auto update smart client
Posted by Angelina at 7/26/2006 12:00:00 AM
How I can add auto online update feature to my windows application which basically is a smart client. I already had a web service which will tell the latest version and download URL. Now how can I make my application to do that? I am using .NET 1.1 C#. - angi ...more >>

Windows App connection error
Posted by Mr. Murad Jamal at 7/25/2006 10:35:01 PM
There's a vb.net 2005 windows app that sends out emails, it works fine, but sometimes it gives these errors: 1)System.Runtime.InteropServices.COMException (0x80040212): The transport lost its connection to the server. 2) System.Runtime.InteropServices.COMException (0x80040213): The transp...more >>

Tabs, Bound Controls & UserControls
Posted by Brian P. Hammer at 7/25/2006 3:53:50 PM
All - I have a form with a tab control. There are 9 tab pages with various data bound controls on each. I was thinking of moving theses to seperate usercontrols and then adding the control to each tab page. I haven't conceptually grasped how to handle the data part though. Should I pass a...more >>

How to suppress displaying DropDownItems of a MenuItem
Posted by Paul Jones at 7/25/2006 3:17:15 PM
Hi, I need to suppress displaying DropDownItems of a MenuItem. I thought MenuItem.Enabled=false might do also this except disabling the MenuItem, but it didn't. Any ideas? With regards Paul Jones...more >>

Custom DataGridView Columns and Cells
Posted by Guy Thornton at 7/25/2006 1:18:01 PM
Hi, I have an application with a DataGridView that displays a Questionnaires questions and allows a user to fill in answers to these questions in the gridview. Each question knows its questionType (Date, Text, or Yes/No/Na). I have created a custom column that inherits from datagridview...more >>

How to catch "new-row-editing-cancelled" event in DataGridView (is there any similar event?)
Posted by Paul Jones at 7/25/2006 1:11:17 PM
Hi, I need to know when user cancelled adding a new row to the DataGridView. Is there a way how to do it? I explored the DataGridView events but failed to find any usable one. The thing is I need to do something when user adds a row to the DGV. This is done in the DGV_UserAddedRow. In case us...more >>

DataGridView - in a real bind
Posted by Daniel Manes at 7/25/2006 12:37:20 PM
Take one DataGridView, add one column that contains cities, add another that contains countries, add another that contains locales (states, provinces, territories, etc.). Now, make the Country and Locale columns ComboBox columns, and bind the Country column to a Country BindingSource and the L...more >>

Multithread and UI again ! :)
Posted by maxima at 7/25/2006 12:12:02 PM
Hi, I have done some coding with UI being accessed from different threads before. But now I stuck. Need your help guys! :) My application run not the form but some ApplicationContext class (in function Main - Application.Run(new MyAppContext());) That class creates 2 children. Model1 a...more >>

Focus visualization on XP
Posted by Carlo Folini at 7/25/2006 8:53:01 AM
With vs2005 I created a simple form. New Project->Windows application(c#)->added a button on it-> set FlatStyle="System" Running this simple program on windows 2003 the button is selected and I see the dotted line around the button. The same program under windows xp pro (italian) selects th...more >>

Comobox Default
Posted by Baren at 7/25/2006 8:14:01 AM
In windows application, I am binding a dataset to a combo box. How do I add a default “-Select-” value at the top. ...more >>

Keypress and function keys?
Posted by Kevin Burton at 7/25/2006 7:32:02 AM
I am trying to detect if F3 is pressed to mimic the typical "find next" scenario in a RichTextBox. The function keys do not seem to cause a key press event to occur. How can I detect that a function key has been pressed? Thank you. Kevin...more >>

How to reflect inputs of one form to another?
Posted by paradox81 at 7/25/2006 7:00:03 AM
Hi all, i am currently writing a small application which involves two forms. Form A is used primarily for display purposes while form B is used to gather user input via a number of textboxes and numeric updowns. The situation now is that when the user keys in his/her input to form B and ...more >>

ICustomTypeDescriptor vs Remoting
Posted by Robert Ludig at 7/25/2006 5:58:52 AM
I am using System.Windows.Forms.PropertyGrid to display the properties of some custom objects. To enable dynamic modification of those properties (and its attributes) this class hast to derive from ICustomTypeDescriptor. Now I want those objects to be marshalled (by reference) across process bou...more >>

Datagrid not working properly with storedprocedure
Posted by Amol at 7/25/2006 4:54:56 AM
Hello, I am developing an apllication in which i want to change the values of datagrid checkbox column according to parameter passed to the query. But the problem is that, at first time when i usedto send the parameter values it shows me the result ok for first time.But as i change the value ...more >>

How to Create Combobox with Multi-Columns
Posted by Long Saroeurn at 7/25/2006 12:00:00 AM
I'd to create combobox that can display multi-columns when user click it. Thx, Saroeurn ...more >>

How to raise an event of button (click event) from textbox's onkeydown event?
Posted by ABC at 7/25/2006 12:00:00 AM
How to raise an event of button (click event) from textbox's onkeydown event? I have a button which have or not a click event and a textbox which have onkeydown event. I want add some feature on textbox such process input '*' character will raise click event of a button. which function ...more >>

Customized installation screen
Posted by Angelina at 7/25/2006 12:00:00 AM
Hi All, I am creating a setup for a windows application in VS 2005. Now I want to customise look and feel of all the installation steps screens. But VS 2005 seems not to provide this feature. This only allows to change the baaner bitamp and some selected text strings. How can this be achiev...more >>


DevelopmentNow Blog