regd painting a form
-
Hi, I have a text box on my form . I want to move the text box to the position where the user clicks. So I kept the location in variables and I am getting the coordinates of mouse click. How do I repaint the form so that the text box appears at the mouse click position. Karteek
-
Hi, I have a text box on my form . I want to move the text box to the position where the user clicks. So I kept the location in variables and I am getting the coordinates of mouse click. How do I repaint the form so that the text box appears at the mouse click position. Karteek
So, what is your problem? Just set the new X and Y values of the textbox and call the
Refresh
() method of the form if required.
Don't forget, that's
Persian Gulf
not Arabian gulf!
Murphy:
Click Here![^]
I'm thirsty like sun, more landless than wind...
-
Hi, I have a text box on my form . I want to move the text box to the position where the user clicks. So I kept the location in variables and I am getting the coordinates of mouse click. How do I repaint the form so that the text box appears at the mouse click position. Karteek
Invalidates a specific region of the control and causes a paint message to be sent to the control. [C#]
public void Invalidate();
R.Bischoff .NET, Kommst du mit?
Great Freeware -> Abilon - Rss Reader | Zip Genius | SmartFTP -
Hi, I have a text box on my form . I want to move the text box to the position where the user clicks. So I kept the location in variables and I am getting the coordinates of mouse click. How do I repaint the form so that the text box appears at the mouse click position. Karteek
Setting TextBox.Location will move the textbox to the new position, no calls to refresh required; the form will refresh itself automatically. #include "witty_sig.h"