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

Filter by week: 1 2 3 4 5

Windows Form User Control
Posted by shankar NO[at]SPAM ozcap.com at 11/30/2006 5:43:44 PM
My Problem : There a UserControl and there is a button inside the user control The user control has a public method(HideMyButton) and all it does is hide the button inside the user control Now, I placed this user control in one of my forms and then Call HideMyButton method on th...more >>


Show loginwindow before MainWindow
Posted by Stephan Zaubzer at 11/30/2006 4:45:42 PM
I have an application which uses a main window. But before showing the Main Window (which is best done by Application.Run(new MainWindow();) I need to show a Login Window. When the login fails, the application should terminate but when the login is successful the loginwindow should be destro...more >>

Using tabs within a window
Posted by Marco Shaw at 11/30/2006 2:34:19 PM
*Very new to .NET* I want to open a tabbed Window: in tab one, I'd like an application like Notepad to show for example, then in tab 2 have Wordpad. Can this be done? What class should I start looking at? Marco ...more >>

Form Loses AcceptButton Property
Posted by taurin423 NO[at]SPAM gmail.com at 11/30/2006 9:10:22 AM
I have a windows form that has an OK and Cancel button. I have set them as the form's AcceptButton and CancelButton respectively. Every now and again when I run my program I find that they do not work when I hit Enter and Esc. I go back to Visual Studio and I see that the AcceptButton and Can...more >>

how to display data in crystal reports in vb.net2005 windows based desktop application?
Posted by Gurunadh at 11/30/2006 12:00:00 AM
Hi friends, we have developed a windows desktop application in vb.net 2005 with MS-Access as backend ,our problem is we have to display data from a datagridview to a crystal report,we have written the code to display in crystal reports it is working in the system in which w...more >>

how to map window keys to a windows forms program
Posted by codefragment NO[at]SPAM googlemail.com at 11/29/2006 1:25:04 PM
Hi I've just seen slickrun and I like the idea of being able to bind a key sequence to my own programs in this manner, any idea how I can do this in C#? Or is it a Win32 thing? ta C ...more >>

ClickOnce - How to add config file to list of files that get published
Posted by roybrew NO[at]SPAM att.net at 11/29/2006 9:51:01 AM
This (seemingly) simple item has escaped me after pouring over tons of posts about ClickOnce. How does one add a config file (myapp.exe.config) to the list of executables and dlls that get published with a ClickOnce application? All I want to do has have a standard config file get dropped down...more >>

How to dynamically resize form and add controls
Posted by garyusenet NO[at]SPAM myway.com at 11/29/2006 4:36:07 AM
Hi, *I originally posted this in c# but was advised to repost here. I'd really appreciate any answers you may have, i'm programming using Visual Studio C# Express. Thankyou* I will outline what i'm trying to do here, and would really like to here your suggestions of how I can do it ple...more >>



How to print a ListView?
Posted by Cheney Lee at 11/28/2006 5:26:30 PM
Hi everyone, this should be a quick question. I am use ListView control to bind some date,now I need to print the infor in ListView.Howeve,there is not some method call ListView.Print(), So anyway, if anyone knows of how to deal with that, I'd love to hear about it. Thanks! Kiven Lee ...more >>

How to reference a control
Posted by Leo Leys at 11/28/2006 2:53:02 PM
Hi, If the control's name is stored in a string one can iterate through the controls collection of a form to access the control. dim s as string="chkIsValid" dim chk as CheckBox for each ctl as control in me.controls if typeof ctl is CheckBox andalso ctl.name.tolower=s.tolower then c...more >>

Control.Remove() increases CPU usage and hangs application
Posted by kamlesh at 11/28/2006 11:54:18 AM
Hey guys, I have an app where i create a text box dynamically on a control and user enters something and once looses focus (leave event) i remove it from the user control. Once i try to focus another control in the app, Control.Remove() hangs the app and when i see the stacktrace Contr...more >>

DataGrid and Relationships
Posted by Charles A. Lackman at 11/28/2006 11:44:22 AM
Hello, I have a View that has a relationship between two tables. It works well for what I am doing, but I want to hide the child rows in my datagrid. I only want the data from table1 to show in the grid without the "+" sign. Is there a way to accomplish this? Thanks, Chuck ...more >>

How to find which column is sorted in DataGrid control
Posted by Adrian at 11/28/2006 8:47:02 AM
I have in VB.NET 2005 a DataGrid control placed within a Windows form and the property AllowSorting = True in order to allow users to further sort by any column they want. The datagrid is based on a TableSet (not on a view). How can I find during run-time at a certain moment if the DataGrid was...more >>

Msg: "Not a Microsoft .NET module"
Posted by Baskar at 11/28/2006 1:48:01 AM
Hi I am trying to add a DLL which is developed in VS 2005 to my project (VS 2003). I get following error message. "FileName.dll not a Microsoft .NET module" Do i need to convert this DLL to Framework 1.1 compatible to add it in my project? If yes, is there a tool to do this? Kindly r...more >>

How to add two buttons with textbox in a single cell of column?
Posted by Mahesh at 11/27/2006 9:47:15 PM
Hi, I want to show one text box and two buttons in a cell of a column in a datagridview. Any Clues? EggHeadCafe.com - .NET Developer Portal of Choice http://www.eggheadcafe.com...more >>

Initializing a RichTextBox
Posted by David Thielen at 11/27/2006 5:48:01 PM
Hi; What's the best way to initialize a RichTextBox.Rtf value. I'd prefer to do it from a resource so the text is in the exe file. -- thanks - dave david_at_windward_dot_net http://www.windwardreports.com Cubicle Wars - http://www.windwardreports.com/film.htm ...more >>

Making Control Topmost
Posted by Matthew Wieder at 11/27/2006 2:43:02 PM
I know that Windows Forms provide a TopMost property to ensure it is on top. How can I force a Control to be TopMost? I have a usercontrol that will be consumed by several forms and I need it to remain the topmost control when it appears on a form even though other controls may be added to t...more >>

Moving a form and a panel in parallel should not be as difficult ?!?!?!?
Posted by gourmete at 11/27/2006 1:13:02 PM
Hi! I=B4m developing a screen-capture application. My Idea is to cover the whole screen with a semi-transparent clickt-hrough layer, solely the Area that will be captured should appear without this layer. What I did: I use two forms. The first form works as the background-layer. It has no...more >>

screen saver
Posted by John at 11/27/2006 11:57:41 AM
I would like to create a simple standalone vb app that will end, and preferably restart the windows screen saver. I fould code that says it starts the screen saver but how about terminating the currently running instance? ...more >>

Events fired when Form.ShowDialog is called
Posted by Eddie Lascu at 11/27/2006 7:40:02 AM
Hello everybody, The MSDN says about ShowDialog that "When a form is displayed as a modal dialog box, clicking the Close button (the button with an X at the upper-right corner of the form) causes the form to be hidden and the DialogResult property to be set to DialogResult.Cancel. Unli...more >>

C# Windows Applications
Posted by deepak at 11/27/2006 12:05:02 AM
Hi All, I read article (http://msdn.microsoft.com/msdnmag/issues/05/08/AutomaticProxyDetection/default.aspx). I need yours help. Please advise me My Requirement is given below. This is C# windows .net application(application as i need *.exe file rather than install file...more >>

GUI Designer Tool
Posted by Axel Gallus at 11/27/2006 12:00:00 AM
Is there a software with which you can design and click together a XAML GUI and instantly become a feedback how the GUI looks? Thx in advance A.Gallus ...more >>

Save / Restore : size and position of the form
Posted by Gabriel at 11/26/2006 3:44:31 PM
Hello, How can I save and restore the position and the size dive by a user and restore them next time I start my application ? Thanks, ...more >>

Move two Forms simultaneously
Posted by gourmete at 11/26/2006 2:17:34 AM
HI! My first post, so Hello there! I=B4m trying to develop an apllication with docked forms, like in Winamp. If a child forms is docked to the parent form it should move and resize like the parent form does. I=B4ll give you an simple example of how I tried to archive this: Form parent =3...more >>

Getting clean layout in forms
Posted by David Thielen at 11/25/2006 8:35:02 PM
Hi; Is there a url somewhere that explains the best way to use the layout controls to provide the best layout. I want out windows to still look good when we add Japanese & German resources - which tend to make the text a lot shorter / longer. -- thanks - dave david_at_windward_dot_net...more >>

Saving info in Registry
Posted by Tim Gee at 11/25/2006 3:33:01 AM
Hi, Under Vista you can't save application settings to HKLM, can anyone point me in the direction of the new guidlines on where we should store application data, which is machine wide. Thanks Tim...more >>

drag and drop issue...
Posted by Lloyd Dupont at 11/24/2006 1:44:07 PM
If I use software like OpenOffice and try to drag text I could notice that 1. when I drag inside the document I'm moving the text 2. when I drag outside the document I'm copying the text Yet it all looks like one smooth operation. With correct cursor feedback (the little + marker next to the ...more >>

DataGridView performance
Posted by John Brown at 11/24/2006 11:05:40 AM
Hi there, Has anyone had any serious performance problems with this class. A couple of hundred rows of data with 4 columns (everything loaded on-the-fly with no DB involved, all simple strings, 90% under 10 characters, the rest as high as 500-600 characters, wrapping turned on) literally ta...more >>

HTML POST
Posted by Thom Little at 11/24/2006 9:43:26 AM
I have an HTML Form that uses GET and is processed by an ASP.NET 1.1 web application. Can you recommend a simple example of an HTML Form that uses POST and is processed by an ASP.NET web application (either 1.1 or 2.0)? What was the source of your information? Thank you. -- -- Tho...more >>

Figure out how much text will fit into the form title
Posted by Eve at 11/24/2006 9:08:02 AM
I'm assigning a description to my form title, such as: strDesc = "This is a test if the description will fit in" frmTest.Text = "(" & strDesc & ")" If strDesc doesn't fit in the title, I don't see the closing paranthesis: ("This is a test if the description will fi..." I would like to be a...more >>

Clipboard Problems with HTML
Posted by James Hancock at 11/23/2006 5:12:20 PM
I'm trying to intercept the clipboard so that I can fix Word's disasterous HTML that comes through before pasting it into a text box. I just pull the fragment information from the result that comes back when you ask for the Text that's of type HTML. Everything works just great, except when ...more >>

tooltip disappears after click on button
Posted by palm.kevin NO[at]SPAM gmail.com at 11/23/2006 5:13:34 AM
Hello, I have a problem using tooltips on buttons... Before the first click on the button the tooltip displays correctly, but once the button has been clicked, the tooltip isn't shown any more... Is this a bug? Or normal behavior ? Regards, Kevin ...more >>

using delegates and updating windows forms
Posted by Bill Angus at 11/22/2006 9:49:51 PM
Hi all: I have been playing around trying to get a progress bar to work. So far, I have the progress bar updating visibly, but the rest of the dialog now looks crappy. The rest of the dialog window badly needs a repaint, but it doesn't get one until the routine finishes that the progress-bar i...more >>

Method Conversion from VB6 to VB.Net 2005
Posted by Elmo Watson at 11/22/2006 2:11:07 PM
In vb6, I had a program that had the following code: StrPtr LenB Picture1.Print Picture1.CurrentX (& Y) They don't apparently transfer over in vb.net 2005 - - - I hate to admit it, but I found this code somewhere on line and I have never used these properties/methods again for anything el...more >>

MouseLeave fired on childs controls, This does not have thus to be.
Posted by Alvaro E. Gonzalez at 11/22/2006 1:52:29 PM
Hi; A UserControl named ContainerInfo has children controls; ContainerInfo also has the MouseLeave event. But one goes off when the cursor of the mouse is in a children control . This does not have thus to be, by a contracted being in ContainerInfo mouse has not left this. What I must do...more >>

Multi-window application example
Posted by David W at 11/22/2006 11:43:20 AM
Hi, I am porting an application from Windows Mobile to the desktop. This is my first .NET desktop forms application (my experience is in ASP.NET). I am looking for a sample application that employs a solid programming model for managing a multi-window application. This application has a ...more >>

Layered architecture
Posted by Gudni G. Sigurdsson at 11/22/2006 8:09:02 AM
Hi. It is often maintained, that a layered architecture is something one should consider in any nontrivial application (see e.g. Data Binding with Windows Forms by Brian Noyces). I have a VS2005 solution with 3 projects in it: 1. Adveita.UI - a WinForms executable for user interaction 2....more >>

VISTA \ MSCorLib \ Requested registry acces is not allowed
Posted by Jared (Home) at 11/22/2006 12:00:00 AM
Can someone confirm that it is now impossible to write to registry\localmachine on Windows Vista using .NET FX 2.0 + .NET FX 3.0 Can't the developer put application into "Administrator" mode for the user. ...more >>

How my application can know that, file is being copied on the USB Mass Storage device
Posted by anishka at 11/21/2006 10:37:03 PM
Hello I am working on USB Project, I am searching for any of the API's method in windows , so that my application can sense that a file in the PC is being copied or moved onto the USB mass storage device which is plugged-into my system. I am developing my application in VC++.Net 2005, that is ...more >>

Automatically Wrap Text in Label
Posted by Yaakov at 11/21/2006 3:02:25 PM
I have the following scenario: I have a TableLayoutPanel in my form. In one of the cells I want to place a Label control to display some text. The label might have just a few words. It might have a paragraph. I would like the label text to automatically wrap inside the cell in the TableLayoutP...more >>

Detecting Keyboard keys
Posted by Elmo Watson at 11/21/2006 1:38:04 PM
I can use Asc(e.KeyChar) to find out the keystrokes in the regular part of the keyboard. Is there any way to detect ASC value of either the F keys or the arrow keys? ...more >>

Switching localizable forms language messes up design
Posted by mr.newsgroupguy NO[at]SPAM gmail.com at 11/21/2006 11:19:08 AM
I have a C# windows forms project that was designed in Visual Studio 2003. It works great. I have recently decided to upgrade to VS 2005 and .Net 2.0. I opened the project in VS 2005 and it converted it fine. I fixed the odd obsolete line of code and it compiles and runs. The problem is th...more >>

How to know if the "Active" application changes?
Posted by Flyte at 11/21/2006 10:54:49 AM
Hi All. Is there any way to be notified when the "Active" application changes? By active I mean which application currently has mouse and keyboard focus. I need to be able to know when my application becomes active and when it becomes non-active. (i.e.: via minimization, or alt-tab, etc) ...more >>

Zorder and splash screen
Posted by Andy at 11/21/2006 7:59:32 AM
Hi, I have a form which is a splash screen. A static method is used by my main program startup to show the form, which creates the form on a seperate thread and shows it using Application.Run( splash ). The problem is when my main form shows and the splash hides, the main form ends up behi...more >>

Vista + HKLM Write
Posted by Jared at 11/21/2006 12:00:00 AM
Hi, One of my HKLM registry writes is throwing fit on Vista. Is there anything I can do on programming level to prevent the error. Or is this a user setting that has to be configured. ...more >>

Can Borderless forms have a context menu in the start bar?
Posted by ThunderMusic at 11/20/2006 6:55:28 PM
Hi I'm currently developping a skinnable form by using a borderless form (Form.FormBorderStyle=None). Is it the right way to go in the first place? if it is. Assuming that when there is no border to the form there is no context menu when you right-click on your form in the start bar too (the ...more >>

Set Print Page height programmatically?
Posted by Duong Nguyen at 11/20/2006 5:46:12 PM
Hello, I am trying to program to work with POS-Printer in page mode. So I want to set the page height at run time. Depend on the number of lines to draw to Canvas, I must set the Page height. So I can get the height in pixel Height = LineCount * font.GetHeight(GraphicsObject); and set the ...more >>

Help with double-click and drag-drop
Posted by Bill Angus at 11/20/2006 4:11:03 PM
Hi: I posted this 3 days ago in another V-Studio2005 group and got no replies. There seems to be better response to requests in this group. Hope nobody minds me trying for an answer here. I have windows forms .Net 2 app. in which I was using double click to activate a form. I also wanted to be...more >>

Radio Button in datagridview
Posted by Radio Button in datagridview at 11/20/2006 2:56:02 PM
hi, i have a datagridview winth multiple rows, i need in some columns, put a radio button, and i don´t know do it. thank you...more >>

Treeview Collection
Posted by Sean at 11/20/2006 9:26:02 AM
I have a Treeview control like the following: paren1 ''(Name = P1) Parent2 ''(Name = P2) Child1 ''(Name = P2C1) Child2 ''(Name = P2C2) Parent3 ''(Name = P3) Parent4 ''(Name = P4) Child1 ''(Name = P4C1) Parent5 ''(Name = P5) ...more >>


DevelopmentNow Blog