0

I need to lock label position. so, my label can't move at all..
now, i'm using label1.Enabled = False..
but, my label.forecolor become gray..

can any help me to lock label position without changing label forecolor to gray??


thanks...

6
Contributors
7
Replies
8
Views
7 Years
Discussion Span
Last Post by MindFreaks
0

"can't move at all" means that it doesnt change the position on resizing the form? if so then set the anchor property of the label.

0

not when at the designer...
let me explain.
I make program that drag n drop label on the form..
at mouse event up, I want lo lock label position, so I can't drag n drop label for the 2nd time...

0

have you got any solution for this. coz even this happens for me. i cant stop moving the label. any solutions

0

when you are use mouse up event make label.locked=true. if you want to make that lable enable = false then change the back color of that label so it will looks in white whether it is Enable=true/False.
try this is one :)

0

you should try using if statement to check if the label has already been drag and dropped

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.