all groups > dotnet windows forms designtime > march 2005 >
You're in the

dotnet windows forms designtime

group:

Programatically load User Control in Design Time


Programatically load User Control in Design Time Franck Diastein
3/15/2005 10:17:19 AM
dotnet windows forms designtime: 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 ?

Re: Programatically load User Control in Design Time Franck Diastein
3/15/2005 2:59:31 PM
It's very easy.

My User Control's properties can be modified throug a WinForm launched
by a verb, using Control Designer ...

I put my User Control in a WinForm (frmApp), I edit properties of my UC
from a WinForm(frmProps), and I would like to add TextBoxes to frmApp
from frmProps...

It's aka adding TextBoxes to a WinForm from the Images Collection Editor
Form of an ImageList...

Do you understand now ?

[quoted text, click to view]
Re: Programatically load User Control in Design Time joeycalisay
3/15/2005 6:49:48 PM
problem is kind of vague especially the relation with the subject, please
clarify first.

--
Joey Calisay
http://spaces.msn.com/members/joeycalisay/


[quoted text, click to view]

Re: Programatically load User Control in Design Time joeycalisay
3/16/2005 8:45:24 AM
Partly. Maybe this will help:

Have you tried to look at the TabControl? When you add TabPages from its
TabPages Collection property, the TabPage instance are available on the
design surface for you to interact with. It is instantiated on the form
level and added to the Controls Collection of the TabControl instance. If
this is what you want, you can look at designer classes particularly the
method IDesignerHost.CreateComponent(). You can search for a number of
examples on this newsgroup, this article might help:

http://windowsforms.net/articles/shapedesigner.aspx


--
Joey Calisay
http://spaces.msn.com/members/joeycalisay/


[quoted text, click to view]

AddThis Social Bookmark Button