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

Filter by week: 1 2 3 4 5

How do I do this
Posted by Larry Smith at 6/30/2006 9:13:01 PM
Looking at the ".resx" files produced by the Windows forms designer, I see nodes like this: <data name="MyRadioBtn.Size" type="System.Drawing.Size, System.Drawing"> <value>94, 21</value> If you then read the "94, 21" back into your code as a string (exactly as seen), how do you then...more >>


EditValue problem
Posted by pyda001 NO[at]SPAM ec.auckland.ac.nz at 6/30/2006 4:41:31 PM
Hi yall! I have created an image selection dropdown editor for use in a PropertyGrid. My selector form is called dropdown by a IWindowsFormsEditorService and so far it's all sweet. On my selector form I have placed a lot of pictures the user can select from. I have also placed a button with...more >>

accessing to windows register
Posted by Bruno Alexandre at 6/30/2006 3:31:38 PM
Hi guys, I'm an asp.net 2.0 developer with a almost nothing in window forms. Because of the retriction of ASP.NET security I can't access the windows register by it (unless I build an active x to do that, but I dn't even know how to start if I choose that road) so I'm building a window...more >>

Forms Event model
Posted by jsh02_nova NO[at]SPAM hotmail.com at 6/30/2006 4:12:01 AM
Can someone point me to a document showing the sequence of form events upon showing? thx...more >>

Newbie needs advice
Posted by David++ at 6/30/2006 3:43:01 AM
Hi folks, Quite new to Windows Forms development. So far I've just developed some single formed apps which have the main form as the solo interface. I would now like to develop an app which has multiple levels (or screens?) i.e. perhaps the first entry screen to the app will be a 'Login Pa...more >>

Disable a context menu in sys tray??
Posted by Amil Hanish at 6/29/2006 7:46:55 PM
I have a sys tray icon with a context menu set. I only want to allow a right-click on the icon if the control key is pressed with the right-click is done. I can't figure out how to do this? I've tried overriding a lot of the events and attempted at things like Visible and Enabled, but I c...more >>

How to tell VS not to treat a class as a form
Posted by MuZZy at 6/29/2006 6:20:41 PM
Hi, I just wonder if someone came across this small problem: i add a class file to the C# project and i implement a class derived from Form. Even though i don't have a resx file assosiated with it VS still treats it as a form file and on double click it tries to open a form instead of ope...more >>

Supress MDI child titlebar flashing?
Posted by Byron at 6/29/2006 4:43:01 PM
I've got an MDI app that contains one child form at a time that takes up all the display real-estate of the parent form. I've turned off everything that would normally be visible using the code below so that the child will appear to be just the body of the main form. This works as expected...more >>



ClickOnce Deployment Location
Posted by Chuck P at 6/29/2006 11:40:34 AM
I was trying to setup the deployment location/method for a ClickOnce application. In the Application Properties : Properties Tab set Publish Location When I use a Http://location I get an error due to FrontPage Extensions not installed. Which I really don't want to install because of the...more >>

Displaying large amount of data in a Treeview
Posted by Danny Liberty at 6/29/2006 9:53:01 AM
Hi, I would like to display a large amount of data stored in a file (100Mb or higher) in a treeview control. It would be very inefficient to preload all the data into the treeview since it would take an extremely long time to load the form and it would also consume a large amount of memory. ...more >>

TextBox validation.
Posted by Kevin Burton at 6/29/2006 7:47:01 AM
I have a text box (several actually) that I need to validate. Some of the conditions is that it can't be empty, it can only contain numeric characters and optionally dashes, etc. One of the problems is that once a user has started entering text in this text box, unless it is valid input focus ...more >>

How to force SplitContainer's contents to change 'on-the-fly' during resizing
Posted by nvx at 6/29/2006 6:07:28 AM
Hi, how could I force a SplitContainer to redraw it's contents during resizing of the panels? Any help would be appreciated... Regards nvx ...more >>

I need a gap between two tabs in a TabControl. Could anyone help?
Posted by nvx at 6/29/2006 5:43:08 AM
Hello there, I have a TabControl on a form and I would very much like to have a (let's say) 30 pixels gap between two specific tabs. Is there any way how to achieve this? Thanks for any help... Regards nvx ...more >>

Button image
Posted by Ben at 6/29/2006 4:29:02 AM
Hi, I have a round image and have set it to be the button's image. I also set the backcolor as Transparent. When I run the form, the image looks good but it has a square box aound that is not transparent. How can I get the square box to be transparent? Thanks for your help Ben...more >>

Everything closes down :'9
Posted by Bored Pills at 6/29/2006 3:12:01 AM
When ever i am browsing the web and shuting down a same meeage appears regaring the memory i am using win xp HE...more >>

Threading Advice Quick Question
Posted by Mark at 6/29/2006 1:42:38 AM
Hi I have a non UI set of classes which do bits and pieces like getting file lists, generating xml etc. I figured on doing some of these processes on seperate threads. These wouldnt be called by the UI they would be controlled by the objects themselves. My question is simply whats the correct wa...more >>

What is the correct way to slow down a Winform app?
Posted by sune42 NO[at]SPAM hotmail.com at 6/29/2006 1:40:41 AM
For my ASP.NET website , I have a winform application that runs once a day doing various household tasks. As these tasks are quite DB/CPU intensive I use Thread.Sleep(XX); System.Windows.Forms.Application.DoEvents(); To slow it down. Why? I don't want this application to affect the perfo...more >>

Correct way to exit an Winform application?
Posted by sune42 NO[at]SPAM hotmail.com at 6/29/2006 1:35:56 AM
What is the "Correct" way to exit an Winform application? I have used Application.Exit(); But I find that the application is still running in TaskManager after closing it, so I asume that I am doing something wrong here.. Any ideas? ...more >>

System::Windows::Forms::WebBrowser and IHTMLDocument2
Posted by A Wieser at 6/28/2006 10:37:22 PM
I'm trying to create a browser control in edit mode with VS 2005 using C++. I've added the WebBrowser Control to my form as webBrowser1. However, I can't seem to get to an IHTMLDocument2 so that I can switch designMode on. I try this, but get an exception. mshtml::IHTMLDocument2 ^doc...more >>

Retained mode textbox
Posted by pyda001 NO[at]SPAM ec.auckland.ac.nz at 6/28/2006 10:25:36 PM
I'm making a retianed mode drawing system. In my application I want to make the users able to create textboxes similar to the ones used in e.g. PowerPoint. So far the application lets the user create the textboxes. My issue arises when the user doubleclicks the textbox and I superimpose a Ric...more >>

spurious ObjectDisposedException
Posted by Jeff Boeker at 6/28/2006 6:58:01 PM
I have two windows forms that the user toggles between; internally I show and hide the forms. Each form is refreshed from the same thread and I use data binding and an anonymous delegate event call to do the update. Every once and awhile I will get the Object Disposed Exception with my form ...more >>

Replacing executable while running
Posted by paulo at 6/28/2006 5:19:53 PM
Hello, I'm implementing an update system for our Windows Forms application which has some requirements not provided by current solutions, including ClickOnce. My only trouble now is how to replace the executable (running) file. Is there any way to do this without any external process? Than...more >>

show forms on tab pages or improved MDI?
Posted by ZenRhapsody at 6/28/2006 4:58:36 PM
This may be a completely screwy question, but here goes....... I am working on design of a Windows Forms app.(yes, I can no longer avoid GUI's!!) Have had VB6 UI experience, but no.NET UI work other than simple test forms to run class libraries. In this app, there will be many types of ch...more >>

Embedding controls in ListView - .NET FX 2.0
Posted by mehdi_mousavi at 6/28/2006 9:04:23 AM
Hi folks, I've got a probelm if embedding common controls in each cell of the ListView control. First of all, I would like to know how am I supposed to embed a specific LinkLable within a given cell/row of a ListView control? If I set the OwnerDraw property and I override the OnDrawSubItem func...more >>

Layering in Windows Form
Posted by vikash NO[at]SPAM nagarro.com at 6/28/2006 7:48:04 AM
Hi, I want to develop a windows based application using .Net 2.0 The application will have the heavy UI and it will have the lots of drawing to do on the form. So can any one give me the direction how can i handle the different issues that will arise in the same due to paint event and due...more >>

Any way to intercept the Format() and Parse() methods for all bound objects on a form?
Posted by Pritcham at 6/28/2006 7:45:43 AM
Hi If there are a number of textboxes (e.g.) on a form that are manually bound to an object (by using textbox.DataBindings.Add("Text", object, "PropertyToBind")) is there any way of intercepting all of the Format() and Parse() events that occur for each of these textboxes (so I can do some ch...more >>

Showing two images on a treenode
Posted by gooseneckster NO[at]SPAM googlemail.com at 6/28/2006 7:36:59 AM
Hi, Does anyone have an idea on how to display two images on a treeview's treenode? (.Net v1.1) At the moment I have made a TreeViewEx component that inherits from TreeView. I'm overriding the OnPaint and there I call method below with PaintEventArgs.Graphics and my root TreeNode: priva...more >>

create form like dll
Posted by BJ at 6/28/2006 12:00:00 AM
is there any way to create complete form with all it's precedures and functions and buttons and grids etc. and save that like dll file?? so i can call it from original application like new form?? tnx! ...more >>

ErrorProviders and How can I encapsulate business logic in typed datasets???
Posted by windsurfing_stew NO[at]SPAM yahoo.com.au at 6/27/2006 7:30:16 PM
Hi Group, I've put business logic into my typed datasets, eg: protected override void OnColumnChanging(System.Data.DataColumnChangeEventArgs e) { // Ensure price valid if (e.Column == this.PriceColumn) { ...more >>

Auto-restarting Forms Applications
Posted by TJO at 6/27/2006 5:17:16 PM
I am trying to understand how to restart a windows form application in the event of an unexpected exception on the main form. I want to have the program attempt to restart the application 3 times then fail gracefully. The problem I am experiencing is this seems to work fine for the first 2 atte...more >>

Storing/Serving Photos For Windows Forms App
Posted by Frankie at 6/27/2006 5:02:01 PM
Using SQL Server 2005 and .NET 2.0; I'm creating a Windows Forms application that will need to display photos of people, along with a bunch of information about each person. In a Web application, there is a generally accepted "best practice" of storing only a string (the path to the .jpg fi...more >>

Validing on DataGridView
Posted by Kevin Burton at 6/27/2006 3:17:02 PM
I was following the examples in the documentation but I think I am missing something. When I detect an invalid input I set e.Cancel to True. The problem is that in CellEndEdit I cannot cancel the error or clear the error text. I have some lines that look like: Private Sub dgvOrderIte...more >>

Using multiple winforms
Posted by kuhrty at 6/27/2006 1:30:22 PM
Hi, I have created a main menu and I would like to use this form to call the other forms in my project. I have hit a stumbling block in regards to closing and hiding forms. My Main Menu form has a link and it calls another form frmSafetyStock ssForm = new frmSafetyStock(); ssForm....more >>

How to get value of checkbox from datagrid
Posted by JLuv at 6/27/2006 12:17:43 PM
i've tried this method... int i = 0; foreach (DataGridItem dgItem in pGrid.Items) { if (((CheckBox)dgItem.FindControl("check")).Checked) { i++; } } Response.Write(i); just to make su...more >>

Windows that do not get the focus
Posted by Latief at 6/27/2006 9:00:02 AM
I m trying to write some forms that appear beside Textboxes like the auto complete window that shows beneath the address bar in IE. Now i managed to show the window beneath the text box in the same way but my only problem here is that the window doesnt respond to mouse move events coz it doe...more >>

DatagridView modify individual Column Header cells
Posted by Marty at 6/27/2006 4:14:02 AM
I am have a data grid view, with 2 columns for each day of the week: Monday | Monday | Tuesday | Tuesday| etc Hours | Tasks | Hours | tasks | ___________________________________| 3 | 4 | 5 |7 | 2 | 3 | 4 |6 ...more >>

Get a Cursors HotSpot
Posted by Mark Collard at 6/27/2006 1:08:03 AM
I need to get the hot spot location of the current cursor, so I can position a form correctly. Can someone please show me how to get a cursors hotspot location using C# and .NET 1.1? Thanks for your help....more >>

ListView.TopItem
Posted by Jared at 6/27/2006 12:00:00 AM
Hi, I am manualling setting a TopItem, for most of my listview grids this works fine, but for one it will not work? What would cause TopItem property to be ignored on a set? ...more >>

unable to attach the process
Posted by SenthilVel at 6/26/2006 6:00:54 PM
Hi I have a question when debugging dotnet code when attaching vb6.exe code to this process. i get an error like : unable to attach the process. there is no managed code running in the process. INorder to attach a process with the .NET Debugger, managed code must be running in the p...more >>

Are datasets part of a collection
Posted by Chris at 6/26/2006 12:33:01 PM
Hello, When datasets are added to a windows from are they part of any sort of collection that can be looped through? I have a form with 11 datasets, and I need to check each dataset for the same things. As Always, any help is appreciated. Thanks...more >>

Hi,
Posted by Enrico Campidoglio at 6/26/2006 6:30:02 AM
I wonder if there is a way to customize the links created by ClickOnce in the application start menu so that the "Support" link points to a custom CHM help file installed with the application instead of an URL. -- Thanks in advance /Enrico...more >>

Setting focus
Posted by Howard Kaikow at 6/26/2006 6:06:46 AM
I have the following as the only statement in a Form's Load event: txtDriveLetter.Focus() But the textbox is not receiving the focus. How to fix? ...more >>

DataGridView: EnterCell - the cell before
Posted by fiversen at 6/26/2006 5:31:27 AM
Hello, in the eventhandler of CellEnter the row/col of the parameter and of currentcell focus to the cell which is entered. Is it possible to get information about the last cell or have I to use CellLeave and store the last position. Frank Iversen ...more >>

ToolStripManager.LoadSettings - unexpected ArgumentNULLException
Posted by Martin Zenkel at 6/26/2006 2:24:01 AM
ToolStripManager.LoadSettings - unexpected exception ArgumentNULLException USING: Visual Studio 2005, .net-Framework 2.0, C# (same effect with VB) PROBLEM: ToolStripManager.LoadSettings(this) throws an ArgumentNULLException exception. Input parameter 'this' is a valid Windows.Form, not N...more >>

toolbar doesn't display icon
Posted by Adam Debowski at 6/25/2006 10:26:18 PM
Hi, I've developed an windows forms app in VS Pro 2003, where I use toolbar with icons. When I open form in design mode, the icons are displayed, but when I run the app the toolbar doesn't display them. When I run that app under Windows 98, the toolbar displays icons but under Windows XP...more >>

Activating/Deactivating Menus on the Other Form
Posted by Wahyu_DianPurnomo at 6/25/2006 9:07:02 PM
Dear all, I create a main form that has menu to open login form. The main form has menus disabled at first load (except menu to open login form). When the login form pops up, user can give his/her credential to connect to database and activate appropriate menus based-on his/her level. I h...more >>

KeyPress concept?
Posted by wikoh at 6/25/2006 1:30:01 PM
In old Visual Basic there was a KeyPress event that happened when a key was released some max time after it was pushed. I guess this was to allow a press to be cancelled if held down for a while (like holding down a button) Is there any such system-defined time between keydown and keyup that m...more >>

Exact difference between OnXXX() and their corresponding event handler?
Posted by Buddhist.CHinA NO[at]SPAM gmail.com at 6/25/2006 2:37:28 AM
I believe there must be some difference between them, such as, which has higher performance? how to implement these OnXXX() by MS? how to determine which one is preferred in a specific case? .... Can someone give a summary? That must be very appreciated. ...more >>

UI Responsiveness and DoEvents
Posted by pearsons_11114 at 6/24/2006 7:14:02 AM
This is a 6.0 v. .NET question. In 6.0, you worked around the fact that everything ran on the UI thread by judiciously invoking DoEvents to keep the message queue clear. Using this approach I was able to write UIs that were very responsive. Ironically, .NET has made this a lot harder to do by ...more >>

a simple crystal reports app
Posted by Victor Paraschiv at 6/24/2006 2:59:02 AM
Hi, I want to make a simple Crystal Report with data extracted from sql server 2005. I use C# in VS2005. In the windowform I use a CrystalReportsViewer and I add a new CR to the project....design my report( add the fields from table to the DETAILS section) , and in the end, after I run the ap...more >>


DevelopmentNow Blog