Windows Forms Designer - Windows Forms
Recent update: 2008-3-21

drag drop usercontrol

732 byte By codefund.com at 2008-3-7
hi everybody,we developed some usercontrols with their designers and putted them into toolbox.And we also develop a custom document with its root desginer.we have collection object in custom document that holds these usercontrols. we wrote event handlers for drag-drop operation in document's ...

property grid item collection

355 byte By codefund.com at 2008-3-6
hi,we want to develop a property grid item on the property browser like treeview's node property ( has a browse button that opens a new editor).is there any special name for this kind of property? we think that this kind of property takes collection.can we access the .net built-in editor like ...

Windows XP and Data Grid control

467 byte By codefund.com at 2008-3-5
Does anyone know if there is a way to obtain an XP Themed data grid column headers? Should I inherit the DataGridTableStyle class and override the paint or something (which I don't think you can do). I want to acheive the effects you get like column header hovers, left aligned sort indicators. ...

Owner-drawn TabControl...

712 byte By codefund.com at 2008-3-3
Hi, CodersI have very strange problem!I am deriving my own class, inherited from TabControl.I need to make my own painting, so I wrote that:SetStyle(ControlStyles.AllPaintingInWmPaint, true);SetStyle(ControlStyles.UserPaint, true);SetStyle(ControlStyles.DoubleBuffer, true);Then proccessing the ...

Multiple MainMenu problem

410 byte By codefund.com at 2008-3-1
I have a Form with 3 MainMenus on it. I am trying to make as follows: foreach menu in "MenuCollection" menu.some_method My Problem is that I do not know where the "MenuCollection" is. I cannot create the collection manually. I know that all controls on a Form are in ...

Does it really exist? (System.ComponentModel.Design.ComponentDesigner)

1272 byte By codefund.com at 2008-2-28
I know it seams stupid to ask this question, but I have some problems using the class mentioned above.I was learning how to create control designers, I am using the .NET framework 1.1 Final Beta, and Microsoft Visual Studio .NET 2003 Final Beta, I've created a new class and I was trying to ...

custom code generation,designers

533 byte By codefund.com at 2008-2-27
hi,we develop an "addin project". we want to generate a new project item like as XSD Schema.our intention is to provide a view which is similar to xml schema document template. we want to drag-drop user controls from toolbox on to this document view , on the code part like xml-schema ...

expandable property in property window

515 byte By codefund.com at 2008-2-26
hi, i generate a user control and i could add into toolbox. i added some new properties to the user control. but i want that these properties can be expandable into property browser. for example: "size" property of any form control has two sub properties as "width" and ...

Dynamic User Controls, Custom Properties

3100 byte By codefund.com at 2008-2-25
I created a User Control under VB.net and I want to add the control dynamically. Thats all working. I get the control added and I have managed to access the standard properties, however I am not able to access the Custom Properties I have defined on my User Control. It has to do with the way I ...

File copying

610 byte By codefund.com at 2008-2-24
Hello all!I'm new to .NET development, and had a question dealing with file copying....I need to create an object which will contain a file (document).I need this class object to pick up a file given a full file path, and copy the file from the source system to the class object.I wasn't sure ...

serializing object to resources across versions?

2771 byte By codefund.com at 2008-2-23
I am trying to implement an object which gets saved to the resources for the form at design-time and loaded back into a property for a custom control. That is not a problem; using the DesignerSerializationVisibility attribute with DesignerSerializationVisibility.Visible on the property in the ...

COM Interopt - is it all STA or single threaded?

384 byte By codefund.com at 2008-2-22
Question - I'm using the "AxWebBrowser" component and it's requiring that I create the instance using the STA model in my Main() method for my hosting WinForm.Are all Interopt compoenets STA? And if not is there a way that I can either:A) modify the compoent so that I can use MTAB) ...

Enter/Leave events on a panel

523 byte By codefund.com at 2008-2-22
Why does'nt the enter and leave events fire when I click on a panel? InitializeComponent() { //do some stuf this.panel1.Enter += new System.EventHandler(this.panel1_Enter); //do some more stuff } private void panel1_Enter(object sender, System.EventArgs e) { //Do some important stuff } Anyone ...

Hiding Inherited Control's Properties

403 byte By codefund.com at 2008-2-21
Is this possible?I'd like to inherit from a control so i can reuse some of it's base functionality, but override other parts. I tried using Shadows and creating a property over one that already existed, but the WindowsForms designer cried about the property not being there, so is there an ...

cloning a listview

1190 byte By codefund.com at 2008-2-20
I have been looking for a listview(view = details) with multiple line support in one row. Another approach would be like the listview presented in windows XP's 'Add or remove programs'(the effect that the one selected becomes visibly larger). I cannot seem to find any of these two, and ...

Client Area

676 byte By codefund.com at 2008-2-20
Why is it that with Windows.Forms controls, we only have access to the Size of the Client Area but not the Top, Left offset ?I've been trying to subclass a TextBox and add a Button on the Left and Right side of the text, but there it does not work for the left button which is ALWAYS rendered ...

