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

Filter by week: 1 2 3 4 5

HTMLElement reference object
Posted by JT Thompson at 8/31/2005 6:58:02 PM
I can't seem to get the HTMLElement class to reference an object When I try: Dim HtmlElement1 As New HtmlElement I get a "type ... has no constructors" When I try: Dim HtmlElement1 As HtmlElement and I try to hook into it's click event it throws an exception of: System.NullReferenceE...more >>

Suppressing ISupportInitialize
Posted by Nima at 8/31/2005 12:18:03 PM
I have a property of a type that implements ISupportInitialize. Is there an Attribute that I can place on the property that will cause the designer to ignore it and not call BeginInit() and EndInit() on it? Thanks, Nima ...more >>

Datagrid multiple select
Posted by Gav at 8/31/2005 11:08:23 AM
Hi all, I have put some code in the mouseup event for my datagrid in order to select the entire row. Does anybody know how I can get multiple selection to work on my datagrid? thanks Gav ...more >>

Keys enumeration and lower case
Posted by Brad Wood
Is it possible to compare user input against the Keys enum if the user input is lower case?...more >>

TreeView - ObjectDisposedException
Posted by Bill at 8/31/2005 10:22:01 AM
I posted this in the "framework" group yesterday & got no nibbbles. So I have a form with a TreeView control. When the user chooses a leaf node an "AfterSelect" event is triggered where I take some info from the leaf's tag, Create and show a new form, and call this.Close() on the treeview for...more >>

Is there some published design guidelines?
Posted by Michael at 8/31/2005 9:15:04 AM
Hello, Are there some published design guidelines for windows forms? From Microsoft would be best. Design guidelines like, what should be the spacing between buttons and the border of the form, which button between "Cancel" and "Save" should be on the right-side, what size should buttons be...more >>

Icon in ListView has a black shadow
Posted by chjossi NO[at]SPAM gmx.ch at 8/31/2005 7:43:12 AM
Hy guys I am using a ListView that displays files from the file system. I succeeded in loading the icons from the system. But when the Items are displayed, the have are very nasty black shadow at the right. Do you know, how this can be solved? Thanks for your advice. Chris...more >>

Loading a form 'cleanly'
Posted by Buzz at 8/31/2005 1:52:04 AM
I was not quite able to find good search terms so sorry if this is redundant. What I am trying to do is have my form load cleanly. I have many controls and I literally watch the form draw before my eyes. This happens on several test machines with ngenned code. We use VB.NET. I load the val...more >>



3rd attempt: Exception in Timer.Tick/JIT debugging
Posted by Armin Zingler at 8/31/2005 12:00:00 AM
Hi, as nobdoy answered again, again the short version: 1. Add a Timer (System.Windows.Forms.Timer) to a new WindowsApplication. 2. Set the timer's Enabled property = True. 3. In the timer's tick event, write: Throw New Exception 4. Start How can I have the IDE handle the exception? T...more >>

my doubt that the winform now and the xaml futhure ?
Posted by Kylin at 8/31/2005 12:00:00 AM
as I know that there is a little diffrient about C/S and B/S in LongHorn , is it meaning that it's no usefull to learn winform now , and just study the xaml in longhorn ? -- FireCrow Studio Kylin Garden QQ:462042991 MSN:GaoTianpu@hotmail.com http://spaces.msn.com/members/gaotianpu/ I...more >>

Kerning changes - why?
Posted by Axel Dahmen at 8/31/2005 12:00:00 AM
Hi, in one of my Windows Forms I've got a label displaying URLs. When the URL displayed becomes too long, the letters' kerning changes, i.e. the letter spacing gets bigger. Did I set some property wrong? Or what makes the letter spacing change? TIA, Axel Dahmen ...more >>

font dialog window..
Posted by Ollie Riches at 8/31/2005 12:00:00 AM
Is there a font dialog winforms control at all or am I going to have to create one? Cheers Ollie Riches ...more >>

Drag & Drop puzzled
Posted by Lloyd Dupont at 8/31/2005 12:00:00 AM
I already had implemented Drag & DRop successfully it's why I'm flabergasted... I have a ome made control which accept Drag&Drop. OnDragEnter(), OnDragOver() & OnDragLeave(), are called correctly. However OnDragDrop() is never called!! (if I drop the dragged stuff, I mean). What's puzzlin...more >>

