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. Control Selection & Resizing at Runtime

Control Selection & Resizing at Runtime

Scheduled Pinned Locked Moved Visual Basic
announcementdesignquestionworkspace
3 Posts 3 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

    Hi, I have a common mousemove/down/up handler for any control placed on the panel at runtime .It's Working fine . I need for moving and resizing controls (labels/textboxes/checkboxes/etc) and shape controls (LineShape ,RectangleShape, OvalShape which are from powerpacks.dll ) which i place on the Panel which are generated at runtime . Is there any Class for creating Control Selection and Resizing Handles for my controls which are present on the panel at runtime ?????? I want to show the selection if user presses the control and able to resize those controls with resizing handles for Any Typeof control (Textbox,Label,.... LineShape,RectangleShape ,OvalShape ) ???? If i release the mouse button after resizing it has to update the size or location of that control same like in vs2005 design time environment but here at runtime . plzzz , Thanks & Regards

    For1206

    D S 2 Replies Last reply
    0
    • F for1206

      Hi, I have a common mousemove/down/up handler for any control placed on the panel at runtime .It's Working fine . I need for moving and resizing controls (labels/textboxes/checkboxes/etc) and shape controls (LineShape ,RectangleShape, OvalShape which are from powerpacks.dll ) which i place on the Panel which are generated at runtime . Is there any Class for creating Control Selection and Resizing Handles for my controls which are present on the panel at runtime ?????? I want to show the selection if user presses the control and able to resize those controls with resizing handles for Any Typeof control (Textbox,Label,.... LineShape,RectangleShape ,OvalShape ) ???? If i release the mouse button after resizing it has to update the size or location of that control same like in vs2005 design time environment but here at runtime . plzzz , Thanks & Regards

      For1206

      D Offline
      D Offline
      Dave Kreskowiak
      wrote on last edited by
      #2

      for1206 wrote:

      Is there any Class for creating Control Selection and Resizing Handles for my controls

      No, there isn't. This functionality has to be built into the controls themselves, as well as some additional functionality added to the container you put them in. You're going to have to extend the existing controls classes (Label, TextBox, ...) to make your own versions that support being moved around at runtime as well as containter controls to add support for drawing handles and resizing. This is not something that can be explained in a few forum posts. It's rather complex and a bunch of points have to be covered to get basic functionality to work. You can learn more from these articles[^].

      A guide to posting questions on CodeProject[^]
      Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
           2006, 2007

      1 Reply Last reply
      0
      • F for1206

        Hi, I have a common mousemove/down/up handler for any control placed on the panel at runtime .It's Working fine . I need for moving and resizing controls (labels/textboxes/checkboxes/etc) and shape controls (LineShape ,RectangleShape, OvalShape which are from powerpacks.dll ) which i place on the Panel which are generated at runtime . Is there any Class for creating Control Selection and Resizing Handles for my controls which are present on the panel at runtime ?????? I want to show the selection if user presses the control and able to resize those controls with resizing handles for Any Typeof control (Textbox,Label,.... LineShape,RectangleShape ,OvalShape ) ???? If i release the mouse button after resizing it has to update the size or location of that control same like in vs2005 design time environment but here at runtime . plzzz , Thanks & Regards

        For1206

        S Offline
        S Offline
        student_rhr
        wrote on last edited by
        #3

        Checkout this article: http://www.codeproject.com/KB/miscctrl/CSharpRectTracker.aspx[^]

        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