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

Filter by week: 1 2 3 4 5

How to submit a message into Message Queue?
Posted by Bishoy George at 9/30/2006 1:13:56 AM
I have an application that get data and write xml file from this data. The application should put the data as a message in the Message Queuing. Every time I encounter an error saying: "The queue does not exist or you do not have sufficient permissions to perform the operation". This is design...more >>


SF, CA jobs - Sr & Int. UI Eng - .Net Framework/Windows Forms
Posted by Lee Johnson at 9/29/2006 5:00:02 PM
I am searching for .Net Framework/Windows Forms UI Software Engineers (Senior and Intermediate) for a Financial Engineering software company in the San Francisco Financial District. My client company was founded in 1990 by the inventors of Program Trading and Index Funds. They are creatin...more >>

VS 2005 publish and app.config encryption problem
Posted by Craig Banks at 9/29/2006 2:45:25 PM
I'm using the publish capabilities of VS2005 to deploy a smart client application. To secure the connection strings I'm encrypting them in the app.config file using the DataProtectionConfigurationProvider. Everything works fine with one major security hole I need help with. My client is set...more >>

DataGridView crash when selecting Data Source
Posted by Jon Ebersole at 9/29/2006 1:09:01 PM
I have one Windows project that crashed on me when I tried to select the data source on a DataGridView control after adding it to my project. Since then, I can no longer set any data source fields on any controls anywhere in that project. I can do it just fine in other projects on the same m...more >>

Setting value of datagridviewcheckboxcell
Posted by Diane Yocom at 9/29/2006 8:55:30 AM
I have a datagridview with a datagridviewcheckboxcolumn. The datagridview is bound to a custom collection. The DGV, itself, is loading fine, but I cannot seem to figure out how to programmatically set whether or not the checkbox is checked. I've tried the following: row.Cells("colName")....more >>

Line numbers reading file
Posted by Maury at 9/29/2006 12:00:00 AM
Hello, I created with VS2005 one form with a textbox (multiline). I inserted the content of a text file into the text box (the user can choose which file can be inserted) Now I would like to insert on the left, for each line, the line number (like PsPad, or other text/html editors), but if I i...more >>

Load Form on Startup with Folder Dialog
Posted by daokfella at 9/28/2006 9:55:08 PM
When I load the main form of my MDI application and it doesn't find a specific registry value, I want to show the Folder dialog box. However, I want this dialog to be ON TOP of my main form. Performing my checks and showing the dialog in Form_Load displays the dialog before the main form is visi...more >>

DataGridView columns being reordered
Posted by JFendors at 9/28/2006 11:41:02 AM
I have a DataGridView which I have configured a set of columns and their fill weights in the designer. Also, I have specified a DataPropertyName for each column. I programmatically create a BindingSource to hold a set of objects that I want to display in the DataGridView. I then assign the ...more >>



How can o run a commanline app in C #
Posted by Alvis at 9/28/2006 7:56:02 AM
when i run this code i get an error message cant find the specified file, But if i paste the command into the command prompt it works fine could someone tell me why this is happening i uses a break point and quick watch to get the command string. System.Diagnostics.Process ...more >>

Opacity flickering problem
Posted by UdiBenSenior NO[at]SPAM gmail.com at 9/28/2006 6:20:10 AM
Non of the advises I've found here helped me. Anyone knows a simple solution for that problem? Thanks! ...more >>

Spell Check
Posted by Newish at 9/28/2006 5:21:39 AM
Hi Is it possible to use a spell check in a windows and/or asp application. Say, there is some text in a textbox. How can we run a spell check on the contents. If there are any resources available on internet please let me know. thanks Newish ...more >>

DataGridView and DataRow[]
Posted by probashi at 9/27/2006 4:03:48 PM
Is it possible to bind a DataGridView control to an DataRow[] (array of DataRow )? ...more >>

DataGridView line number
Posted by probashi at 9/27/2006 3:14:25 PM
How to display line number into a DataGridView control? ...more >>

FormClosing Event And Cancelling The Close
Posted by RSienkiewicz at 9/27/2006 11:25:01 AM
In a WinForm, in the FormClosing event, there is an opportunity to cancel the close by setting the Cancel property of the FormClosingEventArgs to true. This is typically done when there is unsaved data on the form and the user, when asked if they want to close the form and lose data or not, sa...more >>

