Skip to content

How do i: Resize labels in real time (on a form)

julz barrab

Asked Jun 13, 2007, 4:19 AM EDT3 answers
Share
LinkedInX
I need to resize a label on a form in real time (click the corner and drag), any1 know how to do this/?

Thanks in advance,
Julian

3 Answers

Know the answer? Post it. Somebody with the same question will find it here.

  • Mahesh Chand
    0
    You may want to draw rectangles at run-time when somebody selects the existing Label at mouse-down event and draw the rectangle on mouse-move event and get the size of the rectangle on Mouse-down event. On mouse-down event then you create and redraw the final Label. If you do not have experiece with GDI+, I suggest learn that. You will need GDI+ to do this.
    0
  • 0
    thanks,

    i also currently have a mouse down, up events for moving the position of each label around the form, so dont think it would work to use 'mouse down, up, move' for both resizing and moving.

    is there a way to move and resize, like when creating/modifing a label when designing the form?

    i just need to adjust the height (not width)  and  i could also use something other than a label if its easier (as long as i can drag drop and resize the height)

    J

    i've not used GDI before, i'll read up on it
    0
  • 0
    i still havent got this to work :(

    some1 mentioned to me that it is possible to resize images in real time, how do i do this?

    thanks
    0