Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Text in PictureBox !

Status
Not open for further replies.

Horowitz

Programmer
Jan 29, 2005
30
GR
Hi all,

- How can i write some text in a picturebox (in vb.net) at specific coordinates x and y?
- Is there any way of getting the "Current X and Y" of a picturebox as i click in it?

Thanks
 
This is for VB 3.0!! It's quite old version... The DrawText and Cls methods do not exist
 
You could have mentioned that in your post, or better yet, gone to forum221 to post.



__________________________________________
Try forum1391 for lively discussions
 
Anyway if you look better u will see "in vb.net" that is version 7.0 (2002 or 2003).
 
Oh dear...

__________________________________________
Try forum1391 for lively discussions
 
i don't think i'm wrong to something i said. If you believe so....tell me.
 
>You wrote: How can i write some text in a picturebox (in vb.net)

What do you mean? What does the reference to vb.net mean?


>Then, you wrote: This is for VB 3.0!! It's quite old version... The DrawText and Cls methods do not exist

What do you mean? Are you saying you want this written in VB3 or is it VB.NET? Are you aware tis is a VB.NET forum?

__________________________________________
Try forum1391 for lively discussions
 
We have a communication problem here. I know this is a vb.net forum and i say "in vb.net" so as to be sure that anyone that responds to me will writedown vb.NET code. Anyway, i start a new vb applcation, drag'n drop a picrurebox in the form and when the form loads i need the string "Hello" to be printed in the pbox at coordinates X=200 and Y=400.
I'm quite clear now, aren't I?
 
Aah!... I see. My fault.



__________________________________________
Try forum1391 for lively discussions
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top