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

Filter by week: 1 2 3 4 5

Changing the BackColor of the Toolbar??
Posted by Pierre at 6/30/2003 5:42:55 PM
Hi guy, just wanted to know if there is any way to change the BackColor of the toolbar control? Thanks...more >>

Copying a form
Posted by Woody Splawn at 6/30/2003 3:23:55 PM
I am obviously missing something fundamental with regard to making a copy of a form. When I try it, sometimes it works and sometimes it doesn't. If I am trying to copy a form that is not complicated, like a dialog it seems to go ok but I have an form in a VB application that is the main form to...more >>

'textBox' Behavior
Posted by Chad Christensen at 6/30/2003 12:03:00 PM
I am having a strange problem associated with appending to a textBox using C# .NET. I am running another program (using the 'Process' class) and the standard output from the other program is being redirected somewhere else using threads so I can display it in the Multiline textBox control. I ...more >>

Urgent...Help me..
Posted by Xalmen Horski at 6/30/2003 8:11:28 AM
Thank you for your help in Advance. I have have string " hellow world " In this this i need to have different font for "hellow" and different font for "world" . Leater i would assing this string to a textbox. Any tricks and tips would appriciated. -Thanks Xalmen....more >>

MSDE & Auto Increment
Posted by MikeY at 6/30/2003 8:03:00 AM
Hiya all, I'm not exactly sure where to be posting this question, but here goes & hopefully someone can answer it or re-direct me. I'm building a windows form application in C#. I am using MSDE I've imported my Access.mdb & set up the Identity, Identity Seed, & Identity Increment. I want to...more >>

floating menu
Posted by shay at 6/30/2003 3:27:17 AM
how to make floating menu?...more >>

Strange NativeWindow class behavior!
Posted by Arthur Freund at 6/29/2003 11:23:04 PM
Hi, for our application, we want to keep track on whether the user is currently in a text box or not. So I simply retrieved the handle of the focus window and tried System.Window.Forms.Control.FromHandle to get the control that is responsible for this handle. Now, this works fine. The next...more >>

RightArrow loses focus rather than raising KeyDown event
Posted by Tony Lin at 6/29/2003 5:02:33 PM
I have written a custom Windows control from scratch, deriving from the = Windows.Forms.Control class.=20 =20 My control has a text input area, capable of receiving focus. It has a = KeyDown event handler, which handles Keys.Left, Keys.Right, Keys.Home, = Keys.End. =20 When focus is ...more >>



Generic Routine for Adding and Removing EventHandler
Posted by Derek Hart at 6/29/2003 12:44:16 PM
I wish to create a routine that can handle removing event handlers. What type of variable can I pass into the routine (into EventName) to handle this? Function HandlerAddRemove(ByVal ctl As Control, ByVal EventName As ??????) RemoveHandler cboCriteria001.RowSelected, AddressOf EventName E...more >>

Equals and "==" operator
Posted by #Hai at 6/28/2003 12:49:53 PM
Hi, What is the difference between Object.Equals and "==" operator ? When we use CollectionBase.List.Remove(object), which methods is used to compare objects ? Thanks ...more >>

Creating a splash screen and Application forms controller
Posted by Joe Ocampo at 6/28/2003 11:48:17 AM
I have been developing web sites for the past year now in vb.net and I now have to tackle windows form. The problem I am having seems to be a simple one but the solution has eluded me. I have several forms that collect information and populate a global employee class. The problem that I am ha...more >>

Special Comment
Posted by #Hai at 6/28/2003 11:10:41 AM
Hi, I noticed that there are some special piece of comments in the source-code generated by Visual Studio.NET when we create a new C# projects. These comments comes with tags like /// <summary> /// Clean up any resources being used. /// </summary> What is the purpose of tags <summary> ? ...more >>

Listbox SelectedIndexChanged Timing
Posted by Derek Hart at 6/28/2003 9:29:46 AM
I have a listbox and a textbox. When I choose the value from the listbox, I would like to see the value placed in the textbox. When I click a row in the listbox, the SelectedIndexChanged event fires fine and places the value in the textbox. The problem is that this event fires when I fill the li...more >>

