all groups > dotnet windows forms designtime > march 2005
Filter by week: 1 2 3 4 5
User Controls
Posted by Chris at 3/29/2005 11:21:27 AM
Hello,
I've taken a button component and extended it's functionality by adding a
couple small methods and properties. This control is contained within my
project tree and has been used on various locations of my form. Now, I want
to add another property to the control. In doing so I had hop... more >>
Control receiving Drag-Drop events at Design Time?
Posted by Özden Irmak at 3/28/2005 4:14:39 PM
Hi,
I have a custom control which works on a custom Design-Time surface in my
application which is created using IDesignerHost and other necessary
interfaces...
I need this control to receive drag-drop notifications...I tried several
approaches like applying my custom controldesigner to ... more >>
How to specify an icon for component in toolbox?
Posted by Frank Kwong via DotNetMonster.com at 3/28/2005 12:00:00 AM
I am making a simple non-visual component and I can load that into the
toolbox such that the test WinForm application can drop it into the form.
The default icon for this component is a "gear" when I added that to the
toolbox. How can I change it to the icon of my choice and how can I create
a t... more >>
How to build a Design Time PropertyGrid
Posted by Frank Kwong via DotNetMonster.com at 3/26/2005 12:00:00 AM
My goal is to build a non-visual custom component with a PropertyGrid like
the TableStyles property of the dataGrid as a Design Time data input tool.
I got as far as the following ?
System.Collections.ArrayList rsource = new System.Collections.ArrayList();
public ArrayList Source1
{
get {ret... more >>
#if RELEASE
Posted by Franck Diastein at 3/23/2005 4:38:15 PM
Hi,
I'm making some User Controls, and one custom control depends on another
custom control...
So , I have something as this in UserControl1
text1.text = UserControl2.MyFunction("myparameter")...
If I launch the app, it works fine, but if I go to the form where both
User Controls are... more >>
Property of type System.Type to set at runtime
Posted by Patrice Lamarche at 3/22/2005 1:41:45 PM
Hello everyone,
I have a property un my form i would like to set a design time ... and
the type of the property is System.Type.
I'm trying to do it with an UITypeEditor but it fail to set my value...
I'm able to list all the Type I need but when I select it it fail.
Thanks alots i... more >>
Dialog Component
Posted by Nice Chap at 3/22/2005 10:22:20 AM
Can I make a custom form to act like a dialog component (something like
FileOpenDialog)?
I have set the following attributes to my form without any success:
<ToolboxItem(True), Designer(GetType(ComponentDesigner))> _
Public Class MyDialogComponent
When I drop the dialog component onto a... more >>
how do you inherit 'Locked' property of a base form
Posted by Danny Miller at 3/21/2005 7:19:02 PM
Hello,
Can someone let me know if it is possible to create a base form and set the
Locked property to True, and then have all derived forms also inherit the
Locked property.
Currently if I try to do such a thing, the base form sets Locked to True but
in the derived forms, this property i... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
design time wizard
Posted by Adrin at 3/19/2005 12:30:29 PM
How do I display a wizard when a component is dropped on the form the way
DataSet does?
The wizard needs to be displayed before adding the component to the designer
so that the user can choose some options for the component.
... more >>
closing and opening window forms
Posted by Sarah Karim via .NET 247 at 3/18/2005 10:57:26 PM
I am making a multi windows-form application where the parent=
form is the login form=2EI want every current form to close when I=
go on to the next form and not hide it or let it remain=
there=2Ebut when I close the parent form the entire application=
closes=2Eis there a way to do what I wa... more >>
GroupBox border thickness?
Posted by MikeY at 3/18/2005 3:12:02 PM
I'm trying to find a way for changing the thickness of the groupbox borders.
I've searched on this site but can't seem to find anything of this subject.
Does anyone have a suggestion.
Thanks in advance
MikeY
... more >>
Custom CollectionEditor?
Posted by Özden Irmak at 3/18/2005 1:49:26 PM
Hi,
I want to show a custom collectioneditor in my property where no items could
be added or removed. I just want to be able to edit the current items in
that collection?
I digged a bit and tried to derive from "CollectionEditor" to make my custom
one but with not much success. Can anybo... more >>
PropertyGrid questions
Posted by Klaus Aschenbrenner at 3/18/2005 1:21:43 PM
Hi!
I've 2 questions regarding the PropertyGrid:
1.) How can I also display the events of an object (like in Visual Studio)
2.) How can I display my own control in the 2nd column of a property in the
PropertyGrid? (instead of a textbox or a combobox)
Thanks
Klaus Aschenbrenner
MVP Vi... more >>
Rarely Use DesignTime
Posted by GhostShield at 3/17/2005 5:53:02 PM
I'm just curious. I load everything via code at runtime. The only thing I
use the Designer for is only for controls that *have* to be placed on a form
(or usercontrol) ahead of time. But even then I don't configure them in
designmode. I spend 99% of my time editing code, etc.
Am I takin... more >>
need help passing data from form1 to form2
Posted by E Stafford at 3/17/2005 1:49:01 PM
Greetings,
I am having trouble trying to pass data from one form to another within
the same application.
My project is set up with a main form [Form1] and I added a second form
containing a richtextbox control using "add windows form" from the
solution explorer [Form2].
What I want to do ... more >>
ExpandableObjectConverter not working
Posted by Andy at 3/17/2005 1:30:02 PM
I have a series of small classes that encapsulate some style
information for some custom controls. The types of information in
these classes are generally ints, Fonts and Colors.
I've applied the ExpandableObjectConverter to the various classes to
allow me to expand and set the properties a... more >>
DesignerVerbCollection
Posted by Franck Diastein at 3/16/2005 11:31:24 PM
Hi, I have a component using DesignerVerbCollection. When one of the
verbs is clicked in VS, I launch a WinForm...
The structure of my component is this:
Component.cs (component code and Designer code)
frmOptions.cs (a properties form for component)
ComponentLogic.cs (a single class ... more >>
User Control
Posted by Franck Diastein at 3/15/2005 7:46:35 PM
Hi,
I'm designing an User Control, with TypeConverter...
If I use this:
private ImageList imageList = null;
public ImageList ImageList{
get {return this.imageList;}
set {this.imageList = value;}
}
And go to design mode to my User Control properties, I can *magically*
select one ... more >>
Programatically load User Control in Design Time
Posted by Franck Diastein at 3/15/2005 10:17:19 AM
Hi,
I have made a component with a properties windows (using
ControlDesigner...) for WinForms.
I would like to be able to load Textbox from my components properties
window...
Have been googling for it with no result...
Any help ?
TIA... 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 >>
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 >>
Treeview component disabled on Toolbox
Posted by TK via .NET 247 at 3/11/2005 8:31:29 AM
(Type your message here)
Hi,
Im very new to .NET/C# development, so this could be something very simple. I want to add a treeview to an aspx file. In the toolbox, the treeview component is disabled. Is there something I need to do to enable this so as I can use it?
Any help would be appre... more >>
Multiple containers on UserControl
Posted by Bram at 3/11/2005 3:32:58 AM
Hello,
I've created a UserControl that contains several panels. However, when
I drop a Control onto one of these panels, the Control will be added to
the parent UserControl and not to the Panel itself.
I've read some topics on these subject but all these topics describe
how to offer only on... more >>
Repost for Microsoft: Designer not activated when designing Inheri
Posted by Robin Sanner at 3/10/2005 9:15:02 AM
I am trying to get this posted on the MSDN Universal account but have been
unsuccessful so far and have yet to receive an answer to this. Is this
appearing under a MSDN Universal account?
Using the following:
<Designer("MyNamespace.MyDesigner, MyAssembly")> _
Public Class BaseControl
... more >>
REPOST: TypeConverter Problems
Posted by Alex Clark at 3/9/2005 11:30:17 AM
(Repost as my original didn't have my MSDN registered email addy)
Hi all,
I'm coding a custom component which is designed to be dropped onto a form
and have it's properties manipulated at runtime. I have a custom
implementation of the TypeConverter class called UniversalTypeConverter
w... more >>
Does Property have it own IWindowsFormsEditorService?
Posted by Tony at 3/9/2005 11:28:36 AM
Hi all,
It would be grateful if someone could tell me the answer.
I have made my own DesignerHost for design-time support in my application,
but there is still a problem behind it which reduces its user friendly. For
some custom property, with ComplexType, I would like to proivde a customiz... more >>
TypeConverter Problems
Posted by Alex Clark at 3/9/2005 11:22:36 AM
(Repost as my original didn't have my MSDN registered email addy)
Hi all,
I'm coding a custom component which is designed to be dropped onto a form
and have it's properties manipulated at runtime. I have a custom
implementation of the TypeConverter class called UniversalTypeConverter
w... 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 >>
control won't load correctly in designer.
Posted by Donald Hurley at 3/9/2005 9:45:07 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 >>
Collection not getting serialized
Posted by Alex Clark at 3/8/2005 10:20:52 PM
Hi All,
I'm trying to force VS.NET to serialize items that have been added into a
collection. This collection is a property of a complex type, which itself
is a property of another complex type which resides in a collection which is
a property of my component.
Essentially, VS.NET is not... more >>
Collections in designer
Posted by ViperDK (Daniel K.) at 3/8/2005 9:07:26 AM
I want to edit a collection in the designer and it to be stored as well (not
binary serialized with all its version problems i got)
code should be generated with property init not with a huge constructor. any
hints which interfaces how to implement and special stuff about the
collection to us... more >>
Controls with DockStyle.Top are serialized in reversed order
Posted by Klenne at 3/8/2005 1:29:05 AM
I have a collection of usercontrols with each usercontrol having the
DockStyle set to Top. When I add the controls add design-time, they are
added correctly. But when the collection is being persisted the controls are
added in the reverse order!!!
Is there an easy way to persist controls ... more >>
Nested Complex Properties Designer Problem
Posted by ?eljko Margeta via .NET 247 at 3/7/2005 11:01:40 AM
Hi,
I am having a realy annoying problem=2E I'm creating a custom=
control, which uses a complex property named GradientColor=2E=
GradientColor class is consisted of an (int) Angle, (AlphaColor)=
BeginColor and (AlphaColor) EndColor=2E
On the other hand, AlphaColor is another class that co... more >>
Beginner Project on Inherited Forms
Posted by Roger Stenson at 3/7/2005 12:22:28 AM
Hi All
I would be grateful for help with this learning problem
I am trying to adopt the use of Inherited forms guided by the Simple
walkthrough in the VB Help file
I have designed & built a mulitpurpose base form class which has a number
of controls and a 'New' routine requiring three param... more >>
DefaultValue with Dynamic value ?
Posted by azerty at 3/6/2005 2:00:19 PM
Hello
With
[DefaultValue("My string")]
I can say to IDE :
this defaultValue property is"My string", So it is not necessary to save the
value in InitializeComponent method if this property equal "My string"
Perfect, But I want to specify a dynamic value
Example : If Prop1 equal the v... more >>
how to force windows forms designer to generate code...
Posted by Dan I at 3/5/2005 8:43:22 PM
Hello again.
I was wondering if any of you have experienced the following behavior. I
wrote a custom type editor and a custom collection editor. Both work as
expected. The problem lies with the collection editor.
If I launch the collection editor via the property grid, the editor comes
u... more >>
Correctly detecting and handling Drag & Drop on a ParentControlDes
Posted by Robin Sanner at 3/4/2005 8:47:08 AM
I previously didn't submit this under the MSDN account sign-on. Here is the
question again.
I have a UserControl that is acting as a container for other controls. This
UserControl has a custom designer inheriting from ParentControlDesigner.
During design time I want to detect that a contr... more >>
Cut/Copy/Paste in own Form designer ?
Posted by Bragadiru at 3/3/2005 5:58:42 PM
hi,
I'm implementing my own "Form Designer" and now want to add Cut/Copy/Paste
features for regular controls (textboxes, labels, comboboxes,...). How can I
do it ?
Thanks for any advice.
... more >>
user control design time integration
Posted by Dan I at 3/3/2005 4:20:13 PM
Hello experts.
I have a class called VisualAspect. This class stores information about
how to draw things (backcolor, forecolor, font, ...). This class is
complete with a TypeConverter (which returns a constructor based
InstanceDescriptor), DefaultValue attributes on every public property, ... more >>
upload a page into FTP in VB.NET
Posted by Skumar at 3/2/2005 10:03:57 AM
hi
to all
i'm working in VB.NET
i need upload a page using receivers FTP info
URL
username
password
i need upload the page into receivers FTP using above information.
i need u'r help.
hoping of help.
with regards
skumar
... more >>
|