all groups > dotnet windows forms designtime > october 2004
IExtenderProvider with DesignOnly property. An error?
Posted by draiko NO[at]SPAM rhenus.de at 10/29/2004 3:25:02 AM
Hello Group,
It looks like an error.
To reproduce, create a simple ExtenderProvider component:
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
[ProvideProperty( "Tttt", typeof( IComponent))]
public class TestProvider : System.ComponentModel.Component, IExtenderProvide... more >>
Constructors/Initializers/ConfigurationSettings in design time...
Posted by Mike Edenfield at 10/26/2004 1:45:26 PM
I have a series of user controls which internally contain datasets. At
run-time, these datasets are loaded from XML documents in the following
manner:
private string _xmlPath = ConfigurationSettings.AppSettings["XML.Path"];
public UserControl1()
{
InitializeComponent();
this._xml... more >>
DefaultValue Property and Inheritance
Posted by joeycalisay at 10/26/2004 1:23:09 PM
I had this thought regarding defaultvalue attribute for properties of
controls and form inheritance.
For example, I have this boolean property for a control with a supplied
defaultvalue attribute of TRUE. What if this particular control is declared
as protected in a base form? Down the hiera... more >>
Transparent Control (Bob Powell's sample) and ZOrder problem?
Posted by Özden Irmak at 10/25/2004 8:35:33 PM
Hi,
I created a transparent control using Bob Powell's transparent control
sample. I'm hosting this control in a designer and BringToFront/SendToBack
does not have any effect in this control until the user moves/resizes the
control.I tried many ways including refresh, invalidate, move the c... more >>
ImageIndex Designer?
Posted by Martin Welch at 10/25/2004 3:52:04 PM
The ToolBarButton class has an ImageIndex property which presents a drop
down combo with the images from the parent ToolBar's ImageList.
I have a component with an ImageList and I want my ImageIndex property to
behave the same way as the ToolBarButton.
Does anyone know how?
Cheers!
M... more >>
XmlSerializer initiated with given type returns object of different type (other assembly)
Posted by Philipp Sumi at 10/23/2004 12:53:15 PM
Hello Newsgroup
I have a strange situation with a VS.net Add-In that uses the
XmlSerializer class for deserialization. As the problem seems to be the
same for the Add-In as for designers, I thought I might be lucky here...
In the code below, I pass a given type to the serializer class. How... more >>
Borders around custom control
Posted by Teis Draiby at 10/22/2004 11:24:30 PM
Is it possible to show a border around my custom control similar to the
borders that I can set around a PictureBox through the BorderStyle property?
Regards, Teis
... more >>
ParentControlDesigner CanParent method
Posted by joeycalisay at 10/22/2004 11:09:15 AM
I've searched through previous posts about implementing this method to
customize the child controls being dragged into a custom container control
and I do have some questions.
The CanParent method is only executed if the control dragged into the
container control is from the form and not from ... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Collection Serialization
Posted by Nice Chap at 10/21/2004 10:40:39 AM
This is a multi-part message in MIME format.
------=_NextPart_000_0014_01C4B75A.6802F360
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
I have a collection class that is derived from CollectionBase. There is =
a property on my *Form Class* of ty... more >>
Can not Serialize the Name Property
Posted by micha NO[at]SPAM nospam.com at 10/21/2004 9:50:53 AM
Hello
I have a Component an gave it a Property "Name".
I declared it like this:
<DesignerSerializationVisibility(DesignerSerializationVisibility.Visible),
Browsable(False)> _
Public Property Name() As String
If I use this a a ParentContainer (as a Form)
the the Property Name is not... more >>
Updating verbs in the PropertyGrid
Posted by Jacob at 10/20/2004 8:46:46 AM
I'm working on a component (with a custom designer) where the designer verbs
change based on what a property is set to. The problem is,... it appears
that the designer keeps its own cache of the verbs such that when I change
the property of my component, I have to click off the component and t... more >>
Design time visibility
Posted by Carlos_Guzmán_Álvarez at 10/18/2004 10:51:38 PM
Hello:
I want to know if it's possible to have a component what
visibility at design time depends on how it's being created,
for example, if the component is manually dropped by the
user to a windows forms it should be displayed but if it's
automatically generated by a Designer, to be assigne... more >>
Problems with codedom serialization
Posted by Andrea Gelati \(Protocube Team\) at 10/16/2004 5:23:38 PM
Hi,
Actually have try to redefine the BackColor and ForeColor of the Control
class using the key 'new' with the DesignerSerializationVisibility.Content
attrubute. Well, the desinger not serialize this property.
Any ideas about?
Thank's in advance!.
-- Andrea Gelati
Protocube Team
w... more >>
Can a custom converter be debugged?
Posted by Rob Richardson at 10/15/2004 3:45:47 PM
Greetings!
I am mystified by type converters. At design time, I enter a string into a
text field. At run time, I query the field, and the string I entered isn't
there. Also, I derived my converter from the ExpandableObjectConverter, and
my converter is getting called once for each property ... more >>
Designer services
Posted by Joey Callisay at 10/15/2004 10:32:24 AM
there are a lot of samples for designer classes. Some are storing internal
references to the services (componentchangeservice, selectionservice, etc.)
on the designer classes, some are getting them when needed. Are there
disadvantages on storing private references to such services rather than
... more >>
How can a PropertyGrid show a custom UI editor at runtime?
Posted by dont_spam_daniel NO[at]SPAM yahoo.com at 10/14/2004 10:06:39 AM
It's a simple question, but after hours of searching I've come up with
nothing! All I want to do is use the nice custom UI editor feature in
PropertyGrid when it isn't hosted in Visual Studio.
There are lots of examples out there showing how to get the
PropertyGrid to show your custom UI edito... more >>
How to change the Window Form font programmatically and maintain the layout intact?
Posted by rajeshdotcom NO[at]SPAM hotmail.com at 10/13/2004 12:26:15 AM
How to change the Window Form font programmatically and maintain the layout intact?
Here is a sample below
// IntactForm.cs
// ********** code starts here **********
using System;
using System.Windows.Forms;
namespace MyLayout
{
public class IntactForm : System.Windows.Forms.Form
... more >>
Need an event for when the user drags a component on
Posted by Marina at 10/11/2004 3:09:45 PM
Hi,
I need an event that fires ONLY when the user has JUST dragged a component
on.
I tried creating my own ComponentDesigner class to deal with some events.
I tried handling the ComponentAdded event. ComponentAdded fires whenever
the project is loaded and the form designer is loaded.
Th... more >>
Doubleclick in Toolbox
Posted by micha NO[at]SPAM nospam.com at 10/11/2004 3:05:33 PM
Hello
how can i find out if a user has doublclicked a Item in the Toolbox.
Is there an Event ?
I have a own Designer that works fine if the User Drops a "Control"
on the "Form" but how can I catch up that he is not droping it ?
... more >>
Form Load Event In Design Time
Posted by Amr Moselhy at 10/10/2004 12:04:48 PM
Hi Everyone
very strange phenomenon happens when designing my forms
i have a base form that i inherit my forms from
but when i open an inherited form in the design time ( not in the run time )
the form load event of the base form is executed
i repeat : it is executed in the design time result... more >>
AddHandler needed in designer generated code
Posted by Marina at 10/8/2004 1:30:29 PM
Hi,
I have a component that implements ISupportInitialize, so the code in
InitializeComponent is something like:
theComponent.BeginInit()
' Set theComponent properties
theComponent.EndInit()
Now, EndInit, needs to raise an event, such that the end developer can
handle it, and perfor... more >>
Undo Stack of Designer
Posted by Joey Callisay at 10/7/2004 11:59:16 AM
Anyone who knows how can I debug the Undo Stack used by a designer on
component change, add and remove?
Thanks...
... more >>
Undo/redo for DesignOnly properties
Posted by draiko NO[at]SPAM rhenus.de at 10/7/2004 9:37:43 AM
Hi,
I wrote a component with a DesignOnly property. The property is a custom
dictionary (inheriting from DictionaryBase) that has a TypeConverter
to/from string type. Values are saved into and read from resource file
correctly when the containing form is saved/loaded.
The dictionary can... more >>
Hosting Windows Forms Designers
Posted by dubem1 NO[at]SPAM b2b2c.ca at 10/6/2004 3:21:45 PM
I follow the examples given on Tim Dawson's website -
http://www.divil.co.uk/net/articles/designers/hosting.asp)
I want to add some control by code. In fact, when the user add a
textbox, I want to add automaticly a label. I add some events
throught the main form telling me that a contro... more >>
Assembly Strong name
Posted by Tony at 10/6/2004 12:01:02 PM
Hi all,
Would someone tell me what is "strong name of an assembly"?
Tony
... more >>
Refreshing in designer
Posted by Marina at 10/6/2004 9:31:14 AM
Hi,
I developed a custom component designer, that keeps the name of the
component (Site.Name) in sync with another property, call it property ABC.
This works well.
The problem is that in the properties window, property ABC does not get
refreshed right away. It will get refreshed if it gets ... more >>
How to add Root Designer support for Custom ContainerControl
Posted by Naga V Malepati at 10/4/2004 12:45:07 PM
I'm trying to create custom container control for .Net framework. I want to
associate a Design view for the inherited types. I was trying to use the
built-in UserControl root designer for it, since I want the functions of the
built in designer.
I tried this
#if NETCFDESIGNTIME
[Sy... more >>
|