Call smart client method from javascript
Posted by JM at 6/27/2003 7:01:26 PM
Hi all, I have developed a windows form user-control that I plan to use in a web-page (with the <object> tag). I works well and I can get/set standard properties (e.g. 'Text') and custom properties of the control in javascript from the web-page client side, but I can't figure how to expose a ...more >>

Collection property
Posted by Marc L'Ecuyer at 6/27/2003 3:28:25 PM
I want to implement a collection property inside another (in a control derived class) but I have some persistence problems. There is an example of my ColumnItem class <TypeConverter(GetType(ColumnItemConverter))> _ Public Class ColumnItem Private m_strText As String Private m_intWidt...more >>

text box
Posted by Hechmi at 6/27/2003 3:12:41 PM
Hello, I have a text box in which I want that a user can only write a number or the character 'x' but I can't do that could any one help me please thank you ...more >>

Re: ImageList problem
Posted by Sorin Sandu at 6/27/2003 3:05:02 PM
Yes ...more >>

FolderBrowser Redux
Posted by justdoit693 at 6/27/2003 2:42:20 PM
I know some problems with the folderbrowser were already mentioned but i'm having a different problem...no matter what I do, I can't make the "New Folder" button go away...even if I explicitly turn it off before calling ShowDialog() as follows: folderBrowserDialog.ShowNewFolderButton = false ;...more >>

How can i Use barcode reader in windows applications
Posted by EricK at 6/27/2003 11:14:25 AM
Hi all I' developing a C# windows applicaion i need to use barcode reader in my application. Plz tell me how can i read barcodes and how can i generate barcodes using C# and ..NET framework 1.1. in windows applications....more >>

Tabcontrol, usercontrol and keydown
Posted by Torben Christiansen at 6/27/2003 10:39:48 AM
Hi I have a usercontrol with a tabcontrol on it and on the tabpages there are some textboxes. I would like to have Ctrl+Tab change tabpage change one tabpage forward and Ctrl+Shift+Tab change one tabpage back, just like Word has it. The Usercontrols Keydown event doesn't get fired, so I have t...more >>

A few ignorant newbie questions
Posted by V. Jenks at 6/27/2003 10:23:35 AM
Hi all, I'm an accomplished web software engineer of 6 yrs. with pretty tight knowledge of asp.net, however I'm entirely ignorant when it comes to windows development and windows forms. There are a few basic questions which I'm sure could easily be answered by any win forms developer...more >>

form.show() problem
Posted by eric at 6/27/2003 8:18:32 AM
Hi, I have a problem with form showing form event handle. I'm calling event handle (which should show ChatForm form) in FormMain form thread in another class. The thread checks if there is any data available from network if so it calles event handle which add some info to text box placed on a ...more >>

Regex Question
Posted by NotYetaNurd at 6/26/2003 5:11:47 PM
I have a text like this <a href=aaaa>something </a><a href=aaaa>something </a><a href=aaaa>something </a><a href=aaaa>something </a><a href=aaaa>something </a> i have to extract each "<a href=aaaa>something </a> "out i did something like this <A[^>]*>.*</A> but it returns the whole string ra...more >>

UnMerge MenuItems?
Posted by Gene McCrory at 6/26/2003 4:00:26 PM
Is there anyway to UnMerge one Menu from another? Example: you merge Menu2 and Menu3 into Menu1. I want to UnMerge Menu 3 and sometime later UnMerge Menu 2. Thanks for any insight on this. Best regards, Gene McCrory ...more >>

Bug with ShowInTaskbar?
Posted by Donovan Zimmerman at 6/26/2003 3:30:09 PM
if i have a button the programatically toggles the topmost property and ShowInTaskbar of a form (topmost=true, ShowInTaskbar=false OR topmost=false, ShowInTaskbar=true), the mouseenter and mouseleave events stop firing on my picturebox controls on my form. It's the ShowTaskBar that's the proble...more >>

