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

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

ValueChanged event
Posted by joe at 12/31/2003 11:29:49 PM
Hi, I have a numeric up-down control. 1. How can I distinguish between programatic value change (like MyControl.Value=25) and user interface change (clicking the arrows)? 2. If the numeric up-down has some value in it (lets say 27), if we select the text and type 27 again, ValueChanged ...more >>


ImageList problems with semi transparent images
Posted by Yuval Naveh at 12/31/2003 2:10:57 PM
Hello, I have encountered a problem while trying to display images in the ListView control. I am using Visual Studio 2003/C# on windows 2000 professional SP4. My images are 32 bit PNG with alpha channel that has 256 levels. After adding them to an ImageList component, and attaching the ...more >>

Advice on databases
Posted by Ann Marinas at 12/31/2003 12:44:59 PM
Hello All! I need to seek your advice on databases. I was wondering if you guys have any suggestions on a databases that is lighter than SQL Server but much more efficient than MS Access. I am currently designing a C# program that would be deployed on computers that have no SQL Server nor...more >>

ListView control
Posted by Kimon Ifantidis at 12/31/2003 12:39:49 PM
Is there any way to merge cells in a list view control? This control is very useful but unfortunately .NET Framework provides very limited functionality (e.g. owner- draw items are not available)....more >>

Clipboard - Dual Format - Text & Object
Posted by kevin at 12/31/2003 11:35:00 AM
How do you allow an object to be stored on the clipboard such that it still pastes in text format, but also can be pasted within the application that is aware of how to deal with the object? For example, I have this object I've called CompositeTextObject. An instance of the object (cto) ca...more >>

BUG : DataGrid Scrolling Disabled
Posted by Marauderz at 12/31/2003 11:32:16 AM
I have a datagrid in my winform which doesn't want to show scrollbars. And when I try to change the ReadOnly properties it gives me an object reference not set error. Has anyone seen this before? ...more >>

HOW? Custom cursors in TreeView drag/drop
Posted by Lee Gillie at 12/31/2003 10:57:30 AM
My treeview is populated with different icons for various items in the structure. I would like to use cursors which look similar to these when dragging these nodes around. Also, I allow files from explorer to be dropped on the treeview for some nodes. I would like to use a cursor that looks li...more >>

