Make a component on runtime.

M

Mr. X.

Hello.
I want to design a screen.
There are some compoents on screen, which I can drop on.
I.e : Button.

So, it should act as button at the design time.
How can I drop real button on the screen (a panel), and don't have a chance
to click on it (I don't want any event occurs on the new button, because it
should act as design mode).
DesignMode is readonly propery.
How can I solve the above problem ?

Thanks :)
 
H

Herfried K. Wagner [MVP]

Am 10.06.2010 23:18, schrieb Mr. X.:
I want to design a screen.
There are some compoents on screen, which I can drop on.
I.e : Button.

So, it should act as button at the design time.
How can I drop real button on the screen (a panel), and don't have a
chance to click on it (I don't want any event occurs on the new button,
because it should act as design mode).
DesignMode is readonly propery.
How can I solve the above problem ?

Do you want to create a Windows Forms designer which users can use at
runtime to design forms?

Or do you want to create a component which doesn't have any visual
appearance at runtime, except in the components tray at design time?
 
M

Mr. X.

"Herfried K. Wagner [MVP]" :
....
Do you want to create a Windows Forms designer which users can use at
runtime to design forms?

Or do you want to create a component which doesn't have any visual
appearance at runtime, except in the components tray at design time?

The first choice.
It is like mini form designer.

Thanks :)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top