all groups > dotnet windows forms designtime > august 2004
How to use DefaultValue attribute with an enum
Posted by Roy Chastain at 8/27/2004 12:01:13 PM
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.Valida... more >>
Problem with property persistence
Posted by Roy Chastain at 8/26/2004 10:46:23 AM
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... more >>
TypeDescriptor.GetConverter
Posted by kw at 8/22/2004 8:23:22 PM
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(... more >>
How to type directly into a TextBox (or Label) at design time?
Posted by alex at 8/22/2004 8:17:13 PM
I am developing an application which imitates a form designer. Basically, I
implemented IDesignerHost and all other required services.
Everything works great, but my customers aren't very happy. They don't
appreciate the power and beauty of the PropertyGrid. For example, they want
to be able t... more >>
Custom properties don't show on Properties Window
Posted by Walter Schmidt at 8/20/2004 12:41:13 AM
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 Descripti... more >>
Cut/Copy/Paste Forms Designer
Posted by schellhase NO[at]SPAM inspecttech.com at 8/19/2004 1:20:49 PM
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.... more >>
Newbie questions
Posted by Dave Sours at 8/16/2004 3:56:26 PM
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... more >>
Designer uses wrong ctor on CF
Posted by Roland Dick at 8/16/2004 3:34:35 PM
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:
thi... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
ANN: SharpLibrary 1.44 Released.
Posted by Forums at 8/14/2004 11:12:55 PM
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 co... more >>
Transparent Controls
Posted by Tony at 8/13/2004 11:50:53 PM
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 u... more >>
Custome Form Designer: How to implement undo/redo
Posted by Tian Qiang Chen at 8/13/2004 4:26:51 PM
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 imple... more >>
Hosting Windows Forms Designers
Posted by Wesley Yates at 8/11/2004 6:11:54 PM
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/desi... more >>
collection editor hangs for 3 seconds when loading
Posted by Allen Anderson at 8/8/2004 3:07:33 PM
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 ... more >>
Custom controls in inherited forms
Posted by roeegr NO[at]SPAM hotmail.com at 8/6/2004 12:18:23 PM
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 Chil... more >>
Problem with Collection/Property in Usercontrol
Posted by Marc Fauser at 8/6/2004 12:03:10 PM
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 th... more >>
error when trying to add inherited form
Posted by chris yoker via .NET 247 at 8/6/2004 1:45:22 AM
Hiya,
I get an error when I try to add a particular type of "inherited form" 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
<\e... more >>
Hide a default property
Posted by Andrea Moro at 8/3/2004 2:59:15 PM
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
... more >>
DataGrid question
Posted by Woody Splawn at 8/2/2004 2:43:53 PM
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... more >>
|