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


all groups > dotnet windows forms > march 2005

Filter by Day: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31

Urgent Help : Re-select Combobox Value
Posted by Mae Lim at 3/31/2005 10:49:01 PM
Dear all, I'm doing a winform project which uses "ComboBox" in one of the form. The winform contains "ComboBox" with the values as below: - this.ComboBox1.Items.AddRange(new object[] {"Apple", "Orange", "StrawBerry"}); Users will select on of the item from the combobox and stored into dat...more >>

Windows Form and Windows Form User Control - Where Is The Method That Would corresspond To A Web Form Pre_Render Method
Posted by Richard at 3/31/2005 8:33:56 PM
Hello MyMainWebPage.aspx contains MyUserControl.ascx MyUserControl.ascx has a DataTable Property MyDataTable MyUserControl.ascx has a DataGrid which whose datasource is MyDataTable (or technically it's private accessor but that I don't think is an issue here) MyMainWebPa...more >>

Windows Forms .NET 2.0 Advice
Posted by Scott Ocamb at 3/31/2005 8:11:30 PM
Hello, I could use some advice. I have an application to build for a client the must be developed as a windows form application. This is an application that was written years ago using VB6 and an access database. I am an experienced .Net developer, version 1.1 but have built web applicatio...more >>

Problems with custom events
Posted by ahughes NO[at]SPAM NOSPAMrm.com at 3/31/2005 2:32:32 PM
Browsing through some online tutorials, I've been tryingto add a custom event to an app I'm developing but I'm having a little problem. Simplifying the code down to the following (a form with a button that fires the event): namespace CustomEvent { public delegate void MyEventHand...more >>

datagrid colum's nulltext property displayed in column when field not null
Posted by TS at 3/31/2005 2:15:29 PM
I have a record displayed in datagrid and 2 columns says the text i've designated as the nulltext for those columns, but when i look at the data in the db, those values are listed there. is there some issue/bug that can be causing this? thanks ...more >>

How can I turn off the ControlBox but still have Close in the upper right of a form?
Posted by Michael Howes at 3/31/2005 11:20:19 AM
I know I've done this in the past but can't remember how I did it. How can I turn off the ControlBox but still have the Close X in the upper right of a Form? It's some combo of FixedDialog and ControlBox = false thanks mike ...more >>

Capturing change to TextBox
Posted by JezB at 3/31/2005 11:04:30 AM
I want to simply capture changes to a TextBox and perform some processing when the user has edited the text. The TextChanged event fires even while the user is editing the text, but I only want to perform my validation when the user finished editing the text and moves off the field (tab, en...more >>

Change mouse cursor when points to specific cell
Posted by Suz at 3/31/2005 10:31:05 AM
I am creating a linklabel look-a-link in a datagrid with the following code by overriding the paint sub: If column = 0 Or column = 3 Or column = 4 Then Dim UnderlineFont As New Font(Me.DataGridTableStyle.DataGrid.Font, FontStyle.Underline) Dim rect As Rect...more >>



Delegate by Book
Posted by Arne at 3/31/2005 9:31:02 AM
Does anyone know about a good book that teaches Delegates or other types type threading?...more >>

Compiler error for MessageBox::Show
Posted by Roger Crawfis at 3/31/2005 1:08:23 AM
I am getting a very strange compiler error for the following code: catch (OpenGLPanelException *openGLError) { //std::string * errorMessage = new std::string(openGLError->errorString); System::Windows::Forms::MessageBox::Show( "junk" ); //, "OpenGL Error", MessageBoxButtons::OK, ...more >>

Sources for threads
Posted by Gav at 3/31/2005 12:10:42 AM
Hi all, Does anybody know where I can find some good examples of using threads in c#.net windows applications? Thanks Gav ...more >>

Refreshing Form on Process
Posted by 11Oppidan at 3/30/2005 6:58:08 PM
Hello, I have a windows application written in VB .NET which pulls a lot of data from different databases into one source. This often takes a long time and therefore I track the progress using a progress bar and a status bar. When the program is running and I use another application the f...more >>

Label and Button text not drawing
Posted by Don Dusich via .NET 247 at 3/30/2005 4:23:32 PM
(Type your message here) I have a small assembly that displays dialogs for logging in and message boxes if an error occurs. The button text and label text in the dialogs isn't drawing when the form is opened by either Dialog.ShowDialog() or MessageBox.Show(). In the case of a dialog, some of ...more >>

Can I run any app inside a "special" control
Posted by David Laub at 3/30/2005 3:34:20 PM
I'm looking for a control which will allow me to run any app inside a Window/Panel/Tab Specifically I want to be able to save xml files created from XMLSpy to a database in a very specific format - I'd like to run XMLSpy in a window inside this app, then save/retrieve files to/from a sql serve...more >>

Menu Shortcut Key Not working
Posted by Greg at 3/30/2005 1:55:31 PM
I have an MDI winform application. One of the menu items is using CTRL+U as the shortcut and it will not invoke the menu item. Here is a list of things I have tried to resolve the problem. 1) Tested CTRL+U in Word to make sure that the keys are working properly. Success 2) Re-Assigned the men...more >>

