Click here to Skip to main content
15,895,084 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
In visual studio i can create a custom user control.

public partial class UserControl1 : UserControl

I can edit this control in the design view.

if i derive a control from a existing system control i cant edit it in design view.

public partial class UserControl1 : ToolStrip

how can i edit this control in design view?
Posted
Updated 28-May-11 14:09pm
v2

1 solution

See here[^]. It should be very similar to a normal usercontrol.
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 28-May-11 4:40am    
Hopefully, this will be enough, my 5.
--SA
Abhinav S 28-May-11 4:56am    
Thank you SA.
viciouskinid 28-May-11 9:23am    
Thanks for the response.

When i open design view when my control is derived from UserControl i am able to add controls and position them just like i would with a form.

if i derive from a existing system control design view displays the message "To add components to you class, drag them from the Toolbox and use the Properties window to set their properties. To create methods and events for you class, click here to switch to code view". If I add a control to this editor it appears as an icon and text. I cant position it over the control.

What i am trying to do is derive a control from a ToolStrip and be able to add and edit toolstripitems in the viewer. Is this possible

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900