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 > april 2005

Filter by week: 1 2 3 4 5

Better way than Label to use function to replace text in web page?
Posted by Kent P. Iler at 4/30/2005 7:12:37 PM
Hi, I'm creating a website where I need to pull data from a database, and display it on a page. This isn't a place where a repeater or datagrid makes sense. I was using labels and setting the text equal to the values that I needed to display. That works OK in most places, but in areas wh...more >>

Load image from DB into PictureBox control
Posted by K. Wilder at 4/30/2005 3:00:53 PM
In VB.Net, does anyone know how to load an image from, example Northwind DB employees table, to a picture box control? The Image is in Byte format and I can't figure out how to convert it to an image. Thanks, King Wilder...more >>

Validation without Focus
Posted by pearsons_11114 at 4/29/2005 5:16:05 PM
The only way to fire the validation event for a control seems to required that control receive the focus first. This only works if the user is good enough to visit each control. What happens if they try to close the form before they have visited other controls, but they are not yet valid? Ther...more >>

How to open browser and point to URL from winforms app
Posted by moondaddy at 4/29/2005 5:02:54 PM
I have a vb.net winforms app and need to open a browser and point it to a URL. How can this be done? Thanks. -- moondaddy@nospam.nospam ...more >>

Changing column header color on a DataGrid
Posted by nkwong at 4/29/2005 4:54:02 PM
Hi, Has anyone figured out how to modify the color of a specific column header on a windows forms datagrid? I know you can set the HeaderForeColor property on the datagrid which affects all the column headers, but that is not what I want. I want to be able to choose a column header and chan...more >>

Need help loading browser and dynamicaly generating webpage to load
Posted by moondaddy at 4/29/2005 1:15:15 PM
I have a vb.net 1.1 winforms app that needs to open webpage reports that contain confidential data. I wanted to use web services where I can encrypt parameters being passed in and also encrypt the web page content coming back. Then in the client app I wanted to decrypt the content and render...more >>

Form's KeyPreview doesn't work if there is a DataGrid on the form
Posted by Andrea at 4/29/2005 12:00:00 AM
Hello, I've to know when a user press these keys: F1, F2, F3 ecc... I set the KeyPreview=true on the Windows Form but the KeyPress event of the form is not raised if a DataGrid is on the form. Is there any workaround? Thanks!...more >>

Rich Textbox producing well-formed HTML
Posted by Phil Jones at 4/29/2005 12:00:00 AM
Does anyone know a rich textbox control that can produce well-formed HTML? Many thanks. === Phil ...more >>



Radio button in datagrid
Posted by Rob Oldfield at 4/29/2005 12:00:00 AM
I want to include radio buttons in a windows forms datagrid. I realise that I could just use check boxes, but given the nature of my app, radio buttons would be nicer. I also don't want to use a combo. This is clearly going to need a class based on the standard datagridboolcolumn, but I can'...more >>