Scale transform and texture bitmaps
Posted by Alejandro Serrano at 8/31/2005 12:00:00 AM
I've got a GDI+ image made of squares, circles and basic shapes. When I make an ScaleTransform on it, everything works fine, but texture bitmaps are also scaled, so it looks horrible!! Is there any way to scale the image but not the textures brush? Thanks in advance, Alejandro Serrano...more >>

Tabbing on to a Combobox in a DataGrid
Posted by Dave at 8/30/2005 9:48:01 AM
I have a DataGrid that has a ComboBox for a field. For simplicity sake Column 1: Text Column 2: ComboBox Column 3: Text If I "Click" on the cell in column 2 for a pre-existing row, the ComboBox appears and allows me to select what I want. Life is Good.... Until... I am on the c...more >>

TextBox stops appending text
Posted by ronaldo1 at 8/30/2005 9:09:11 AM
Been using a System.Windows.Forms.TextBox in a standard System.Windows.Forms.Form. This TextBox gets written to quite frequently during the app lifecycle with myTextBox.AppendText(msgText + System.Environment.NewLine); On occasion it seems to stop appending text, and I have to quit out of t...more >>

VB6 Form Upgrade to .Net Error
Posted by Kirk at 8/30/2005 6:31:03 AM
I am upgrading a VB6 application to VB.NET. In the VB6 application I have a form with a sub called ShowScreen that takes arguements. This has always worked with no problem/ When I try to upgrade I get the Buil error "'ShowScreen' is not a member of 'System.Windows.Forms.Form'". How do I res...more >>