IExtenderProvider and Design Time Attributes

410 byte By codefund.com at 2008-2-20
How do I apply design time attributes to my IExtenderProvider class's properties that it's providing? Do I put the attributes on the Get or Set method, or is there another way? I have an IExtenderProvider that provides a property thats a collection. I want to apply the ...

addition date

311 byte By codefund.com at 2008-2-19
I am using VB.NET windows forms.I have problem with addition(+) between startdate and enddateI want to show value to total how many dayexamplestartdate =#01/01/2003#enddate =#02/05/2003#totaldate = startdate+enddatewhat is sum value totaldate?Can any one ...

Access Keys do not display correctly

299 byte By codefund.com at 2008-2-18
When I add access key functionality to my menus I don't see the access key underlined in the menu until I press the ALT key. The access keys work just fine, and they even display correctly after pressing the ALT key. But, I want the access keys to be visible prior to the ALT key being depressed.

Borders around ScrollableControl

266 byte By codefund.com at 2008-2-17
Hi! I'm trying to create a new control deriving from ScrollableControl. Now I'd like to add a nice 3d-border around the entire control, but I can't seem to limit the area that the autoscroll feature uses so that it doesn't include the border. How do I do this?

Subclassing DateTimePicker to support DBNull values

706 byte By codefund.com at 2008-2-16
My table is designed to support Nulls in the datetime columns.So I've subclassed the DateTimePicker and added the following code...public new object Value{ set{Type t = value.GetType();if (t == typeof(DBNull)){base.Value = base.MinDate;}else{base.Value = (DateTime)value;}}get{if (base.Value == ...

MessageBox problems

1070 byte By codefund.com at 2008-2-15
I am developing an application that contains an error database. This contains a list of error numbers, names and text associated with them so knowing an error number can show a MessageBox with the name and text in it.The problem is that it doesn't recognise '\n' as a new line, instead it ...

Debugging a VB.NET "Windows control"

842 byte By codefund.com at 2008-2-15
Hi,I created a simple "Windows control", with a few properties, in VB.NET (VS.NET Professional). To be able to debug my control, I added a new "Windows Application" project. I added my "Windows Control" to the references section of the new "Windows ...

Windows XP and MainMenu control

373 byte By codefund.com at 2008-2-15
My MainMenu control is not rendering correctly on windows xp (with the newer shell controls). Buttons, status bar, the drop downs themselves all render properly just not the actual main menu bar. It renders with the control control instead of the menu color. Is there something I'm doing wrong ...

Preventing OnDrawItem from being called?

1053 byte By codefund.com at 2008-2-15
in an inherited TabControl that's being ownerDrawn, is there any way to prevent OnDrawItem from being called when the width of the control is changed? essentially i need the tabstrip to stay the same but im changing the width of the control for the needed functionality (animated sliding ...

Site Property

388 byte By codefund.com at 2008-2-15
Is it that the Site Property of a Component is not available at Runtime.Actually I have developed a custom Control and placed it on a Windows Form.In one of the properties of the Control I have used this.Site.Name = .....But whn I run the application it gives me a NullReferenceException saying ...

a control that looks like VS.NET toolbox

181 byte By codefund.com at 2008-2-14
How can i create this kind of control? Or where kan i buy it? I have tried to make something that looks like the Visual Studio toolbox. But i cant get it right! Please help!

Creating a Textbox in VS with Object Automation

966 byte By codefund.com at 2008-2-14
I have used the sample in Microsoft Visual Studio .NET Automation Sample: Windows Forms Automation Add-in : http://msdn.microsoft.com/vstudio/downloads/samples/automation.asp just to create an add-in to produce a project with one specific winform, where you can create any controls. I can create ...

is there any way to force a control to receive focus?

115 byte By codefund.com at 2008-2-13
i have a custom control inherited from panel and i need to be able to handle Enter/Leave events for it..any idears?

refresh() method

132 byte By codefund.com at 2008-2-13
Whye does the refresh method cause the controls on the panel to "shake" and flimmer? Anyone have a solution for this?

Problem Implementing IButtonControl

1806 byte By codefund.com at 2008-2-12
I have a control which acts like a button in some regards, now to recieve information on when a control is the default button the SDK says to implement the IButtonControl which I did. The problem is that if I place three of my button controls on a form and then set the second one placed on the ...

Custom checkbox and radiobutton control

493 byte By codefund.com at 2008-2-11
Hello! I am looking for a custom radiobutton control and a custom checkbox control for my application. The primary feature I am looking for is the ability to manipulate the color of the checkmark within the checkbox and the color of the dot within the radiobutton. Has anyone seen controls like ...

TabControl question...

301 byte By codefund.com at 2008-2-10
just a thought ..but is there any to make individual tabpages use windows XP style icons? [32bit with 8bit alpha] ..a couple of my developers are wanting to use the new style icons on a tab control and i don't really want to write a custom tabcontrol just to add support for the icons...any ...

