microsoft.public.dotnet.framework.windowsforms.designtime
Up to: Discussion Lists

  • RSS Syndication
  • Post a new message to this list...
    Latest Discussions Archive
    Removing a component in design view (4 replies, VIP)
    microsoft.public.dotnet.framework.windowsforms.designtime
    VS Pro 2003 C . I have made a Win Form project with several buttons and a GroupBox for radio buttons. I would now like to remove the Group Box and all its code from form1.h I can make the box disappear by setting the visible property to 'false', but how do I remove the code for it ? Thanks AlexG Math via C
    Design time support for the Control (2 replies)
    microsoft.public.dotnet.framework.windowsforms.designtime
    Dear All, We have created our control (say MyControl) derived from System.Windows.Forms.Control. MyControl contains 3 buttons in it. At design time, when programmer drag drops 'MyControl' from toolbox on his form, MyControl gets added on that Form with 3 buttons added in the MyControl. How application programmer can change the properties of these buttons at design time? (Should I have to add some ...
    How to use DefaultValue attribute with an enum (3 replies)
    microsoft.public.dotnet.framework.windowsforms.designtime
    I have the following code for the property ContentType in class that implements IExtenderProvider public class foo: Component, IExtenderProvider { [System.ComponentModel.Category("Validation"), DefaultValue(typeof(KMS.Core.Forms.Validation.ContentType Enum), "KMS.Core.Forms.Validation.ContentType Enum.String")] public virtual ContentType Enum GetContentType (Control target) { .... } } This code do...
    Visible Property returns wrong value in Designer (2 replies)
    microsoft.public.dotnet.framework.windowsforms.designtime
    Hello I need to get the Visible property of a Control at Designtime. I have wrote a Designer by Inheriting a "Windows.Forms.Design.DocumentDesigner". In side this Class I loop throw the Child Controls of the Form. But the Visible Attrbute always return "true" and not the Value set in the Property Grid. I read that this is done via Metadata Filtering to avoid taht the Control is hidden at the Desig...
    Form does not show (2 replies, VIP)
    microsoft.public.dotnet.framework.windowsforms.designtime
    I am new to VC and I have an issue. If I create a project and place a form on it, it compiles and runs, showing the form. However, when I add a form to some other project, the form does not show even though the host projects runs. Here's what I have: 1. I have a project (just for testing) called HelloWorld and it just prints "Hello, World". 2. I added a form using Project Add New Item then under t...
    Cut/Copy/Paste Forms Designer (9 replies, VIP)
    microsoft.public.dotnet.framework.windowsforms.designtime
    I'm creating a custom forms designer by using IDesignerHost to host components. Adding components from a toolbox works fine and as expected. I'm trying to add other actions though like Cut, Copy and Paste (and Undo/Redo too). I've already implemented Delete by just using StandardCommands.Delete. However, StandardCommands.Cut, etc do nothing. How do I cut, copy and paste controls? Thanks.
    Hide a default property (10 replies)
    microsoft.public.dotnet.framework.windowsforms.designtime
    Is there a way to hide some default property of control? I'm writing my own usercontrol, and I would like to hide some of them. For e.g. the locked property or many other. Thanks in advance Andrea
    Designer is having a hard time with dynamic properties (6 replies, VIP)
    microsoft.public.dotnet.framework.windowsforms.designtime
    Hi, everyone, While trying to be a nice guy and putting my connection string in a dynamic property, VS.NET 2003 decided to test my limits... So I created a minimal test case for your enjoyment. Attached are 2 source files with the code. Basically all I did was add a usercontrol UserControl1, which has a TextBox with its Text property coming from the app.config file. When I open UC1 in the Designer...
    Custom controls in inherited forms (4 replies, VIP)
    microsoft.public.dotnet.framework.windowsforms.designtime
    Hi I have a tab control that was written in my org. It inherites directly from System.Windows.Forms.Control. I use it in a window form (MainForm) and it works just fine. But when I try to create a new inherited form (ChildForm) that inherites from MainForm I can't edit the tab control in ChildForm. I CAN see it, but can't get the desinger to focus on it or any of its tabs (and so I can't add it ot...
    Newbie questions (2 replies)
    microsoft.public.dotnet.framework.windowsforms.designtime
    I am just getting started in trying to create a custom Windows form control in VB .NET. The premise is fairly simple. It's a "shape control" that assumes the shape of its Background Image. The user specifies a Mask Color and that color is rendered transparent, thus making the control the shape of the image (in theory, anyway). I had a version of this working with VB6, but now want to get my feet w...
    Problem with Collection/Property in Usercontrol (2 replies)
    microsoft.public.dotnet.framework.windowsforms.designtime
    I want to use a collection of controls in a usercontrol. It should work like the built in toolbar, that means i want to add and remove buttons with the designer. my problem is that the designer does not save settings within my collection the entries stay in the generated code but when i run the project or reload the source my property shows up empty. I also noticed that I would need a 'add' the in...
    Custome Form Designer: How to implement undo/redo (2 replies, VIP)
    microsoft.public.dotnet.framework.windowsforms.designtime
    Hi, I got the sample code "DesignerHost" from "INFO: Code Sample That Demonstrates How to Create a Custom Form Designer by Using Visual C# .NET" http://support.microsoft.com/default.aspx?scid kb;en us;813808. The sample code has no these features "copy, cut, paste, undo and redo", I wanna implement them. After seaching on internet, I got the result" to implemnt copy, cut, paste, you must implement...
    Custom properties don't show on Properties Window (2 replies)
    microsoft.public.dotnet.framework.windowsforms.designtime
    Hello, I'm beginner .NET developer, working on C#. Trying to create custom property for the main form of a project. This property should be be visible on Properties Window so I'm using [Browsable(true), EditorBrowsable (EditorBrowsableState.Always), Description ("Some Description"), Category ("Custom")] After rebuilding this property still not shown in Properties Window. Can anybody tell me why is...
    User Controls Property VS .resx files (2 replies)
    microsoft.public.dotnet.framework.windowsforms.designtime
    Hi all, I have a simple question here. I developed a user control which inhreits from the UserControl class. I exposed an custom property and then build the project. In another project, I added this control to a Window Form, set that property to a value, save and build the project. Everything gone well. However, after I close the Form and open it again, the property is reset to the default value. ...
    Problem with property persistence (3 replies)
    microsoft.public.dotnet.framework.windowsforms.designtime
    I have created a Component that implements IExtenderProvider. It provides several properties to the controls on the form. It appears that everything is working as desired except for persistence. If in design time, I set a value of one of the properties provided by the extender, it sets and the resulting change is made to the InitializeComponent code. If save the code and design view and then close...
    TypeDescriptor.GetConverter (2 replies)
    microsoft.public.dotnet.framework.windowsforms.designtime
    I'm getting different behavior from what I would expect and was hoping someone could clue me in. At run time I need to examine a property of an object for a custom TypeConverter, then use that converter on a value. Here's the deal: object[] attrs (object[])PropertyInfo.GetCustomAttributes(typeof(TypeConverterAttribu te),false); TypeConverterAttribute a (TypeConverterAttribute)attrs[0]; Type t Type...
    Relative path for <value> of .resx data element (ResxFileRef) (2 replies)
    microsoft.public.dotnet.framework.windowsforms.designtime
    In my .resx file (below) I wish to reference an external bitmap that is located in my project's folder. When I try to compile the project I get an error on my .resx file: Resource transformation for file 'Images.resX' failed. Could not find file &quot;C:\Program Files\Microsoft Visual Studio .NET 2003\Common7\IDE\TEditButton.bmp&quot;. It seems like the resource compiler has a base path set to the vs.net's ...
    Hosting Windows Forms Designers (4 replies, VIP)
    microsoft.public.dotnet.framework.windowsforms.designtime
    Hi, We are developing an application in which the user can design their own GUI. Basically we need to give the User similar functionality to that in the Windows Forms designer in VS.NET. So far (following the examples given on Tim Dawson's website http://www.divil.co.uk/net/articles/designers/hosting.asp) we've got it up and running so the User can drag controls onto the design surface. My questio...
    error when trying to add inherited form (2 replies, VIP)
    microsoft.public.dotnet.framework.windowsforms.designtime
    Hiya, I get an error when I try to add a particular type of &quot;inherited form&quot; to my app. I try to add it thru the following steps: 1) right click the selected project 2) Add 3) inherited form error An exception System.ExecutionEngineException has occurred in the default domain \error The debugger chokes in the following lines of a Utility.vb class: code For Each attr As System.Attribute In type.Get...
    collection editor hangs for 3 seconds when loading (3 replies, VIP)
    microsoft.public.dotnet.framework.windowsforms.designtime
    I have a collection editor hanging off my column collection. The collection editor seems to be working fine. However, every time I bring it up, for the first 3 seconds or so it feels like it is 'hanging' where I can't do anything in it. While this is not a showstopper for me by any means, it would still be nice to find out why. Anyone else experienced this or know why it might be happening?
    Changing Browsable attribute of a property at runtime (2 replies, VIP)
    microsoft.public.dotnet.framework.windowsforms.designtime
    How do i make a property of an object(linked to Prfoperty Grid) browsable or non browsable depending up on some conditions at runtime? From: Pradeep P.C Posted by a user from .NET 247 (http://www.dotnet247.com/) Id YvCiPxP7B0qpbQHR1rtQ3g /Id
    Desginer host sample by MS (2 replies, VIP)
    microsoft.public.dotnet.framework.windowsforms.designtime
    Hi Marc, Have you seen this? It looks like a good starting point for hosting either the windows forms designer or the VG.net designer outside of VS. I know enough about the internals to get some of the interfaces implemented better but I cannot believe I never saw this sample. It really works! http://support.microsoft.com/default.aspx?scid kb;EN US;813808 Maybe we will build an external VG.net des...
    Designer uses wrong ctor on CF (2 replies)
    microsoft.public.dotnet.framework.windowsforms.designtime
    Hi, I'm currently writing an own control for the .net compact framework. It overrides the Font property: public override Font Font {get..set} That works pretty well except if I select a font with regular style, because the Designer persists the property value to code like that: this.myControl.Font new System.Drawing.Font(&quot;Tahoma&quot;, 14F); That's perfect for Windows applications, but Compact Framewor...
    Transparent Controls (2 replies, VIP)
    microsoft.public.dotnet.framework.windowsforms.designtime
    Hi all, I have develop some compontents with transparent property. I can do it partially, when there is only a parent container under it. When there are other control behind it, the tranparent control on the top only paint the parent background on it, and ignores the other controls' background under it. Can anyone give me some hints to solve this problem? One more question, if the transparent cont...
    ANN: SharpLibrary 1.44 Released. (7 replies)
    microsoft.public.dotnet.framework.windowsforms.designtime
    Version 1.44 of the SharpLibrary has been released. A new update to our library has been released. Main highlights of this update: Six new controls have been added: AutoCompleteComboBox, AutoAppendComboBox, ButtonTextBox, ButtonComboBox, ButtonDomainUpDown, ButtonNumericUpDown. These controls are our answer to several features requested by our customers. These new controls brings the count of cont...
    changing backcolor of tabcontrol (4 replies, VIP)
    microsoft.public.dotnet.framework.windowsforms.designtime
    I have to change the BackColor of a TabControl. therefore I have overriden the onPaint Method of TabControl like this: Rectangle rectangle new Rectangle(0, 0, this.Width, this.Height); SolidBrush brush new SolidBrush(Color.YellowGreen); e.Graphics.FillRectangle(brush, rectangle); the problem is now, that the tabs in my TabControl are not visible anymore, because they have also the color YellowGree...
    How to get the parent form? (6 replies, VIP)
    microsoft.public.dotnet.framework.windowsforms.designtime
    I want to get a reference to the parent form in the constructor of a child form? I.e. I want to do something like this : FormX Child new FormX(); //FormX inherits from the Form class In Child's constructor I want find the parent form? I've tried .Parent and ..FindForm() to no avail! Reason for wanting to do this is so that a parent form can keep a list of all it's child forms. So whenever a child ...
    Custom component problem - ANY help appreciated (3 replies)
    microsoft.public.dotnet.framework.windowsforms.designtime
    I'm writing a .Net component in C#. Let's name it component A. This component represents a collection of other .net components ( component B ) that are not visible design time in VS 2003. Component B provides several events. I take advantage of the .net Collection Editor and the addition and removal of those components (B) is done only through component A's property that returns the collection of ...
    non-resizable control (5 replies, VIP)
    microsoft.public.dotnet.framework.windowsforms.designtime
    Hello, How can I disable resizing for a custom control in design time? TrackBar control, for example cannot be vertically resized. Thanks, Victor
    what control designer does TabControl use? (5 replies)
    microsoft.public.dotnet.framework.windowsforms.designtime
    I need to inherit from it so I can remove access to a few properties in the designer. If I use a designer inherited from ParentControlDesigner I lose design time mouse events. Bob
    User Control Constituents As Containers? (2 replies)
    microsoft.public.dotnet.framework.windowsforms.designtime
    I am designing a user control that is made up of several constituent controls (Panels to be precise). Basically, my user control is made up of 4 Panels that I am using to define a very specific layout. The goal is to add this &quot;Layout Control&quot; onto a form and then to drop certain controls directly into the different Panels (for docking or anchoring) during design time. Unfortunately, when a control...
    IExtenderProvider: How can I change property name? (3 replies)
    microsoft.public.dotnet.framework.windowsforms.designtime
    I have a class, let's call it ExtenderComponent, that implements IExtenderProvider. It Extends a property called ImageIndex via CanExtend, GetImageIndex, and SetImageIndex. What I want to do is on the component that it is extended to (extendee), have the property simply read 'ImageIndex', rather than 'ImageIndex on ExtenderComponent1'. Is there any way to do this? I was thinking about using Proper...
    How to suppress message "you must rebuild your project..." in task list? (3 replies, VIP)
    microsoft.public.dotnet.framework.windowsforms.designtime
    Hi, I sometimes get the following task show up in the task list: &quot;You must rebuild your project for the change to MyApplication.MyForm to show up in any open designers&quot; It is irritating that the task list shows up with that message. Is there a way to suppress this task? Thanks in advance. Regards, Jeroen
    control throws exception at design time (2 replies, VIP)
    microsoft.public.dotnet.framework.windowsforms.designtime
    I create a new control (derived from Control, not UserControl). The OnPaint method is driven by application data. In other words when the application is running it passes the data to the control, and the control does the painting. When I drag the control to a form in the VS designer, that data has not yet been supplied, so VS throws a nullReference exception. (VS draws a white box with a red borde...
    Problems with codeDom and IsupportInitialize (2 replies, VIP)
    microsoft.public.dotnet.framework.windowsforms.designtime
    Hi ! I created a new component for my project. One of the properties of this component is a collection of a class created by me, I called this class &quot;UmaTabela&quot; The class (each element in collection) has two properties, one of them is another class, created by me. I called this class as &quot;Mapeamento&quot;. I used desinertimeserializationvisibility in collection property, and I created a typeConverter to...
    Problems with IsupportInitialize and CodeDom (2 replies)
    microsoft.public.dotnet.framework.windowsforms.designtime
    Hi ! I created a new component for my project. One of the properties of this component is a collection of a class created by me, I called this class &quot;UmaTabela&quot; The class (each element in collection) has two properties, one of them is another class, created by me. I called this class as &quot;Mapeamento&quot;. I used desinertimeserializationvisibility in collection property, and I created a typeConverter to...
    Designer serialization samples? (2 replies)
    microsoft.public.dotnet.framework.windowsforms.designtime
    I look for a sample on how VS serialize/deserialize a Form in the designer. So If a was making an IDE how could I serialize/deserialize a form... Anyone have a sample to start from? Thanks, Schneider
    DataGrid question (3 replies)
    microsoft.public.dotnet.framework.windowsforms.designtime
    I am just trying to figure out what Microsoft thinks is orthodox with regard to getting totals in a datagrid. That is, let's say I have a datagrid with an amount column in it and at the bottom of the grid I want a total for the Amount column. Is the datagrid designed in such a way as to provide a total column or field by some magic or do I need to add a text field below the grid that contains an e...
    Updating Properties Window at design-time (2 replies)
    microsoft.public.dotnet.framework.windowsforms.designtime
    I have a control designer that is manipulating my control through the use of a verb on the property window. Everything works fine except for the fact that the property that I am modifying is not updated to its current value until the user clicks on the property in the Properties windows. Is there a way to refresh the properties window from within a control designer? Thanks Jamie
    My controls keep dissapearing! (3 replies, VIP)
    microsoft.public.dotnet.framework.windowsforms.designtime
    I have a c# solution containing the following projects a windows form control library containing some custom windows form controls a windows form app with forms containing these controls (with a local solution reference to the controls proj) Randomly(?) the designer will just wipe these controls off the form (it will even try and check the form out to do the damage! if it already is then its usual...
    Urgent Problem in adding Events tab to propertygrid (2 replies)
    microsoft.public.dotnet.framework.windowsforms.designtime
    Hi, I am making a form designer. It is same like VS.net IDE. I am facing difficulty in adding Eventstab to propertygrid control. In some forums it is mentioned that just assign some Site to sIte property of propertygrid and then just do grid.propertytabs.addtabtype(typeof(eventstab),PropertyTabScope.Component)); but this is not working ......... can any body help..... rgds Gurjinder
    Edit addButton and removeButton in CollectionEditorForm (2 replies)
    microsoft.public.dotnet.framework.windowsforms.designtime
    I implemented a class that inherited the System.ComponentMode.Design.CollectionEditor. It's has two buttons addButton(Insert) and removeButton(Remove). I want to change their Enable property to false. How can I try for it? Reference) I can control their Visible property to false.
    Problem: Assemblies cannot be replaced at VS designtime (2 replies)
    microsoft.public.dotnet.framework.windowsforms.designtime
    Hi, is it possible to copy assemblies from the original place in the solution to another place in the file system and then at Visual Studio designtime, in order to create an instance descriptor for a property for code serialization in InitializeComponent loading them from there (in order to reflect them); and then compile the same solution? Background: Sometimes I have some compiler errors that dl...
    Changing DragDrop target from parent to child control (12 replies)
    microsoft.public.dotnet.framework.windowsforms.designtime
    Given a UserControl that has been added to the VS.Net Toolbox, how does one force controls to &quot;drop&quot; (be added to) a child control that is wrapped by the user control? For example, the UserControl contains two Panels, and the desire is to force controls &quot;dropped&quot; on the UserControl to be added to the &quot;bottom&quot; Panel. I have the OnDragOver () working in a ParentControlDesigner implementation, but th...
    Collection editor for user-defined class (5 replies)
    microsoft.public.dotnet.framework.windowsforms.designtime
    Hi all, what do I have to do to use the collection editor of the property grid for my own user defined classes? I should work at runtime and at designtime. Especially, I want to derive my own TabPage class and TabControl class. Thanks, Bernd
    Assembly object reference at design time... (11 replies)
    microsoft.public.dotnet.framework.windowsforms.designtime
    I have two assemblies. Assembly1 is a DLL that has a custom control with a property of type System.Type. Assembly2 is an EXE that has a form with an instance of that control on it. In the Properties of that control, I want a custom drop down to display all types in Assembly1 that extend Form. I have extended UITypeEditor as per usual but I'm having a lot of trouble finding an Assembly object refer...
    Please help: Serious problems with code generation of user controls (9 replies)
    microsoft.public.dotnet.framework.windowsforms.designtime
    Hi, we have a big problem with re using a user control as component inside another user control. The Visual Studio designer often generates code for the *inner* user control in InitializeComponent of the *outer* user control. But this code was already generated in the InitializeComponent method of the *inner* user control. Because of this code is generated and executed *twice* (once in the inner, ...
    inherited form (8 replies)
    microsoft.public.dotnet.framework.windowsforms.designtime
    i have a generic form with alot of controls on it, when i inherit a new form, i can not see the design of my new form on the visual studio and get an error on designtime. Error is: The designer could not be shown for this file because none of the classes within it can be designed. The designer inspected the following classes in the file: form2 The base class 'form1' could not be loaded. Ensure the...
    How to disable user self input into ComboBox? (3 replies)
    microsoft.public.dotnet.framework.windowsforms.designtime
    Hi, how do I make sure that user select only the options available in a ComboBox. In other words, I do not want want them to key into the ComboBox themselves. Thanks Shelby
    Component Tray (3 replies)
    microsoft.public.dotnet.framework.windowsforms.designtime
    Hello all, I've searched around and can't seem to find a solution to this. I have a component that builds a tree of controls / components that are placed on a form. The walking the controls was easy and is working great. The problem is the components in the ComponentTray. I've added multiple Save File Dialogs, Open File Dialogs, Font Dialogs, etc... When I create an instance of the component tray,...
    Visit the archive for messages from this site.
  • June 2002 (14 items)
  • July 2002 (20 items)
  • August 2002 (36 items)
  • October 2002 (65 items)
  • January 2003 (45 items)
  • February 2003 (27 items)
  • March 2003 (53 items)
  • July 2003 (63 items)
  • January 2004 (104 items)
  • February 2004 (43 items)
  • March 2004 (13 items)
  • April 2004 (43 items)
  • May 2004 (25 items)
  • June 2004 (25 items)
  • July 2004 (15 items)
  • August 2004 (41 items)
  • September 2004 (5 items)
    Ad
    MBR BootFX
    Best-of-breed application framework for .NET projects, developed by Matthew Baxter-Reynolds and MBR IT
     
     Copyright © Matthew Baxter-Reynolds 2001-2008. '.NET 247 Software Development Services' is a trading style of MBR IT Solutions Ltd.
    Contact Us - Terms of Use - Privacy Policy - www.dotnet247.com