Reusing GUI elements
Posted by Alex at 3/30/2005 12:02:49 PM
Hello people, I'm new at .NET development so forgive me if I ask about the obvious. There are several forms in my application that have similar groups of = controls. I would like to extract the UI and functionality into a single entity so = I can reuse it in the application. What is the ...more >>

ISDATE and Regional Settings
Posted by JT at 3/30/2005 11:53:03 AM
-- John...more >>

Using The NativeWindow Class To Draw A GDI Type Circle On Top Of A DataGrid Possibly In The Override OnPaint
Posted by Richard at 3/30/2005 10:34:03 AM
I have a requirement to put a GDI style circle or rectangle border around the selected row of a datagrid/ It will overlap into the row above and below the selected row. Doing this in a the OnPaint of a subclassed DataGridTextBoxColum dos not seem like a practical way to do it. I have subcl...more >>

Dangling process, when calling ShowDialog twice from Main
Posted by Tim_Mac at 3/30/2005 7:47:11 AM
hi, i've used jason clarks recommendations for handling unhandled exceptions in my winforms app (http://msdn.microsoft.com/msdnmag/issues/04/06/NET/default.aspx). if an unhandled exception happens, i open up an 'Error-Logger' form, which sends the exception to a web service. here is the rele...more >>

detecting instances of my App
Posted by Kenny M. at 3/30/2005 6:15:03 AM
I want to allow running only one instance of my Application. How can I detect that a previous instance of my WinForm App is running in order to stop the second instance? -- thks...more >>

Creating DesignerVerbs for a Reflection.Emit-ed class for use in a PropertyGrid
Posted by lee.m.henson NO[at]SPAM gmail.com at 3/29/2005 10:49:47 PM
Hi, I've hit a bit of a brick wall in my use of the PropertyGrid control. I am writing a Windows Forms application that does the following: - dynamically create a class using Reflection.Emit - the class simply holds a number of properties ("Name", "Description", etc). - pass the class to a ...more >>

Does MS will provide a RCP like Eclipse RCP or Macromedia Flex?
Posted by Niciyou at 3/29/2005 10:39:03 PM
The smart client offered by MS is more like a concept and the features is more separately. I think the client application vender need a clien side framework like Eclipse RCP. Does MS or any others provide one for .NET? -- Niciyou Beijing, China...more >>

How to get the selected node of TreeView when context menu popup?
Posted by Niciyou at 3/29/2005 7:29:03 PM
When user right click the tree node, a context menu popup. But I can not get the node clicked calling TreeView.SelectedNode property correctly because the default selection behavor of TreeView is left click. How can I get the correct tree node when context menu popup? Thanks....more >>

FIFO in a richTextBox
Posted by RonT at 3/29/2005 6:14:00 PM
I have a richTextBox that is receiving lots of data over a serial port. The problem is that the display of the text gets slower and slower as more and more text is added (using .AppendText). Is there a way to limit the text box to some fixed number of lines (or characters) of text such that ...more >>

Architectural Guide to Winforms Development?
Posted by kmsuzuki NO[at]SPAM gmail.com at 3/29/2005 5:24:32 PM
I'm primarily a class library developer, but I've written a few small tools in my day using forms (VB6/Java/Winforms) and my libraries have been used in larger forms apps. The thing is, I've never seen a well architected forms app in my 12-year career and I'm wondering if there is a book or some...more >>