Feature or did I miss something?
Posted by DotNet007 at 6/26/2003 3:15:20 PM
Hi to All, Is the TextBox automaticaly readonly when the binded underlying DataView ..AllowEdit is false? Generally: How can I make read only forms? ( Note: I dont want to disable the textboxes, so disabling their container ( panel, groupbox, form etc) is not a solution ) thx for answe...more >>

Editing Images
Posted by AT at 6/26/2003 3:04:50 PM
Hi! I need to creat a project, using C#, to open images. Then, i want to select a part of the image (circle, rectangle, ...) and save the bitmap selected to display and use it when i want to. At the moment i can display the image in the form but i can't do nothing more... Please, if you c...more >>

Close a form programmatically
Posted by Ben at 6/26/2003 12:15:34 PM
Greetings! I am trying to close a form programmatically and I am having trouble. The program is a windows form, however, I also want to be able to run the program in an unattended mode and then close down when it is down. I collect the arguments from the command line and then I want t...more >>

Re: Accesing StatusBar
Posted by Sorin Sandu at 6/26/2003 11:19:12 AM
I need in C# please. ...more >>

Accesing StatusBar
Posted by Sorin Sandu at 6/26/2003 9:01:54 AM
How can I acces statusbar properties in a MDI application (from a child form) ? Also how can I write in status bar for a menu item ? ...more >>

append text to combobox
Posted by Peter Zentner at 6/25/2003 6:09:14 PM
Hi all, is there a chance to append the text of the new selected item to the text in the textbox portion of the control? Example: textbox: "hello " new selected item: "world" new textbox text: "hello world" TIA Peter ...more >>

Processes and Output from Them
Posted by Chad Christensen at 6/25/2003 4:53:52 PM
Hello there, I have the code to start a process, but what I don't understand is how to spawn a process and NOT have the main window hang where it was called from. In other words, have it call a process and continue on and then let me know when it's finished. I also need to direct the stand...more >>

UITypeEditor issue
Posted by David W. Simmonds at 6/25/2003 4:45:33 PM
I have a property that uses my own editor. It brings up a modal dialog. When I hit ok on the dialog, the PropertyGrid does not send out a PropertyValueChanged notification. Is there anything special I have to do to make this happen? public __gc class CPictureEditor : public System::Drawing::D...more >>

Finding a Control in a Form at run time
Posted by Shahin Kohan at 6/25/2003 3:23:16 PM
Greetings, I have a form with many controls on it. At run time I like to be able to get the control from the form using its name. For example GetControl(SomeControlName) as control is there a way to do this without going trough all the controls and checking their name one by one. Shah...more >>

Need a Winform code generator from database structure
Posted by Brent at 6/25/2003 3:03:05 PM
Hi, I've been searching for a code generator that can take a table in SQL Server and generate a WinForm for that table. This form will be used to gather data from the user in order to add and update all the fields in the table. I have over 100 tables so a code generator would sure be helpful. ...more >>

Edit Only DataGrid.
Posted by Hex Adezimal at 6/25/2003 1:40:16 PM
Is it possible to hide the last row or "insert row" line of a datagrid? Setting it to read only will not work. I want the users to only be able to edit existing rows. Thanks, Hex ...more >>

VisibleClipBounds property
Posted by Francesco at 6/25/2003 1:27:06 PM
I've got some problems printing to a dot matrix printer. After correctly setting all the charecteristics of my papersize in the BeginPrint()... private void pdLabelDoc_BeginPrint(object sender, System.Drawing.Printing.PrintEventArgs e) { pdLabelDoc.PrinterSettings.PrinterName = "Epson LX-30...more >>

BUG: Wrappable ToolBar with separators .NET 1.1
Posted by Patrik Ellren at 6/25/2003 12:42:35 PM
This bug makes wrappable toolbars with separators in them pretty useless and it would be nice to have it fixed, or maybe there is a workaround (besides removing the separators)? Symptom: When a toolbar with a separator wraps it looks like an empty row is added to it, if there are more than one...more >>