ComboBox not repainted properly in windows form
Posted by lucyh3h NO[at]SPAM gmail.com at 9/27/2006 11:01:46 AM
I have a ComboBox in Form1 which is bound to an ArrayList. When I show Form2, Form1 is hidden. In Form2, I updated the ArrayList and an event is fired, so the event handler in Form1 will rebind the ComboBox to the ArrayList. I do this by resetting the DataSource, DisplayMember and ValueMember of...more >>

ComboBox.Items.Clear() causes the selection of Text inside the edit of the ComboBox
Posted by Nomasnd at 9/27/2006 10:10:28 AM
As the subject says, when I call Items.Clear() for a ComboBox the text inside the edit of the ComboBox is selected with absolutely no reason. Is there a way to avoid this (bug)? thanks ...more >>

data.gz C#
Posted by Alvis at 9/27/2006 9:41:03 AM
Hi i have a application that unzip zips files. it works fine with files with a .zip extention. how can i use C# to unzip a file with a .gz extention? i am useing a J sharp dll to unzip the files. ...more >>

Finding a control on a form with a text reference
Posted by lisa NO[at]SPAM starways.net at 9/27/2006 8:08:46 AM
This is incredibly frustrating. I have a VB6 app at work that we're upgrading to .NET. In the VB6 code, I'm able to get a reference to txtText by using frm.Controls(txtText). In ASP.NET, we have Page.FindControl(txtText). But in WindowsForms, there doesn't seem to be any equivalent. Now, ...more >>

Opening multiple MDI children maximized.
Posted by Al Christoph at 9/27/2006 7:58:02 AM
-- Regards, Al Christoph Senior Consultant Three Bears Software, LLC just right software @ just right prices @ 3bears.biz Microsoft Certified Partner (ISV) Coming soon: Windows Mail for Vista. ...more >>

On achieving super smooth refreshes...
Posted by R3al1ty at 9/27/2006 4:36:33 AM
Hi folks, I have a small modal form in front of a big form. How do i cleanly hide the small modal form? Currently, when i do smallForm.Hide(), the bigForm area that was under the smallForm refreshes in bits and pieces. mainForm.Show() smallForm.ShowDialog() smallForm.Hide() // ugly ...more >>

Form that is already displayed modally cannot be displayed as a modal dialog box. Close the form before calling showDialog.
Posted by Jared at 9/27/2006 12:00:00 AM
Hi, How can I even show same form twice if modal forces stop of execution. Poor error, Microsoft. Error is . Form that is already displayed modally cannot be displayed as a modal dialog box. Close the form before calling showDialog. ...more >>