form hide (or visible = false)
Posted by Ohad Young at 3/29/2005 5:20:06 PM
Hi, In the form's Load event handler I'm trying to hide the form, but still the form is visible although the Visible property is set to false. Only if the ShowInTaskBar property is set to false too, it is not visible. Why? Isn't there a way to hide a form from its Load event handler but to d...more >>

dyn buttons
Posted by S c o t t K r a m e r at 3/29/2005 5:17:11 PM
I'd like to add buttons dyn to a form, i can create new buttons, new .name & ..text properties, but i can't figure out the eventhandler example I want to create a grid of buttons based on the itemno from a database, then clik on the button & have it add that itemno to a list box, or database.....more >>

asp.net
Posted by sutha raj via DotNetMonster.com at 3/29/2005 3:31:44 PM
i want to help for how to code this if i entering the datas in first form then that display in second form for what ever i entered in first form(confirmation ) i know about first form insert datas but i dont know how to display in second form can i help you please consider this thank u ...more >>

Timers and threading
Posted by Yaron at 3/29/2005 2:43:03 PM
Hi, I am writing a program that handles authentication, and based on the user's permission level, can do certain things in the program. However, I want to have a global 10 minute time out in case a user is idle for that amount of time. To do this, I am using a timer from System.Timers. A...more >>

Starting different forms in a project
Posted by Phil Jones at 3/29/2005 2:02:32 PM
If I have a WinForms project - what's the best strategy for opening different forms from different shortcut icons? Basically I want to lump a few different (but related) apps into the one assembly, and have a number of icons in the start menu. Is there a way to go about this (like passing ...more >>

UserControl Text property
Posted by Lance Johnson at 3/29/2005 1:57:00 PM
I have a control that derives from UserControl. In addition, I have overriden the Text property and put the attributes on it so it shows up int the designer. However, it will not save the value no matter what I do. I've applied every attribute I can think of. Any help in this matter is ap...more >>

User controls: Propagating new changes to placed controls
Posted by Chris at 3/29/2005 1:16:35 PM
Hello, I've taken a button component and extended it's functionality by adding a couple small methods and properties. This control is contained within my project tree and has been used on various locations of my form. Now, I want to add another property to the control. In doing so I had hop...more >>

optimize .net app with a lot of graphic background images
Posted by thomasamillergoogle NO[at]SPAM yahoo.com at 3/29/2005 12:33:05 PM
Hello, I have a winform that looks beautiful. All the panels have bacground images. I even have rollover buttons for the main navigation. My problem is that it loads slower than a "plain" winform app. Also when minimizing the form and switching back to my application it has "blank sections" th...more >>

PrinterSettings.PaperSources
Posted by Todd Acheson at 3/29/2005 8:38:17 AM
Does anyone know how to switch trays(paper source) when printing a multi-page document? Here is some code I have tried, but I can never get the printer to grab from another tray during the print of a document. If I seperate the two calls into Page 1 and Pages 2-4, then the printer will grab fro...more >>

FolderBrowserDialog.FolderBrowserDialog does not work on Windows 2
Posted by Neo The One at 3/29/2005 3:41:03 AM
I found out this problem very long time ago. I set FolderBrowserDialog to false but the New Folder button still shows on Windows 2000. At that time, I thought it may be related to Windows 2000 itself and SP3/SP4 would eventually fix it. But at the beta 2 release of .NET FX 2.0, the problem ...more >>

Splash screen?
Posted by Paschalis Pagonidis at 3/29/2005 3:02:05 AM
Hi all, I've created a splash screen for an MDI application and moved the main application's entry function in the splash screen's class. Inside the Main(), I run the following: [STAThread] static void Main () { Application.Run (new FormSplash ()); } In the Load event of FormSplas...more >>

Custom OpenFileDialog
Posted by Z at 3/28/2005 8:07:01 PM
Hi, It seems this one comes up all the time but I could not find anything. I need a customized FileOpenDialog. As I could not find any I decided to write my own. I have the following questions: 1. How do I find information about logical devices? There are functions returning logical drives...more >>

Form.Update in Windows Xp
Posted by Daniel Bello Urizarri at 3/28/2005 6:34:30 PM
Hello everyone: I'm developing an application that executes a long algorithm and I want to show a progress bar, and every time the progress bar is updated, I also update the main window, so the window refreshes the invalidated areas. I was developing in win2k and everything works fine, but...more >>

