How to implement Cut,Copy,Paste for controls in vb.net 2005
-
Hii , Here i am creating all controls at runtime i.e, (Textbox,Chkbox,Rb,GridView,Picturebox,Label...... ,RectangleShape,OvalShape,LineShape). How to implement Cut ,Copy ,Paste,Delete for all these types of controls .... 1) Here i am using ContextMenuStrip .--------------Using this how to delete , in that i am having Properties ,Cut,Copy,Paste,Delete,SendToBack,BringToFront If i select, delete or copy or paste or cut it has to do the respective operations for the type of control listed above.How to identify the control. i am getting the sender here as "ToolStripMenuItem" , How can i get the particular Control . How can i identify the Control here ????? 2) if i press the delete button on keyboard , i am doing this
Ctr_KeyDown -- event handler If e.KeyCode = Keys.Delete Then If TypeOf sender Is TextBox Then Canvas.Controls.Remove(Sender) ........
But i am not able to delete the Picturebox ,& shape controls(due to it accepts only Control ) ThanksFor1206