Archived Months
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
February 2008
April 2008
all groups > dotnet windows forms designtime > january 2005

Visual studio 2005 and overpinting
Posted by Dominik at 1/30/2005 5:58:45 PM
I'm devolping conntrol and I have noticed little bug in my control. In design time after IDE displays menus, tips itp over my control it has some lines, points and other pollution left-over after those elements - and I must click on control to invalidate it. Is there any way to auto invalidate c...more >>


Use the Designer of a Windows Control for a Component
Posted by micha NO[at]SPAM nospam.com at 1/30/2005 1:39:51 PM
Hello I want to build a own set of Forms and Controls that are not inherited from the "Windows.Forms." stuff and only are inherited from Component. Some thing like the Shape Designer sample found at. http://www.windowsforms.net/articles/shapedesigner.aspx But I do not want to Build all ...more >>

Visual Deisnger Bug with Long values?
Posted by cody at 1/28/2005 1:26:58 PM
I have a component an IntegerTextBox in which the user can use large numbers. The defaultvalue of the "long MaxValue{get;set;}" property is long.MaxValue. The problem now is that the designer generates the number in the code in the following format: this.tbBelegNummer.MaxValue = ((long)(922...more >>

Persist Collection
Posted by Mike at 1/25/2005 4:55:13 PM
Hi! How can i do to persiste a collection in my WebCustom Control. Im using the attributes DesignerSerializationVisibility(DesignerSerializationVisibility.Content) PersistenceMode(PersistenceMode.InnerProperty), but when run the Web generate an "Error creating Control". Help Me :) ...more >>

How to get actual width in dropdown UITypeEditor?
Posted by Michael Kairys at 1/25/2005 3:44:32 PM
I have a UITypeEditor consisting of a set of owner-drawn buttons. I've implemented it as a UserControl containing a Panel, to which I add the buttons when the control is instantiated. For the neatest appearance I would like to organize the buttons in rows and columns according to the width ...more >>

What control to use?
Posted by E Stafford at 1/24/2005 11:27:36 AM
Can anyone tell me what control to use to allow a user to select a file within a windows form? I need to allow users to be able to browse to and select a text file that will be read into a list box. Thank you ES...more >>

IDE-integrated editor
Posted by Keith Rome at 1/22/2005 12:03:02 PM
I would like to provide a design-time editor for a proprietary file format within VS.NET. I am shooting for an experience not unlike the SQL Reporting Services designer (although MUCH less complex). I can just make a standalone editor utility, but it would be ideal if my editor could be inv...more >>

ComboBox DroppedDown property bug. If set in constructor, WndProc messages are missing
Posted by jrhoads23 NO[at]SPAM hotmail.com at 1/20/2005 2:27:04 PM
I believe I have found a bug in the System.Windows.Forms.ComboBox object. Quick background, there is a ComboBox event for when the drop down list is shown, but not one when it is closed. This is because the ComboBox does not receive any messages when it's drop down list is being closed. It's par...more >>



no moving the windows
Posted by Kenny M. at 1/20/2005 12:47:03 PM
I have a modal winform centered in the middle of the screen and I dont want people to move the window using the mouse. Is there an easy way? ...more >>

TypeConverter in a form property
Posted by João Santa Bárbara at 1/19/2005 9:31:42 AM
Hi all, i´m doing a form to be Inherited, and inside it has a property that i create. that property is one class with several propertys ( simple ones integers and strings ) And in my Inherited form, the property appears there :D so far so good. but i need to edit it. so i have create a...more >>

Scrollable groupbox?
Posted by WWalden at 1/19/2005 8:09:02 AM
I am trying to create a GroupBox control with support for scrolling the inner content and nicer looking borders. How do I go about positioning the scrollbars so that they are inside of my drawn borders? I am attempting to add a child Panel control at design time (from code is a custom desig...more >>

UserControl public child Control does not change child Name to match UserControl Name in Designer Repost
Posted by Gregg Walker at 1/18/2005 12:57:58 PM
You (MSDN) changed the way nospam emails are setup and I was not aware of this. Anyhow I think it's setup correctly now so I am reposting this message looking for a response from MS. I'm having a problem getting the designer to update the name of any public child controls of user control when t...more >>

Update Propertygrid with Verbs
Posted by Avi Dubnikov via DotNetMonster.com at 1/17/2005 7:48:33 PM
I'm updating a simmpe property of my control, using verbs. The value on the property grid is updated as requested. Yet, there's no update to the form's code. How do I force the system to generate the code? -- Message posted via http://www.dotnetmonster.com...more >>

Looking for proper MP3 syntax accessing
Posted by MikeY at 1/17/2005 7:38:48 PM
I am having trouble with and looking for the proper syntax for accessing and renaming MP3 files properties. Example I can access the "Name" property of the file and I can rename the file name to a new name (and do this in mass quantity at once). What I want to accomplish is to gain access and ...more >>

detecting position of control added to CustomControl
Posted by Nadav at 1/13/2005 10:55:02 PM
I've created a GridLayout control that derives from Panel. The control works perfectly. Now I want to allow an option to set some properties of an added control based on where in the GridLayout control it is added (when dragged from the toolbox). I tried testing the Location of the control in ...more >>

ToolboxBitmap in a Resource File
Posted by Adam Dockter at 1/13/2005 8:15:01 AM
I want my custom controls to have customer bitmaps but I can't get them to work if I try to pull the icon from a resource file. I know that I can add the icon to the project as an embedded resource then put the attribute. [ToolboxBitmap(typeof(MyControl),"MyIcon.ico")] That works fine. But...more >>

Suppress PropertyValueChanged event?
Posted by Andrew Sharpe at 1/12/2005 12:51:04 PM
I have my own UITypeEditor and have overrident EditValue. Is there any way for me to prevent the PropertyValueChanged event of the PropertyGrid from firing for my property? I am doing some work inside the EditValue that may mean the change the user made to the property is not accepted, and I...more >>

Can I forbid a class from being browsed in PropertyGrid?
Posted by Andrew Sharpe at 1/12/2005 12:49:05 PM
Is there any way to specify a class as being "unbrowsable" in a PropertyGrid control? I'm aware of the BrowsableAttribute but it only seems to apply to properties. I want to prevent an entire class from being browsed....more >>

Collections Added Twice at Design Time
Posted by Adam Dockter at 1/10/2005 4:01:11 PM
I have implemented a simple collection of objects using IList and put the following attributes on the collection property. [Category("Behavior") ,Browsable(true) ,DesignerSerializationVisibility(DesignerSerializationVisibility.Content) ,EditorAttribute(typeof(CollectionEditor),typeof(UITypeEd...more >>

C++ example for threads?
Posted by Dr. Pastor at 1/6/2005 10:45:12 PM
I would like to find C++ example for creating two or more threads, each with its own window, in a .NET and windows forms environment. (No luck in Code Project.) Thanks for any guidance. ...more >>

Form Background Image in Designer Host
Posted by IMailInterface NO[at]SPAM gmail.com at 1/5/2005 9:10:55 PM
HI, Iam creating Application implementing IDesigner host and facing problem when embedding image in the form.After embedding the image in the form when i compile i get an Error "resource not found".I tried this on the MSDN provided Sample Designer host and it is also giving the same error...more >>

Controlling properties at design time
Posted by AviD at 1/4/2005 5:07:03 AM
Hi, What will be the best way to manage, dynamically, during design time properties of a control. For example, I would like to hide a certain property description, when other property is assigned a certain value. I've tried something like Dim properties As PropertyDescriptorCollection = Ty...more >>

Hide library components from the toolbox
Posted by gerry at 1/4/2005 2:25:51 AM
I have a design time component library containing components some of whihc should be available on the ToolBox and some which shouldn't. The ones that shouldn't are meant solely for use as Properties of other components. When I add the library to the Toolbox , of course all components are added ...more >>

bool - checkbox on design-time
Posted by choyk1 at 1/3/2005 4:47:05 PM
Hi all, How can I show checkbox for bool properties of my custom control in design-time. The usage of 'DesignerVerb' shows just plain MenuItem. I am wondering how TextBox control shows a CheckBox for MultiLine option, for example. (See a TextBox control and its MultiLine option in VS.NET 200...more >>

class property default value
Posted by gerry at 1/3/2005 7:26:09 AM
Using vs.net 2003 , I have the 2 classes defined below compiled into a designtime library and added to the toolbox. If I drop a Ctl object on a form I get the expandable Prop property in the property grid for the control as I expect - similar to the way the Font or Size properties are shown. I ...more >>


DevelopmentNow Blog