Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. How to implement Cut,Copy,Paste for controls in vb.net 2005

How to implement Cut,Copy,Paste for controls in vb.net 2005

Scheduled Pinned Locked Moved Visual Basic
questioncsharptutorial
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • F Offline
    F Offline
    for1206
    wrote on last edited by
    #1

    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 ) Thanks

    For1206

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups