开发者

Code for drag and drop c# controls in to a form

开发者 https://www.devze.com 2023-03-25 13:55 出处:网络
i want a code snippet for dragging controls and dropping them to a Panel and placing them back...as needed.how can i get the controls property same as used in vs,i am using vs2010 and c# web applicati

i want a code snippet for dragging controls and dropping them to a Panel and placing them back...as needed.how can i get the controls property same as used in vs,i am using vs2010 and c# web application.i want the functionality to be as i开发者_开发技巧n as when we design a form.pls help..


Create the control in a projetct with add to solution --> user control or component Add the control to the toolbox via the Context Menu-->choose Items and select your control (do not forget to compile once finished ;-) )

All public properties will be available to edit in VS, there are also some attributes to control acces to the properties (but I can't remember them now).

hth

Mario

0

精彩评论

暂无评论...
验证码 换一张
取 消