Form Resizing
Posted by Yogesh S at 12/31/2003 8:41:12 AM
i donno whether this is by design but i have a repainting problem.. i have placed magic docking controls inside the form..but somehow it is not painting properly.. but when i resize the form it paints itself properly.. so what i am doing is resizing the form this.Size = new Size (this.Si...more >>



Opening a child form from another child form
Posted by John at 12/31/2003 7:38:22 AM
Hi I have this sub in a main form; Sub OpenForm(ByVal x As String) Select Case x Case "1" form1 = New frmClients form1.TopLevel = False Me.FormsPanel.Controls.Add(form1) form1.Show() form1.BringToFront() Case "2" fo...more >>

Can WinForms be integrated into SharePoint
Posted by nospam at 12/31/2003 7:37:30 AM
I've never actually used SharePoint but someone asked about this. Does anyone know if this is possible or does it require WebForms? ...more >>

Instance of Variable over InvokeMember()
Posted by Frank Dzaebel at 12/31/2003 7:11:59 AM
Hello, i want to fill all sqlDataAdapters in a form generically. I tried sth. with MemberInfo[] from system.reflection. But in the end i couldnt got the instance of my Variables. what is the normal way to get the instance of component- variable "CallByName" like ? thanks, Frank Dzaebel ...more >>

problems with listview double click in c#
Posted by Rodrigo Parra M at 12/30/2003 9:56:25 PM
I am developing a windows application, it has a listview, when i double click in the listview i can't do anything (p.e. press an button) unless i click in any where Regards Rodrigo ...more >>

Threading question
Posted by Bruce W.1 at 12/30/2003 9:22:10 PM
As an exercise in threading I wrote a winforms program that checks to see if links are good at a website. First it gets the web page then parses out all the URL's to an arrayList. It then displays the URL's in a dataGrid. Then it starts a new thread for each URL using WebRequest.GetResponse....more >>

Form position
Posted by John at 12/30/2003 8:19:28 PM
Hi I have a panel to which I have added several forms as follows; form1 = New frmone form1.TopLevel = False Me.MyPanel.Controls.Add(form1) form1.BringToFront() form2 = New frmtwo form2.TopLevel = False Me.MyPanel.Controls.Add(form2) form2.BringToFront() Is there a way to know which...more >>

Form layout in desgin time
Posted by Ohad Young at 12/30/2003 5:27:22 PM
Hi, Is there in VS.NET IDE something like the form layout window in VB6? How cam I design a GUI independent of the client's resolution? Best, Ohad -- Ohad Young Medical Informatics Research Center Ben Gurion University Information System Eng Office Phone: 972-8-6477160 Cellular Ph...more >>

Trouble changing TabControl Color
Posted by Ken at 12/30/2003 3:31:37 PM
I can't figure out how to change the TabControl color. I am trying to match the tabs and background tabcontrol to that of the windows form color I have chosen. I can change the TabPages, but not the tab / tab header line. ...more >>

Programming the splitter
Posted by hOSAM at 12/30/2003 1:26:56 PM
Hi all, I need to find if there is a way to programmatically place splitter controls. I am asking this, because I have been trying for several hours to do something like this: this.SuspendLayout(); TreeView trvTables = new TableSelector(); trvTables.Location = new Point(0,0); trvTab...more >>

Merge MDI parent menu and child menu
Posted by cmombo71 NO[at]SPAM hotmail.com at 12/30/2003 12:23:47 PM
I have a parent MDI form with a menu and a child form with a menu. Each menu has a item named 'View'. When the menus merge I end up with two 'View' menu items. Is there a way to prevent this and make the items under each 'View' combine into one. Any help would be appreciated. Thanks....more >>

Execute code after form is visible
Posted by endymion853 NO[at]SPAM hotmail.com at 12/30/2003 11:57:30 AM
I am using a hosted ActiveX control within a Windows Forms application. I can not properly activate the ActiveX control because the control's GUI can be initialized only when the form has completed the loading of it's GUI. How can I get the control to activate properly? I have tried to use ...more >>

Releasing mouses grip on edge of sizable form?
Posted by What-a-Tool at 12/30/2003 11:02:34 AM
I have an mdichild form whose minimum size I want to limit (can't be dragged below a certain size) Even though I am running .NET 1.1 where the minimum size property supposedly works, it's not working for my child forms. Herfried K. Wagner directed me to a code sample which he wrote as a work ...more >>

WndProc and DefWndProc
Posted by Steve W at 12/30/2003 11:01:16 AM
I have a form class public __gc class DualImageForm : public System::Windows::Forms::For It is a MDI child and it ihas this function protected: virtual void WndProc( Message *Msg // DualImageForm::DefWndProc(Msg) // this->DefWndProc(Msg) Form::DefWndProc(Msg) Once this func...more >>

displaying a dialog right after window is shown
Posted by JT at 12/30/2003 10:20:04 AM
is there an event that is raised right after the window is shown? i have been trying to create my main window and as soon as thats done, then show a login dialog box. i cant seem to figure out where to put the dialog display code. ive tried in the constructor, the onload, and the onenter, ...more >>

Inherited Form
Posted by Herman Lammers at 12/30/2003 9:32:27 AM
Hi, i have this weird problem with Inherited Forms. I have a Form with some standard functionality from which I inherit other forms. Whenever I modify the Base Form, the designer does not open the inherited Form in designmode anymore. It gives the following error message: An error ocurred...more >>

How can I track what properties the user has changed?
Posted by Darryl Minard at 12/30/2003 9:17:07 AM
Hello, I'm using simple data bindings to wire windows forms controls to the properties of an object (the data source). I'd like to track which properties have been modified by the user. I'm looking for recommendations about how to do this in a generic fashion. I'd like to avoid incorp...more >>

Help with Regular Expression
Posted by Brian at 12/30/2003 8:35:56 AM
In the process of monitoring my inbox with .NET code, I would like to check the body of the email message to determine if there is a code (GUID) stored in the body of the mail message formatted like the code below. The position of the code may or may not be the last thing in the body of th...more >>

Memory Leakage in Windows Application
Posted by PVV30 at 12/30/2003 6:41:52 AM
Hello, Can anyone guide me to a site where I may get list of all controls that cause Memory Leakage in Windows Application build using Frmaework1.0 Through various forums, I have foud out that following controls have problem: 1. DateTimePicker - Gets associated with some SystemEvent...more >>

How to add a image to a menu item
Posted by Frank at 12/29/2003 8:55:00 PM
As the title! Thanks ...more >>

Out of range exception with a Tab Control
Posted by Derrick Repep at 12/29/2003 6:27:00 PM
Hi, I have a standard TabControl on a form that has five tabs. The first tab has a list box from which "available" elements can be selected and moved into an Infragistics grid of "Selected" elements. This mimics a standard "pick list" form, and has buttons that will 1. Move All Availab...more >>

Avoiding focus
Posted by Christopher Thompson at 12/29/2003 6:16:46 PM
I'm building a virtual keyboard for a touch screen application. When I hit a key on the keyboard, I lose focus on my text box (or whatever I'm in at the time). If I have a range of text selected, when I restore focus, I lose the selected range. What I would like to do is avoid losing the f...more >>

Wizard forms
Posted by Noor at 12/29/2003 5:49:21 PM
Hi all, what is the best approach to create wizard for an application? Do i have to take as many forms as the wizards will have or take only one form and multiple panels on it. or is there any other good approach? plz provide me the answer Noor ...more >>

Problem with Application.Run
Posted by Simon Harvey at 12/29/2003 5:48:34 PM
Hi all, I am trying to get my win forms application to start, but I'm hitting a problem which I am certain is really simple. The start for my application is ApplicationManager.cs. This class contains the Main() method and a very simple constructor. The class looks something like this: publ...more >>

Right alignment on Winforms Data Grid cuts off text on right.
Posted by emaeding NO[at]SPAM yahoo.com at 12/29/2003 12:45:56 PM
I am displaying currency data in a DataGrid column. The data is right-aligned within the header and the entire column via the alignment property. However, all of the text both in the header row and the content rows is being slightly trimmed on the right-hand side of the column no matter how wi...more >>

Ctrl + mouse click implementation problem
Posted by Dmitry at 12/29/2003 12:34:32 PM
Hi, I'm trying to implement "multiple selection" feature the way it's usually done in Windows - hold the "Ctrl" key and mouse-click on the items you want to select. The problem is that I don't receive KeyUp/Down event neither by the top-most form, not by the embedded into it controls. ...more >>

TabPage Enabled property
Posted by Ohad Young at 12/29/2003 10:20:26 AM
Hi, A very strange thing is going on in the TabPage class. In the documentation "Disabling Tab Pages Programmatically", the TabPage seems to have a very useful property "Enabled". However, this property doesn't appear in the TabPage members in the documentation nor in the Visual Studio IDE. ...more >>

WinForm Question
Posted by Jack at 12/29/2003 9:57:18 AM
Hi, I am wondering is there a way to have the WinForm ControlBox option set to true and disable the close button (x)? Also, is there a way to force the form to be maximized when activated? Thanks ...more >>

Leaving controls
Posted by faensen NO[at]SPAM inf.fu-berlin.de at 12/29/2003 7:11:39 AM
To edit labels in a GDI image I have placed a TextBox programmatically in a Panel. In the TextBox.Leave event I read the Text property, assing its value to my business object and close the TextBox. The problem is that when I click the mouse outside the TextBox the Leave event is not fired. The o...more >>

not able to trap Enter key (keypress or keydown) in vb.net datagrid
Posted by Vinodh at 12/29/2003 5:02:18 AM
In vb.net, I am not able to trap the enter key neither in keypress nor in keydown event ...more >>

OnBackColorChanged not being called
Posted by Tony at 12/28/2003 11:06:03 PM
Hi, I have a custom user control that needs to be notified every time the BackColor of its parent is altered. Using OnBackColorChanged within my custom control only seems to work if my control's BackColor has not been set to anything. I suspect being an ambient property derived from its pa...more >>

How to capture keys across all applications in C#?
Posted by Mentat at 12/28/2003 1:10:48 PM
I'm working on a utility program, and I need to have it do something every time a certain key is pressed (like Ctrl-F11, for instance), no matter what application is active at the time. The utility will be running in the system tray. I've got a screen capture program that does this, but I can'...more >>

Splitter control question
Posted by Roshawn at 12/28/2003 4:55:33 AM
Hi, I was wondering if I could specify a background image for the splitter control. On the Properties tab the property is not there, yet if I create the splitter entirely in code the IntelliSense window reveals that a BackgroundImage property exists. What is the proper way to set this prop...more >>

smart tags
Posted by Jyothi at 12/27/2003 6:34:02 PM
Hi All, Can anybody tell me how to create smart tags like what we see in MS word application? TIA, Jyothi ...more >>

How do you make a control transparent?
Posted by anonymous NO[at]SPAM discussions.microsoft.com at 12/26/2003 7:05:08 PM
I have been trying to create some semblance of transparency in my Controls (Panels, Buttons etc) by sublassing and adding the following lines in the Sub New() Me.SetStyle(ControlStyles.SupportsTransparentBackColor, True) Me.SetStyle(ControlStyles.UserPaint, True) Me.BackColor = Color.Tran...more >>

BUG: RichTextBox - wrong charspacing
Posted by peter.h NO[at]SPAM netlane.de at 12/26/2003 3:50:18 PM
The RichTextBox has problems displaying characters=20 of a font, when they have a left sidebearing smaller=20 than 0. Some space is inserted, but it shouldn=B4t. To make it understandable: Say we want a '=F1' (n-tilde), but it wouldn=B4t=20 exist ... a common way to cope with this is to=20 c...more >>

Passing parameters back from a form
Posted by Andrew Chalk at 12/26/2003 12:40:17 PM
I load a form from another form and get some parameters from the user. How should I pass these parameters back to the parent form? Many thanks ...more >>

drag/drop and the notify icon?
Posted by dave at 12/26/2003 9:36:37 AM
Is it possible to capture the drop event onto a notify icon? I want to drop an url onto the notify icon? thx dave...more >>

NotifyIcon
Posted by cccedi NO[at]SPAM yahoo.com at 12/26/2003 1:25:43 AM
Hi, I have a problem with NotifyIcon class. In my application I have used NotifyIcon to add my icon to system tray. I have set showintaskbar = false; The problem is when I do Alt+Tab I can see a ms-windows(the same icon as in Start button) Icon in the list. How can I remove from that ...more >>

abt System.Reflection
Posted by rajamanickam at 12/26/2003 1:18:59 AM
hi, I am rajamanickam.. working as a software developer.... i tried to create a general class in vb.net to access an incoming parameter object's methods and properties.. by Object.GetType.InvokeMethod in System.Reflection.It is working and calling methods of the parameter object.But i c...more >>

how to load a form from module?
Posted by jernej goricki at 12/25/2003 11:39:28 PM
Hi, Im trying to load a form from sub main in my module like this: Module MainModule Sub main() Dim StartForm As MainFrame StartForm = New MainFrame() StartForm.Show() End Sub End Module But the form just blinks for a second and then it dissapears?? Why?...more >>

Newbie question - is it possible to enforce textbox only to accept input as money only or decimal TIA
Posted by CobraStrikes NO[at]SPAM al.com at 12/25/2003 12:51:25 PM

Is Control.Transparent a hoax?
Posted by anonymous NO[at]SPAM discussions.microsoft.com at 12/25/2003 12:15:05 PM
I have been trying to create some semblance of transparency in my Controls (Panels, Buttons etc) by sublassing and adding the following lines in the Sub New() Me.SetStyle(ControlStyles.SupportsTransparentBackColor, True) Me.SetStyle(ControlStyles.UserPaint, True) Me.BackColor = Color.Tran...more >>


DevelopmentNow Blog