How to detect tab selection changed event in TabControl

295 byte By codefund.com at 2008-2-10
I tried adding handler to handle the click event in the TabControl, it works but only when you use the mouse to select the tab. Since there are other means to select a tab in a tab control liked using the arrow keys or mouse. Is there a single event that I can capture for tab selection changed?

Custom Control Icon

296 byte By codefund.com at 2008-2-8
Hi!! I have make an custom Control that inherits from textbox and adds it severar validation functions and maskedit. Now I want to add a icon to this control to showit in the IDE ToolBox and add it to forms in design graphical mode. How can I add a "toolbox Icon" to my control?

Custom Contro Icon

296 byte By codefund.com at 2008-2-8
Hi!! I have make an custom Control that inherits from textbox and adds it severar validation functions and maskedit. Now I want to add a icon to this control to showit in the IDE ToolBox and add it to forms in design graphical mode. How can I add a "toolbox Icon" to my control?

Hosting WinForm Controls in VB6

385 byte By codefund.com at 2008-2-7
I want to know if anyone has ever successfully hosted a .NET WinForm control in a Visual Basic 5.0/6.0 Form?I have seen code posted that does register the control as an ActiveX control via adding a few extra registry keys, and as a result these controls are available in the Visual Studio ...

Syntax Highlighting

339 byte By codefund.com at 2008-2-7
How would one go about adding syntax highlighting support for a new file type in VS.NET? It's basically C# with template support (ASP style tempates). If I can't add a new file type can you associate a file extension with another language (i.e. have the editor have .cs and .somethingelse be ...

floating Toolbar (ie IDE)

323 byte By codefund.com at 2008-2-7
Hello everybody!Has anybody some experience with floating toolbars?Is there a way to create toolbars like the ones that the IDE uses?I wrote a custom control that simulates the same behavior, but it doesn't look as good as the "real" thing (and has still some minor bugs too).Any ...

User Control (text box), Null values, Formatting

2985 byte By codefund.com at 2008-2-7
I am trying to create a textbox control which will handle null values (see 1 below) and retain the ability to be formatted using Binding.Format (see 2 and 3 below). My User Control is in Number 1 below. When I use the 'Shadows Property Text' function, I loose formatting on the control. The ...

VS.NET Toolbar

123 byte By codefund.com at 2008-2-6
I've created a VS.NET Add-in, pretty easy, but is there an easy way to create a VS.NET Toolbar? Is it even possible? Thanx

.NET Magic TabControl Help

834 byte By codefund.com at 2008-2-6
I’m playing with the Magic .NET UI [ http://crownwood.net] TabControl, and I'm stuck on something. I'm creating new tab pages programmatically, and each page has a richtextbox as it’s only control. My question is: how do I access the members of my richtextbox from the mainmenu of my mainform. ...

How To Article for ControlDesigner?

57 byte By codefund.com at 2008-2-5
Where can I find a How To article on the ControlDesigner?

DesignerVerbs

66 byte By codefund.com at 2008-2-5
Is it possible to add sub-menus to items added to the VS.NET menu?

Custom HostDesigner Implementation

1110 byte By JoseFuentes at 2008-2-4
.NET 1.1Ok, I got a custom host designer implementation. I have run into an issue.I have a form with controls in it, I save the form as a dll and I use it as a template in my host designer. When I load it up, and when the code hits the designer(intialize) bit then all the controls seem to hit ...

Implementing auto-hide feature

214 byte By aragon at 2008-2-4
<font size="2"> I have a tree-navigator in my C# mdi form and would like to add the auto-hide feature (which can be found in vs.net development environment) to it. Does anyone have any ideas about it? </font>

VS 2005 Toolbox Refreshing

434 byte By Gravy at 2008-2-4
Hi,I have noticed that the toolbox in VS 2005 contains a tab for every projects in my solution that contains a component derived class. During builds of the solutions each of these tabs are being refreshed / rebuild and it can take a little time.Is there anyway of stopping this refresh, or is ...

Toolstrip usercontrol

316 byte By Rada at 2008-2-4
I have a toolstrip user control with some items (already added). When i add this toolstrip user control to a form in my App, the items don't appear on the form but show up when i run the App (this behavior is inconsistent). i guess its still a WIP coz its in beta 2, hopefully this gets fixed ...

Obsolete properties from forms designer

560 byte By PeterToye at 2008-2-3
Just installed Beta 2 of VB Express, having been using beta 1. Now getting warning messages about obsolete property AutoScaleBaseSize. But this is in the Designer part of the VB - which (in theory) I shouldn't mess about with. How can I get it to put in the correct property (which the error ...

Can you "refresh" the property browser

933 byte By j2associates at 2008-2-3
Hello All,I am extending a Window's control by adding a new Public Property named AltText which will replace the Text property in certain run time situations. At Designe time, I want to update the Text property with AltText if it is changed. AltText shows up correctly in the Property browser ...