Drag & Drop of Bitmap between applications
Posted by chuck rudolph at 4/28/2005 8:07:01 PM
I am pretty sure that I am just missing some little piece of knowledge... I have a test application. It has a text box and a picture box in a panel (so I can get drag/drop for the picture box.) The issue I have is that I can NOT drag a picture box object into another application (either a...more >>

Testing for empty drives
Posted by G Dean Blake at 4/28/2005 5:20:27 PM
dim DriveList as string() = Environment.GetLogicalDrives gives me a string array of every drive on the system If I cast any of those strings as a directoryinfo, and it is, for instance, 'A:\' and drive A is empty, I get an exception when it is referenced. Is there any way to test to see if ...more >>

MDI Container
Posted by ZS at 4/28/2005 4:06:03 PM
Hi All, In C# when I change the isMDIContainer property of a Form to true, the background color of the Form changes to a default color set by Visual Stuidio (a dark grey) . Is there a way I can change this color to something of my choice. If so how? Changing the background of the Form does...more >>

Longstanding WinForms bug: System.ComponentModel.Win32Exception: Class already exists
Posted by Bern McCarty at 4/28/2005 1:08:12 PM
http://groups-beta.google.com/group/microsoft.public.vsnet.vstools.office/browse_frm/thread/35b4a645edcfbc3b/07f785365ada27b7?q=System.ComponentModel.Win32Exception+%22Class+already+exists%22&rnum=3&hl=en#07f785365ada27b7 We are encountering this bug in our .NET 1.1 (SP1) application when loading...more >>

Problems Reactivating Windows Form
Posted by simchajoy2000 NO[at]SPAM yahoo.com at 4/28/2005 9:01:07 AM
Hi, I'm having a strange problem. I have a windows form with a button on it and when you click on the button it opens up another windows form. On this second windows form I perform some error handling to ensure the user enters data correctly - and if they enter incorrect information and pres...more >>

Smart client, Security Exception
Posted by Butchi Satuluri at 4/28/2005 7:52:06 AM
Hi, We have full trust security for all intranet servers. One of the smart client application is working fine from Dev, QA servers, but failing in the prod server with Security Exception. Can anyone sugget me what can be the reasons. Regards, Butchi Satuluri...more >>

Inherited code and derived code.
Posted by dbuchanan at 4/28/2005 6:51:38 AM
Can inherited code call derived code? If so how. I have identical 'generic' code that I am repeating again and again in several derived form because I don't know how to get inherited code to call derived code. Am I stuck with this situation or is there a way around it? Below is some sample code....more >>

How to invoke a custom command in the context menu
Posted by cindy liu at 4/27/2005 11:02:01 PM
Hi, I created a context menu. But I don't know how to link each command to my event handler. Any idea? Thanks in advance!!! Cindy...more >>

GetDirectories for Empty Drive
Posted by G Dean Blake at 4/27/2005 5:24:53 PM
I have a directoryInfo named Folder with a name property of "A:\". I'm then trying to loop through and expand it a level. But when I say: For Each myFolder in Folder.GetDirectories... A series of dialog boxes are displayed saying the drive is empty (it is) and an exception is thrown "dri...more >>

Displaying a horizontally scrollable row of thumbnail images
Posted by Lew Barnesson at 4/27/2005 4:53:09 PM
Hi All, I am new to working with images. Can anyone advise me as to what would be to the most efficient kind of (maybe PictureBox?) control I could use to populate and manipulate a scrollable horizontal Panel containing 10 visible thumbnail images out of some larger number? PictureBox is...more >>

newbie - ComboBox not always displaying the correct text after BindingContext position change.
Posted by Eric at 4/27/2005 4:21:32 PM
Hello, I've created a form and bound it to a dataset, and I can save the information to the database. I have a second table, a reference table, that I am now using on the form via a ComboBox. I see the code descriptions in the ComboBox that pertain to the related code stored in the table....more >>

Windows Titlebar
Posted by Arne at 4/27/2005 3:38:02 PM
Is there a way to remove the close icon on the title bar and replace it with some other closing mechanism? ...more >>

Title bar of mdi child form displays momentarily
Posted by Byron at 4/27/2005 3:35:53 PM
I am using mdi children windows with ControlBox set false, and FormBorderStyle = None to display the form without a border or title bar. This works as expected except for the fact that the form is momentarily displayed with a title bar which disappears in less than a second. The problem is...more >>

Reference Control via class
Posted by Richard M at 4/27/2005 2:15:14 PM
Hello all, I have, what i think, is a simple question. On my main form, i have a tabcontrol that contains 10 tabs. In my class, I'd like to be able to reference the form so i can set properties on the tab control. How do i do this? Thanks in advance. Richard M....more >>

Problems dynamically changing helpstring for combobox.
Posted by Byron at 4/27/2005 2:07:46 PM
I am setting the helpstring for all interesting controls to a default in the form load method. I am then using the SelectedIndexChanged of a combobox to dynamically change the help displayed using the popup menu, F1, and the toolltip depending on the currently selected item in the control. I...more >>

Starting an Application
Posted by Fred Herring at 4/27/2005 1:37:41 PM
I am storing application data as a byte array in my database. In this case the application is a Media Player file of the form c:\medialfiles\file1.wmv. I guess the question could also apply to application files of form .doc or ..xls, etc. What I would like to know is that when I recover th...more >>

Windows Close
Posted by Arne at 4/27/2005 8:38:06 AM
I am trying to capture the windows close event when the operator clicks the red close icon on the title bar. I need to send a proper exit codeto scheduler which starts my program. I have tried private void WebOrderForm_Closed(object sender, System.EventArgs e){ Application.Exit(); } priv...more >>

Hiding/Removing the "Triangle" from Parent MenuItem
Posted by javadkhan NO[at]SPAM gmail.com at 4/27/2005 7:38:53 AM
Hi All, I am trying to supress the small black triangle that shows up in the menus meaning the menuitem is parent. The reason for that is I owner-drew my own 3D looking triangle in DrawItem using GraphicPath glyph (drew lines making triangle). What I have right now is my 3D triangle and default...more >>

Some questions about PropertyGrid control
Posted by micro_bug at 4/27/2005 1:04:08 AM
Now I am developing a tool, just like VS.net Form Edition environment. User can edit a component's properties by a PropertyGrid control. Now I have some questions about this PropertyGrid control: 1. How to verify a property's validifity? as you know, In VS.net, when we input a component name tha...more >>

Combo Box on Toolbar
Posted by Massimo at 4/27/2005 12:00:00 AM
How can I add a ComboBox control on a Toolbar in VC++ .NET (WinForms) without MFC? ...more >>

Custom Date Format for VB.NET Datagrid Column
Posted by simchajoy2000 NO[at]SPAM yahoo.com at 4/26/2005 2:44:53 PM
Hi, I have a situation where I need to only display the month and day of a specific date in my Datagrid Column while keeping the underlying value (which includes the year) intact. I am currently using a DataGridTimePickerColumn class I got from the Microsoft website to create DateTimePicker...more >>

How do I manage events in dynamically loaded controls?
Posted by Roger Bonine at 4/26/2005 1:28:02 PM
I have an application that I'm working on in VS 2005 Beta 2. The app has several user controls (mostly, but not all, tab controls) that I intend to dynamically load into a panel depending on the buttons pushed on the toolbar. For example, if the button for my Employees module is pushed, I'...more >>

Running a winform from Scheduler
Posted by Arne at 4/26/2005 6:34:04 AM
I have a winform that starts from the scheduler. It performs a task, prints a status message on the screen on waits for the operator to terminate the program by clicking on the exit icon in the upper right corner. There is only one problem. When the program has terminated, scheduler thinks it...more >>

PATH in Debug mode
Posted by Siu at 4/26/2005 2:49:02 AM
Hi, in my win application I've a file named myFile.xml at the root of my application: in debug mode, when I try to read this file, the runtime application searches it in the path bin/debug... and it doesn't find it because there isn't there, so I've used the function: Path.GetFullPath("../...more >>

ANN: O.W.C. Black Book with .NET
Posted by Alvin Bruney [MVP - ASP.NET] at 4/26/2005 12:00:00 AM
Now available at amazon.com and www.lulu.com/owc Chapter preview at http://www.lulu.com/content/82300 ...more >>

TopLevel
Posted by Egil Winther at 4/26/2005 12:00:00 AM
Hi, Does anybody know if there are problems with forms with the TopLevel-property set to false when running Windows 2000? Rgds Egil Winther ShipNet AS ...more >>

TV tuner SDK
Posted by Some Guy at 4/26/2005 12:00:00 AM
Hi there, I would like to be able to write an app which, amongst other thigs, can interface with a TV tuner card. I need to be able to start/stop display of the TV channel, select which channel is displayed, and control the volume - all through code. Can anybody suggest a generic, device...more >>

unhide window
Posted by Mészáros_Tamás at 4/26/2005 12:00:00 AM
Hi all, how can I set an app's main window visible from an other application? My problem is, that I know only the handle of the other app's main process, because the application's main window is set to hidden, so it doesn't have a mainwindowHandle, so I can't send a message to it. Any id...more >>

Viewing DataAdapter in Dataset at design time
Posted by Eric at 4/26/2005 12:00:00 AM
Hello, I have a simple DataGrid displaying data in my DataSet, which is loaded in two DataAdapters. It works fine where I fill the DataSet using the DataAdapters. It displays the data, can be updated, etc. Now here's the question. I have a simple PK/FK relation between the tables, a...more >>

Good equivalent of Spy++ for winforms?
Posted by ChrisWis at 4/25/2005 6:30:08 PM
I've had a hard time getting handles to things that are in winforms, and Spy++ doesn't play nice with winforms. -- I love cheese...more >>

Test Driven Development is cool
Posted by manish at 4/25/2005 6:22:05 PM
Test Driven Development is cool...more >>

Where are my posts?
Posted by Edgar A. Poe Again at 4/25/2005 6:16:04 PM
TEST - Where are my posts? -- Testing...more >>

check if mdi child is open
Posted by oscar at 4/25/2005 5:49:16 PM
i have a Form1 that is opening Form2 by calling Form2.Show() is there an easy way to check for a child? for Form1 to see if there is already a Form2 on this thread. there can be 2 Form1s, so it needs to look for the Form2 that it oppened. Thanx in advance...more >>

Infragistics UltraWinGrid Expand
Posted by moondog at 4/25/2005 4:39:37 PM
I would like to know how to code an expand button on an UltraWinGrid. It should be something like this: Dim gridRow As Infragistics.Win.UltraWinGrid.UltraGridRow Dim intRow As Integer For intRow = 0 To UltraGrid1.Rows.Count - 1 gridRow = UltraGrid1.Rows(intRow) gridRow.Expanded = Tru...more >>

Close a Instance of a Class
Posted by gv at 4/25/2005 12:31:06 PM
Hi all, How do I close a instance of a class created like this: I call this class in my project like this StatMess.Show("Testing") this shows a status form ...I do some things here now here is where I want to close the status form? Class code: Imp...more >>

Add / Remove Program
Posted by Hemang Shah at 4/25/2005 12:29:38 PM
Hello When we build a setup project. As long as we use the same setup.msi, it will give you the option of repair & remove. However, if I send them an update, it tells you have an instance of the program installed, remove it by going to add / remove. Is there a way I can give them a r...more >>

Word Document
Posted by Charles A. Lackman at 4/25/2005 10:59:14 AM
Hello, I am using the following code to open a word docuement: With WrdApp ..Documents.Open("C:\My Documents\MyDoc.doc", missing, missing, missing, missing, missing, missing, missing, missing, missing, missing, missing) ..Selection.Paste() ..Visible = True ..Activate() ..NormalTemplate.S...more >>

Putting custom objects on the clipboard
Posted by Keith at 4/25/2005 9:24:36 AM
All, It seems that there has been some discussion of this issue, but I can't find any real answers. How does one copy a custom object onto the clipboard and then retrieve it? I can do this with standard types and collections of standard types, but if I use a custom object the retrieved ob...more >>

MessageBox problem
Posted by David I A Grant at 4/25/2005 8:11:03 AM
Hello, When I use MessageBox.Show(owner, ...) to display a modal dialog box the 'bong' sound is made immediately but the message box is not painted. For some reason, pressing the ALT key will cause the message box to appear. The application contains around 15 windows forms, spread over al...more >>

Displaying a regular windows app inside a control window
Posted by Rick.Jameson NO[at]SPAM gmail.com at 4/25/2005 1:39:50 AM
What I am trying to do is launch a windows application from within my WinForms application. Once this is done I want to have this external application behave like a control on my WinForms app (no longer appears in status bar, no frame etc.). I remember seeing a Code Project article describing ...more >>

Dialogs Missing text
Posted by Adrian Parker at 4/25/2005 12:00:00 AM
VB.NET winform appliation. I created a simple application and it works fine on my machine, but on a customer's it works, but message boxes have no prompt text or button text. Any ideas ? ...more >>


DevelopmentNow Blog