Groups | Blog | Home


Archived Months
November 2003
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 controls > march 2005 > threads for march 8 - 14, 2005

Filter by week: 1 2 3 4 5

Setting Winform DataGrid control columnn width
Posted by David K. at 3/14/2005 11:51:45 PM
Hi, I use C# with Visual Studio 2003. I have a Winform DataGrid control, in which I want to set the width of a specific column - in design mode. Please, let me know how I do that in design mode as well as programmatically. Thanks David ...more >>


Dynamic property dropdown?
Posted by Özden Irmak at 3/14/2005 11:19:01 PM
Hi, As you know for example "DataSource" property is type of string but can show a dropdown populating values from the form which may act as datasource. I want to achieve the same effect to my property, I mean the dropdown part. My Property will be string and the values in the dropdown sho...more >>

Filling a listbox
Posted by J Morrell via DotNetMonster.com at 3/14/2005 7:18:18 PM
Hello. First time poster with a listbox problem. I?m trying to populate a listbox with data that comes from my SQL server. I?ve created the connection, filled the dataset and loaded the data adapter. Apparently, I?m missing something because after this runs, what is populated in the listbox ...more >>

multiline label
Posted by lottoman at 3/14/2005 8:41:15 AM
Hi All, I am trying to duplicate the label in the .net messagebox for my custom messagebox. I want my label to have multiline property. I know that by default the label does wordwrap. but how can I detect how many lines are in the label? to change the label and the form size accordingly. The ...more >>

Set Focus to a textbox in a Dialog Box
Posted by davemac at 3/14/2005 8:24:51 AM
Hi all, I am developing a WinApp in vb.net 2003. I am trying to set the focus to a textBox in a DialogBox. I understand setting the focus in a DialogBox is different than on a regular Win form which is simply: control.focus I have searched the newsgroups for this solution with a co...more >>

Message To Detect When Mouse Used To Change Caret Position
Posted by gregory_shelton NO[at]SPAM hotmail.com at 3/13/2005 11:08:57 PM
Is there a message that is sent to the textbox control when the mouse is used to change the caret position? Any way to prevent the mouse from changing the caret position? ...more >>

Missing mouse-events for scrollbars
Posted by ultimA at 3/13/2005 1:25:08 PM
Am I the only one missing the events like MouseDown, MouseUp, MouseMove from hScrollBar and vScrollBar? Can they be added? Or how can a control be hooked, in my case solve this issue?...more >>