Modifier Keys, Ctrl+Shift, can't trap this event
Posted by Tim_Mac at 8/30/2005 3:43:16 AM
hi, i have a keydown event in my user control, and i want to trap Ctrl+Shift+v. if(Control.ModifierKeys == (Keys.Control & Keys.Shift)) if(e.KeyCode == Keys.V) this.htmlEditor1.Paste(); it never gets past the first condition. i have also tried: if((Control.ModifierKeys & Keys.Control &...more >>

DragDrop registration failed in IE hosted control
Posted by Will Holley at 8/30/2005 3:07:02 AM
Hi, We have written a simple user control which we are hosting in IE which allows users to upload files by browsing or drag / droping files onto it. We have done a fair amount of work before with hosted controls in IE and have an MSI which is installed for all users which gives Full Trust t...more >>

Starting a Form App Hidden and Minimized - It shouldn't be this difficult!
Posted by Terry at 8/29/2005 2:01:43 PM
I've seen several people post ideas about this, but I haven't seen anything that actually works for what I'm trying to do. (Or I just haven't searched on the right thing) This problem is very easy to reproduce, create a Form application. Leaving everything default, add the following two li...more >>

count lines of text in a label control
Posted by moondaddy at 8/29/2005 12:24:15 PM
I'm writing a winforms app in vb.net 1.1 and need to get the number of lines of text in a label control. How can this be done? Thanks. -- moondaddy@nospam.nospam ...more >>

Fetching data from DropDownList
Posted by John Cosmas at 8/29/2005 12:18:41 PM
I have a drop down list that I have bound to a table. When I pick the dropdownlist, I would like to fetch the following: - Index, which I can achieve through the SelectedIndex - Value, which I can get from the SelectedValue - Column, a specific column value from the bound data ...more >>

capture webbrowser event / element ID
Posted by JT Thompson at 8/29/2005 9:44:14 AM
I'm new to .net so please be gentle. I'm using vs.2005 beta 2 and attempting to develop a vb app that will require the capturing of html element ids that are clicked on within a webbrowser control. As an example, to try an understand the process, I've created a new project with only have ...more >>

raise event when any control changed in form
Posted by Oren101 at 8/29/2005 12:53:40 AM
is there any event that raise when any control changes in the form or should i check the change event for each control? Regards OreN101...more >>

Load all tabpages when the tabcontrol load
Posted by Si Jingnan at 8/29/2005 12:00:00 AM
Hi, I am creating a small window form with a tab control in it, I found the tab page's Load event fire only when the tab page is become visible, I remember in the MFC we can set the PropertyPage to initialize when the PropertyDialog create,no need to wait for become visible. Could we get ...more >>

Form.afterOnLoad event???
Posted by SharpCoderMP at 8/29/2005 12:00:00 AM
hi, when form is loaded i would like to popup a message box to the user after the form is shown to him/her. there is onLoad event but it occurs just before form is displayed. how can i popup message box just after form is displayed?...more >>

Toolbar questions...
Posted by Cynthia Dough at 8/28/2005 11:28:03 AM
I have 2 questions with toolbars 1. How can I set a button to 'disable' mode. I want to see an icon, but I dont want to be 'clickable'. If I set the enable property to 'false', the icon disappear 2. Whenever I resize my windows, the toolbar flickers a lot. How can I reduce that flickerin...more >>

How to stop resizing a form?
Posted by Joanna Clark at 8/28/2005 10:48:03 AM
I have a form, that I want to be sizeable, but not smaller than a specific size. How do I enforce this? Right now, in the ResizeWindow event I check for the size, and set the minimum size whenever it gets under it. But the result is awful -- with a lot of flickering. Any tip? Thanks....more >>

Enumerating instantiated WinForms
Posted by Emily at 8/28/2005 12:00:00 AM
Hi All, Relativley new to .NET and I'm wondering if its possible to enumerate all instantiated WinForms so I can determine if a window has been created, and if possible obtain a reference to that window. Basically having knowing if a non-modal dialog is open without having to use variables ...more >>

Anchor Layout Oversizes Controls
Posted by Ian Evitable at 8/27/2005 12:00:00 AM
Hello I have controls on a winform that use top,botton left achors. Once i save the form and close and reopen it (in design mode) the controls are all oversized such that half of them disappear beneath the panel/tabcontrols in which they are contained. This occurs with both user controls and t...more >>

Access to project directory thwarted when trying to build a Web App in .NET
Posted by Richard Lionheart at 8/27/2005 12:00:00 AM
Hi All, [I mistakenly posted this to microsoft.public.inetserver.iis first.] Is there on-line documentation for the permissions available in IIS for a Virtual Directory's Local Path? Specifically I want documentation in relation to developing Web Forms using Visual Studio .Net. I'm devel...more >>

Windows Forms v2.0 Beta 2 vs. v1.1 performance
Posted by Mark N. at 8/26/2005 4:50:02 PM
I recently started a new solution and decided that it was time to give Beta 2 a try. I encountered a situation that is more than slightly disturbing and I'm hoping it's simply something that I'm missing. Try this: 1) Start a Windows Forms application 2) On the default form hook the Resize...more >>

Enumerate and Kill Processes in VB.Net
Posted by Shariq at 8/26/2005 12:23:04 PM
How do I enumerate all running processes in Windows TaskManager and kill a specific process using VB.Net on an XP? Thanks...more >>

Character encoding problems reading Html from Clipboard
Posted by Tim_Mac at 8/26/2005 11:41:36 AM
hi, i am accessing some html (originating from MS Word) in the clipboard in my winforms app. i catch it before the paste, clean up the html, set the clipboard with the cleaned Html, and then paste. here is my (simplified) code: string html =3D Clipboard.GetDataObject().GetData(DataFormats.Ht...more >>

UserPainted SplitContainer and Focus-Rectangle
Posted by Roemer at 8/26/2005 8:15:06 AM
Since the visual display of a SplitContainer is not that great, I'm trying to do the drawing myself. I made it that it will paint a nice 3D border arround the rectangle that can be dragged (SplitterRectangle) and three 3D Lines in the middle of this Rectangle. This works so far but the Spli...more >>

scroll datagrid programmatically
Posted by GatesOfIshtar at 8/26/2005 7:20:03 AM
Hi, In my program, I'm displaying a data grid with 1000 rows. The 100th row should be selected, so I use select method of datagrid to select it. However, I also want the datagrid to scroll that row. How can I accomplish? So far could not get it. Thanks...more >>

Windows form always stays on top of desktop
Posted by John Bailo at 8/25/2005 3:58:18 PM
I built a windows form c# application. If I launch another application, such as a Firefox browser, and select that application, my windows form application stays top most. I have to minimize it to the task bar to get it out of the way. How can I make it "play well with others"? ...more >>

How to use scrollbar control in panel
Posted by moondaddy at 8/25/2005 2:56:05 PM
I have a vb.net 1.1 winforms app and want to put a vertical scrollbar in a panel for a scrollable container. are there any code examples showing how to do this? Thanks. -- moondaddy@nospam.nospam ...more >>

return value
Posted by Jose at 8/25/2005 11:55:12 AM
Does anyone know how to return a value from a form? Thanks, Jose...more >>

2nd Try : Is it possible to have Min/Max buttons AND Help button on a form's title bar?
Posted by Keith at 8/25/2005 11:01:32 AM
Hello, Is it possible to have Min/Max AND Help button in the title bar? If so, how is this accomplished? If not, why does this restiction exist? Can the functionality of the HelpButton ("?" cursor, control specific help, etc.) be assigned/mapped to another button or control? Can the question...more >>

e.Cancel is True on Entry to OnClosing
Posted by John Yale at 8/25/2005 10:28:40 AM
I have an MDI child form which sometimes refuses to close. When the problem occurs, e.Cancel is set to True on entry to the OnClosing method. I could just set this False which fixes the problem, but would rather find out the cause of this. It only seems to happen under the following conditi...more >>

Refresh parent from Modal window
Posted by vinay at 8/25/2005 9:21:07 AM
Hi I am opening a Modal window from parent window. I am adding some data in the Modal window and closing it. When the modal window closes, i want to refresh the parent window to see the latest changes made in modal window?? i tried Me.Parent.refresh() But nothing happens?? Thanks ...more >>

Reading from a set of dynamically generated textboxes
Posted by Meghana at 8/25/2005 8:18:01 AM
Hi, I am creating textboxes on a windows form at run-time as: For intCount = 1 To intNumberOfBoxes - 1 Dim txtNew As New TextBox txtNew.Name = "txtChild" & intCount + 1 txtNew.Location = New Point(intInitialTextX, intInitialY + (intCount * 25)) txtNew.Size = New Size(intTextWidth, int...more >>

C# app works perfectly on XP but not on 2003 server
Posted by OfurGørn at 8/25/2005 6:35:04 AM
Hi everybody - here is an easy one (hopefully) I have a funny error, that is driving me nuts !!! I have a application that I have written on a Windows XP SP2 machine, and tuned to near-perfection - then I copied the program to the target system, a Windows 2003 standard server, the program w...more >>

vertical text in header of the datagrid
Posted by Wili Whitelaw at 8/25/2005 1:42:06 AM
I need to know if its possible to make the text for column headers in a datagrid to be vertical. Could this be done in a Listview with View set to Details? If necessary I could use images if this is feasible? Does anyone know of a 3rd party control that does this? Does anyone have any i...more >>

How to Host a Windows Form in a User Control
Posted by Charles Law at 8/25/2005 12:00:00 AM
Can anyone think how I could get a user control to host a Windows form? In fact, what I actually want to do is have a docked toolwindow within a user control, along with another user control. The reason I want to do this is because I am creating an add-in for the VS IDE, and when creating a...more >>

GraphicsPath.PathTypes question
Posted by Lloyd Dupont at 8/25/2005 12:00:00 AM
I want to follow a GraphicsPath and put little visual mark every.. some distance... I found 2 handy properties: GraphicsPath.PathPoints GraphicsPath.PathTypes where the data seems to be stored as curve, line, bezier, and so on. I have one problem with GraphicsPath.PathTypes thought. It h...more >>

Windows Forms .Net 2.0 samples\Quick start
Posted by Reshma Prabhu at 8/25/2005 12:00:00 AM
Hi, Can any one point me to any Windows forms 2.0 quick starts/samples? Thanks and Regards, Reshma ...more >>

How commit databindings on instant form closing?
Posted by Andreas Zita at 8/24/2005 11:25:41 PM
Hi I often have a form with a number of databound textboxes. The problem is that when the user edits a textbox and then closes the form without first leaving the textbox, the databinding is not commited and the property not set in the bound object. What I do now is to run EndCurrentEdit() o...more >>

Datagrid problem in VB.NET
Posted by Dennis T. Holm at 8/24/2005 11:19:43 PM
HEy Im having problems with setting the width of my columns of my datagrid. Here's the code resultatGrid.DataSource = getFirms(0) // gets metaData from database Dim tableStyle As New DataGridTableStyle tableStyle.PreferredColumnWidth = 100 tableStyle.RowHeadersVisible = False ta...more >>


DevelopmentNow Blog