Regional Settings
Posted by David de Passos at 3/28/2005 6:20:10 PM
Hi! How can set Regional settings in rum-time mode? For example How can set decimal separator to "." in VB.NET? -- -- Cumprimentos, David de Passos -------------------------------------------------------------- RCSOFT, Lda. E-Mail: passos@rcsoft.pt Móvel: +351 966931639 Telefone: ...more >>

Passing Information/address form properties - VB.NET
Posted by Leo at 3/28/2005 3:29:01 PM
I have a basic question about how do you change the information on a Form from another Form, not a dialog. Example: I have a MDIform which is the startup form for the project. I call a child form to put in setup information which is written to the Registry. As a result I need to update t...more >>

Shutdown multithreaded app or Thread.Abort
Posted by Tony at 3/28/2005 2:43:02 PM
Hello, I have a multithreaded app that did not have problem closing down on XP computer. But on Windows server 2003, one thread is not stopping and I can not delete the process from task manager either. This is Windows Form app. I am using Thread.Abort to cancel threads. It is hard to catch w...more >>

ComboBox find item based on value
Posted by nickyw at 3/28/2005 11:34:02 AM
Hi, Can anyone help, I want to get a reference to a combobox item based on the item's value rather than the text (basically what I am asking is, is there a function like 'FindStringExact' for values) , does anyone know how to do this? Thanks, Nicky ...more >>

Form in a Control drawing
Posted by Falk Winkler at 3/28/2005 8:47:22 AM
how i can drawing a Windows Form in a Panel, not on the Dektop. I will using a Form as Desktop. ...more >>

Can't display dataset in windows form datagrid
Posted by vita at 3/28/2005 12:37:01 AM
Hi all, i have a window application which make use of a timer class, whereby every 5 seconds i have to refresh a datagrid,below is the codes Public Sub TimerFired(ByVal sender As Object, _ ByVal e As System.Timers.ElapsedEventArgs) 'Label1.Text = "Server Time = " &...more >>

Backgroundimage- I can't set it back to 'no image'
Posted by Hazz at 3/27/2005 6:41:27 AM
In my windows form backgroundimage property setting, once I selected an image, I can't revert back to it's default setting of no background image. Everytime I click on that property it brings up the dialog box to select an image. I don't want to select another background image, I just want an ...more >>

Closing form.....
Posted by Mihailo at 3/26/2005 3:57:46 PM
I have two forms and that forms are connect with one button. When I click on Button in the first form, the second form will be open. But both form are open. I want when I click on the button to close first form and to open the second but I don't know how, I know how to open second but to close th...more >>

Scrolling in ListView
Posted by tommazzo at 3/26/2005 3:07:03 PM
Hi! I'm looking for a way to maintain the scrolling ability of a listView during a drag&drop operation (necessary if the screen is too small to display all the items of the lv), pretty much like the Windows Explorer does it - when you hit the upper edge of the window it scrolls upwards. B...more >>

Releasing the memory used when drawing a Bitmap
Posted by Mikko_Nylén at 3/26/2005 12:27:50 PM
Is there a way to release the memory used while drawing a Bitmap using Graphics.DrawImage? The code I use: -- .... using (Image im = Image.FromHbitmap(map.GetHbitmap()) { g.DrawImage(im, 0, 0); } -- where "map" is an instance of Bitmap and "g" is instance of Graphics. Now every...more >>

async webservice call
Posted by Tim B. at 3/26/2005 11:55:01 AM
How do you show a progress bar while you are waiting for a web serice ? is this a VB winform stathread issue ? I'm familiar with calling web services async, but nothing I've tried allows me to do any work while I'm wating for the webservice. I'd like to just use the polling approach on t...more >>

Turn Off Windows Form DataGrid Selected Row Little Pointer On the Left Of The First Row And the Area It Is In
Posted by Richard at 3/26/2005 12:10:16 AM
DataGrid Row Second Row Selected. How do I not show that blank row with the > abc abc abc abc > abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc xx yyyyyyyyyyyyyy how do I eliminate that left row above the xx, thusly the > also ...more >>


DevelopmentNow Blog