Category Text Color in PropertyGrid
Posted by ljlevend2 at 3/13/2005 12:49:03 AM
I am using a PropertyGrid to expose properties at runtime and I change the line and background colors of the PropertyGrid to match the color theme of my application. I would also like to change the color of category text (i.e., text that corresponds to the System.ComponentModel.Category attri...more >>



Prevent Mouse Changing TextBox Caret Position
Posted by gregory_shelton NO[at]SPAM hotmail.com at 3/12/2005 8:45:10 PM
I need to have a textbox where the user is prevented from changing the caret position with the mouse. The user shouldn't be allowed to drag the mouse to highlight an area of the textbox OR use the mouse to place the caret in a different position. One additional caveat, the control must be set...more >>

Toolbar and Menubar
Posted by Rupesh Kokal at 3/11/2005 3:19:53 PM
Hi, Visual Studio 2003 does not have toolstrip control, which is present in Visual Studio 2005. However, can we use the toolstip, menustrip controls in Visual Studio 2003. Any help is appreciated. Rupesh. ...more >>

DateTimePicker should indicate a NULL value
Posted by PaulN at 3/11/2005 2:10:17 PM
I need a dtp to somehow indicate to the user that the value from the database is Null. I've tried setting the dtp.value = nothing and dbnull.value but of course those throw errors. I tried setting the forecolor = backcolor when the value is dbnull but that didn't seem to do anything, it still ...more >>

Changing color of individual items in combobox
Posted by donnapep at 3/11/2005 9:15:05 AM
Hi, Is it possible to change the color of individual items in a combobox? For example, I want some items to be red and some to remain black. I don't want them all to be red or all to be black. Thx....more >>

Using a custom UITypeEditor for a DataTable
Posted by scayze NO[at]SPAM us.loreal.com at 3/11/2005 5:47:13 AM
Hello all, I'm trying to create a custom UITypeEditor for a DataTable and assign the editor to one of my properties. However, if the property is of the DataTable type, the standard editor for a DataTable appears in the designer no matter what I've specified in the EditorAttribute of the prope...more >>

Label controls inside rich textbox
Posted by Muthu at 3/11/2005 2:05:05 AM
Hi all, i have a situation to place label controls inside rich textbox control and i have done that using richTextbox1.controls.add method. But the problem is the controls are not part of the text which i type it is overlapping my text.In simple words, Is it possible to make a labe...more >>

Asynchronous Control Updates
Posted by Neil B at 3/10/2005 5:25:51 PM
Hi folks, I'm relatively new to C# and .NET and am trying to find my feet after 8 years in MFC. Here's one that has sprung out on me unawares today. I have a class with an embedded socket which, when initialised, launches an asynchronous UDP listener. When that listener receives a certain t...more >>

Bindable property HELP PLEASE
Posted by João Santa Bárbara at 3/10/2005 4:54:52 PM
hi all i have create my own usercontrol and i create this property <BindableAttribute(True), _ DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden), _ DefaultValue(Nothing, Nothing)> _ Public Property Values() As Object Get Return xValue End Get Set(ByVal Value As Objec...more >>

Suppress mouse events for a control?
Posted by Marcos Stefanakopolus at 3/10/2005 2:13:11 PM
Hopefully this is an easy question, but I didn't find anything obvious on MSDN or in the Visual Studio docs. How can I suppress mouse events for a particular control? The situation is that I have a main PictureBox, which handles MouseEnter, MouseMove, and MouseLeave. When the user moves t...more >>

Selecting a character in a textbox...
Posted by Stu at 3/10/2005 11:34:50 AM
Hi, I would like to select a single character in a normal textbox. Then have the user be able to move along the characters one at a time using the arrow keys. Is ther any way to select, say, character 5 on row 8? I am trying to use textbox1.select(1,1) to select the first character - but ...more >>

Stop and start control painting
Posted by Vince at 3/9/2005 2:38:53 PM
Besides SuspendLayout and ResumeLayout, are there better methods for stopping and resuming painting? SuspendLayout and ResumeLayout just don't stop all painting. Thanks, Vince...more >>

CheckedChange
Posted by Hemang Shah at 3/9/2005 10:42:56 AM
Hello How can you trap the CheckedChange event and cancel it? So in the CheckedChange event of a checkbox, if you display a yes/no dialog box, and if the user presses No, I want to cancel the event. I tried e.cancel; it complains cancel not found. Now do I cancel that event from t...more >>

Add properties to a control at Run-Time?
Posted by Özden Irmak at 3/9/2005 10:15:36 AM
Hi, I've developed a couple of Windows Forms controls. To extend their flexibility, in run-time, I should be able to define/add new properties for those controls. I know that Reflection.Emit namespace is for that purpose. I have searched for possible examples about this and only found th...more >>

last active cell still exist but gray in datagrid
Posted by web_poster03 NO[at]SPAM yahoo.com at 3/9/2005 10:05:20 AM
Hi, In a window form, I have several datagrids. When the datagrid is clearup by setting databinding to null and re-set the datagrid dataset, a data cell with data is still there since it had the cursor there when clearing the datagrid. But its background is gray. When repopulating the datagrid,...more >>

User Control won't load in the designer
Posted by Donald Hurley at 3/9/2005 6:09:09 AM
I created a user control, some of the controls that it contains make a remote call to get data. If the remote service is not up and running, the control won't display in any form I put it in. In the constructor I have: ScreenHelper.LoadProjectSelect(selProject); ScreenHelper.LoadDamSelec...more >>

Licx SetSavedLicenseKey is not saving for Managed C++ applications
Posted by recoil NO[at]SPAM community.nospam at 3/8/2005 5:51:11 PM
We have a C#.net control that uses licx licensing. The Licx licensing works fine in all applications except for Managed C++ applications. Everything occurrs as normally however at runtime there are no keys saved. This same stuff works fine in C# and VB.NET applications.Is there something that ...more >>

FormWindowState.Maximized + MaximizeBox = False
Posted by progzz NO[at]SPAM hotmail.com at 3/8/2005 11:40:57 AM
Hi All, This is a stupid question but i don't understand it :) I Want a Form that is Maximized at startup and MaximizeBox = False with a FormBorderStyle = FixedSingle Is it possible ? Thanks Dany...more >>

One More Context Menu Question
Posted by snesbit at 3/8/2005 11:15:51 AM
I want to add a separator bar between sections of the right mouse menu. I want the bar to be horizontal to separate a vertical group of menu = items. I've tried the few methods and combinations thereof but can only create = a column separator bar which at the moment I do not want. ie. ...more >>

Adding to an existing MenuItem's MenuItem Collection Dynamically
Posted by snesbit at 3/8/2005 9:37:20 AM
I have a static ContextMenu already built and it works. =20 I am trying to add a submenu (right arrow with a new menuitem list) = dynamically when the popup is created. The new set of menuitems requires some DB queries to be done and then = the menuitems to be added to the Menuitems collecti...more >>


DevelopmentNow Blog