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. C#
  4. Shape Control

Shape Control

Scheduled Pinned Locked Moved C#
csharphelp
3 Posts 2 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.
  • Y Offline
    Y Offline
    yogeshcprajapati hotmail com Yogesh
    wrote on last edited by
    #1

    Hello everyone.. I am new to C#.net. I have got a project similar to MS Word Shape. Where we can add a shape(such as rectangle or circle) and then move it or edit its properties or even delete it. The shape is a control which has 8 little squares (on corners and sides) by which we can resize it.(As i said just like MS Word2007 Shape.) Now I have already made the control move and resize.But i am facing problem with the KeyDown event of the controls. i need it to delete and move the control with the help of keyboard keys. i have already got the Control's Sizechanged, KeyPress and MouseDown events working properly. but only the KeyDown event does'nt work. it seems like this event is never called when any key is pressed.

    Yogesh Prajapati

    S 1 Reply Last reply
    0
    • Y yogeshcprajapati hotmail com Yogesh

      Hello everyone.. I am new to C#.net. I have got a project similar to MS Word Shape. Where we can add a shape(such as rectangle or circle) and then move it or edit its properties or even delete it. The shape is a control which has 8 little squares (on corners and sides) by which we can resize it.(As i said just like MS Word2007 Shape.) Now I have already made the control move and resize.But i am facing problem with the KeyDown event of the controls. i need it to delete and move the control with the help of keyboard keys. i have already got the Control's Sizechanged, KeyPress and MouseDown events working properly. but only the KeyDown event does'nt work. it seems like this event is never called when any key is pressed.

      Yogesh Prajapati

      S Offline
      S Offline
      Samer Aburabie
      wrote on last edited by
      #2

      I think this link should help you from Microsoft MSDN: http://msdn.microsoft.com/en-us/library/system.windows.forms.control.keydown(VS.71).aspx[^]

      Sincerely Samer Abu Rabie Imagination is more important than knowledge !

      Y 1 Reply Last reply
      0
      • S Samer Aburabie

        I think this link should help you from Microsoft MSDN: http://msdn.microsoft.com/en-us/library/system.windows.forms.control.keydown(VS.71).aspx[^]

        Sincerely Samer Abu Rabie Imagination is more important than knowledge !

        Y Offline
        Y Offline
        yogeshcprajapati hotmail com Yogesh
        wrote on last edited by
        #3

        Hi Sameer, thanks for your reply.. I have already tried this long back.. but no use.. i cannot delete my control on pressing Del key.

        Yogesh Prajapati

        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