WHY? - Colors of bitmap are shown inverted sometimes.
Posted by Lee Gillie at 6/25/2003 12:26:39 PM
I'm making a custom control. It draws a bitmap in OnPaint, then draws text over it. This worked fine until I started embellishing the application which uses the control. At times the image is shown with inverted colors. Typically it happens when some other form is involved. For example, when I ...more >>

ListView and performance
Posted by Troy Hilbert at 6/25/2003 11:18:51 AM
Here's the deal. I've got a class which is the root of an object hierarchy. Within this class I create a private member variable of type Form. In the form class, I have created a public LoadFile method that reads a text file (960 KB), creates an array of ListViewItems(~33,000) based on the f...more >>

Remove last raw on dataGrid
Posted by Chi Tang at 6/25/2003 11:09:53 AM
Hi, Does anybody know how to remove the last raw on a dataGrid control on a Windows form? This raw is empty with a star sign on the first column. When I click it some data become null. Thanks for any help, CT ...more >>

Modal dialog and webbrowser control leak
Posted by ZeusDDawg NO[at]SPAM hotmail.com at 6/25/2003 10:30:26 AM
I have discovered a leak when using the webbrowser control on a form displayed as a modal dialog. Navigate has to be called to see the leak. While viewing Task Manager's Processes tab, it appears to leak a 'USER Object', 'Handle' and 'Virtual Memory'. While using Spy++, I can see that it lea...more >>

Control.BeginInvoke(), which thread?
Posted by Grandma Wilkerson at 6/25/2003 8:47:10 AM
My question concerns the documentation for Control.BeginInvoke(). At one point is says: "Executes the specified delegate asynchronously with the specified arguments, on the thread that the control's underlying handle was created on." later in that same documentation page it says... "Note...more >>

Using "resources" files
Posted by Dina Johson at 6/25/2003 8:20:07 AM
Hi, I am currently trying to understand how to use resource files in a VB.NET windows application. I understand the general concept, but it think there is a detail I am missing. BTW, the resource file is not used for Globalization here. I have a simple form with a button and a textbox....more >>

What do I need to clean up in dispose?
Posted by Kevin Peck at 6/25/2003 8:00:29 AM
We have various user controls and forms that will be loaded and unloaded during a program run. I want to be sure we are not going to leak memory. In the InitializeComponent method a lot of events are being added via += calls. Do I need to clean any of these up? We create basic fonts as mem...more >>

Only One Window per event
Posted by Manuel at 6/25/2003 7:25:27 AM
Hello, I have a form which opens a window when I click a button on it. However, this window will open as many times as I click the button. How can I prevent this user-controllable memory excess- usage danger? Thanks, Manuel ...more >>

Selecting and Unselecting Rows in a DataGrid
Posted by Tim Rogers at 6/25/2003 6:37:54 AM
I'm trying to allow the user to select a row in a datagrid by right clicking on it (so that I can select the row and then a context menu is displayed). In the DataGrid MouseDown event handler, I call HitTest on the DataGrid (supplying the mouse X and Y positions). If a row is selected (i.e. th...more >>

Problem overriding Font property of TextBox
Posted by okrumnow NO[at]SPAM gmx.net at 6/25/2003 5:58:01 AM
I'm trying to override the Font property of some controls. For a Label this works as expected, but the TextBox ignores the value returned from the subclass. This small example shows this effect. I set the Font ot the form to 6pt Sans Serif so normally all controls would be using this font. N...more >>

How to create floating dockable window or toolbar?
Posted by Ilya Evseev at 6/25/2003 3:06:43 AM
Hi! How to create floating dockable window or toolbar? MSDN says that "The Form class can be used to create standard, tool, borderless, and _floating_ windows". It's all information about floating windows that M$ can open for community from it's great proprietary portfolio?!?? Or more detai...more >>

BinaryFormatter Alternatives with limitied security priviledges
Posted by Phil Jones at 6/24/2003 6:17:41 PM
I want to write class that effectively caches object state between instances of a WindowsForms application running. The obvious device to use is the [BinaryFormatter] within the Runtime.Serialization namespace. However, I would also like the class to be operable within a No-Touch-De...more >>


DevelopmentNow Blog