Error when I try to open cdrom programmatically
Posted by Victor at 9/27/2006 12:00:00 AM
Hi guys when i try to open my cdrom with "mciSendString" API Call. i get exception. but i have no idea how this happen. Can you guys give me some idea? Thanks My code likes: [DllImport("winmm.dll", EntryPoint = "mciSendStringA")] private static extern long mciSendString(strin...more >>

Forms width < 123
Posted by Jared at 9/27/2006 12:00:00 AM
What is the deal with not being able to make forms width smaller that 123? ...more >>

DataGridView - Sort Multiple Columns
Posted by Robert Robinson at 9/26/2006 9:53:26 PM
I am using the following code to sort two columns; for example, lastName, firstName. Public Class ARowComparer Implements System.Collections.IComparer Private sortOrderModifier As Integer = 1 Public Sub New(ByVal sortOrder As SortOrder) If sortOrder = sortOrder.Des...more >>

newbee form layout
Posted by tony leake at 9/26/2006 8:30:14 PM
Hi, I want to create an app with several different 'pages' A tab control would be perfect if i could turn off the tabs and change the pages programaticaly. It doesn't look like this can be done, so what would be the usual way to achieve this kind of interface. Thanks for your help. ...more >>

How does windows forms message routing work?
Posted by Buddhist.CHinA NO[at]SPAM gmail.com at 9/26/2006 8:01:16 PM
These day, I got a problem when I'm writing a mixed program - there seemed to be some events missed in message routing! In my case, when I clicked into a native window, WM_LBUTTONDOWN and WM_LBUTTONUP should get handled in this window's wndproc. But the WM_LBUTTONUP events seemed disappered. ...more >>

Custom User Controls do not show up in toolbox (VS2005 pro)
Posted by Shea Martin at 9/26/2006 5:55:25 PM
In my C# winform project (MyProject), I added a new 'User Control' item. I can't (visually) add it to any forms because it does not show up in my Toolbox. If I open the project using Visual C# Express, the top grouping in my tool box is 'MyProject', and my custom control appears in there....more >>

What does this error mean?
Posted by Steve Barnett at 9/26/2006 4:07:41 PM
I copied and paste a form in my solution and renamed the copy (all done in the solution explorer) and now, when I compile the app, I get the following error: ----------- The item "obj\Debug\SingleInstance.UnlockDlg.resources" was specified more than once in the "Resources" parameter. Dupl...more >>

Infragistics UltraGrid Right-click Selection in Grid?
Posted by Ayron at 9/26/2006 7:09:24 AM
Ok. I give. How can you select a row in the UltraGrid upon mouse right-click? Thx. -ak ...more >>

How to list all ActiveX controls registered on system using C#?
Posted by Melisa at 9/26/2006 7:06:18 AM
Hi, I want to list down all ActiveX controls which are registered on my system. How can it possible through C# ? Please help me and reply ASAP. Thanks Melisa ...more >>

C++ Win Forms DLL
Posted by David++ at 9/26/2006 5:56:02 AM
Dear List, I am writing to ask your advice on whether you think this is possible - I use a SDK written in C++ to create DLL audio 'plugins'. I am able to succesfully build these DLL's in VS2005. I was wondering if you think it would be possible to incorporate .NET 2.0 functionality within...more >>

Improving Paint performance while Scrolling
Posted by R3al1ty at 9/26/2006 5:29:34 AM
I have a pretty large UserControl (2000 pixels high) on which around 1000 smaller controls are embedded. When I scroll this whole thing using the mouse wheel, everything gets rendered nice and clean. On the other hand, if I scroll by moving the scrollbar, the display kinda waits until I let go b...more >>

Threading and WndProc - basic question
Posted by Chris Ashley at 9/26/2006 4:09:23 AM
Hi, I'm overriding WndProc to process some custom messages like so: protected override void WndProc(ref Message m) { if (m.Msg == ImageFileMsg.MSG_IF_NEW_DATA) { ProcessNewDataMessage(m); } base.WndProc(ref m)...more >>

How to get the system drive info?
Posted by Victor at 9/26/2006 12:00:00 AM
Hi guys I want to get the system drive info programmatically. like which one is hard disk, which one is a DVD-Rom. But I don't know how to start. Can you guys please give me some idea how to get these info. Cheers ...more >>

Installer question
Posted by BVM at 9/26/2006 12:00:00 AM
Hi: i am creating a setup file. I want it to copy CDO.dll into C:\Program = Files\Common Files\System\Mapi\1033\NT and register it. Do you know how = to do it? I cannot find any property that let me copy files to = C:\Program Files\Common Files\System\Mapi\1033\NT.=20 Thanks, Dennis Huan...more >>

problem to unload usercontrol on a winforms
Posted by Max3vil at 9/26/2006 12:00:00 AM
I Had realized a user contro ctrlContro and i load it in this way: ctrlControl c1=new ctrlControl c1.Partent=this; c1.Show(); this is right, how do i unload this controls ? c1.dispose(); c1=null is wrong tnx ...more >>

RichTextBox Class
Posted by Thomas Bodell at 9/25/2006 3:50:30 PM
Hi All, I have a strange problem i my app. using the RichTextBox Class. I am setting the text proprty in my control with some text, this text includes "\r\n" line breakes, and it looks fine. Then I access the control by using some method e.g. GetLineFormCharIndex() or Select() and then when...more >>

A client application with all logic accessed via web services?
Posted by Simon Harvey at 9/25/2006 1:39:10 PM
Hi everyone, We have a need to make a Windows Forms (2.0) client application that will be installed on our clients site. The data that the application uses needs to be centrally available to a potentially large number of other sites, which would seem to leave us with our traditional appr...more >>

ListView in framework 1.1 paints a lasr blank column
Posted by Roy at 9/25/2006 1:39:02 PM
The standard .NET ListView control paints a last blank column to fill-up the extra-space in the ListView. Is there any workaround? My listview has only one column, and I don't want users to see that extra blank column. Roy....more >>

Winform open WebService dime pdf attachment
Posted by Steve at 9/25/2006 12:03:19 PM
I have a C#.net windows form project that connects to a webservice that returns a dime attachment (pdf document). I need the winform to open and load the pdf document into acrobat reader. I do not want to write the file to the hard drive to create a path so that I can call System.Diagnostics.P...more >>

Which event handler used when scroll changes when you tab controls
Posted by illegal.prime NO[at]SPAM gmail.com at 9/25/2006 11:42:59 AM
Hi all, I want to hook into the event handler that is used when the scroll changes when you tab through controls. I expected this event to get sent through: protected override void WndProc(ref Message msg) But, this method is not triggered when the user is just tabbing through controls. ...more >>

Actions i WinForms (C#) ?
Posted by eramfelt NO[at]SPAM gmail.com at 9/25/2006 9:23:27 AM
I have a question on what the "proper" way is to link Controls and logic? At my current project, which is a C# .NET 2.0 GUI application, they use events to listen on buttons/lists/menu items. Ie. the code for linking an action/logic to a button it looks like btn_Clicked(), and so on (list_DblCli...more >>

Developer CV
Posted by Berkshire Freddo at 9/25/2006 8:24:01 AM
I have been developing for about three years now, i am now looking forward to getting a new job. I am MCAD.net certified. I am looking forward to have some one who could send me a sample of a mature CV that can attract an employer. Can anyone help? my email address is federick.ade@comic.com...more >>

How to display ToolTip for disabled Controls
Posted by andersch at 9/25/2006 5:35:02 AM
Hi How can I display a ToolTip for a disabled (Enabled = false) Control (Button, CheckBox, ...) with C# 2005? Thanks a lot andersch...more >>

Thread question
Posted by BVM at 9/25/2006 12:00:00 AM
Hi: I am doing databinding on a datagrid with a big table. It takes very = long time to finish it. I wonder if it's possible to use thread to = divide databinding into several phases in the background. so user don't = have to wait so long. for example, I display first 50 records to users, = t...more >>

Changes to DataGridView on Form in Shown event don't appear
Posted by Dan Cooperstock at 9/23/2006 6:42:15 PM
I have a form with a DataGridView on it. It's not data bound - I custom designed the columns, and create rows and fill in column values programatically. I'm in the Shown event handler for the form, and I am doing processing that takes a bit of time, and updating the DataGridView as the proc...more >>

Detecting the mouse cursor in a PictureBox?
Posted by Jim Bancroft at 9/23/2006 3:35:08 PM
Hi everyone, I have an assignment where I have to load an image into a picture box (no problem), then loop over it, from left to right, playing a different sound based on the RGB value of the pixel. I could use a suggestion on a good way to load and play sounds in .Net, but my larger que...more >>

How to put a form feed in a file
Posted by aarepasky NO[at]SPAM yahoo.com at 9/23/2006 6:52:46 AM
I write output to a file to produce a report. Then the user prints this file. Someone else wrote this program and I have taken it over. He has written it using VB.NET, but wrote it like it is VB6. The program is like a report writer. The user wants some page breaks. I tried it put in a f...more >>

How to Finish the Program
Posted by Martijn Mulder at 9/22/2006 11:12:05 PM
What method can I call to terminate my Forms-based application and give control back to the system? ...more >>

How to display data on a Windows form (without using a datagrid)?..
Posted by Peter Demeyer at 9/22/2006 7:05:53 PM
I want to display data from a database as labels on a form without using = a datagrid. My problem is that I can't make the labels at design time because the = amount of data is variable. It should look a bit like this: John 1/8/1970 Edit Remove Peter 8/2/1972 Edit Remove ...more >>


DevelopmentNow Blog