Click here to Skip to main content
15,921,959 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionAdd a text label to an image Pin
tomsteven22-Sep-07 14:54
tomsteven22-Sep-07 14:54 
AnswerRe: Add a text label to an image Pin
Guffa22-Sep-07 15:30
Guffa22-Sep-07 15:30 
GeneralRe: Add a text label to an image Pin
tomsteven22-Sep-07 15:44
tomsteven22-Sep-07 15:44 
AnswerRe: Add a text label to an image Pin
Christian Graus23-Sep-07 0:13
protectorChristian Graus23-Sep-07 0:13 
GeneralRe: Add a text label to an image Pin
tomsteven23-Sep-07 4:18
tomsteven23-Sep-07 4:18 
GeneralRe: Add a text label to an image Pin
Luc Pattyn23-Sep-07 4:30
sitebuilderLuc Pattyn23-Sep-07 4:30 
GeneralRe: Add a text label to an image Pin
tomsteven23-Sep-07 5:12
tomsteven23-Sep-07 5:12 
GeneralRe: Add a text label to an image Pin
Luc Pattyn23-Sep-07 6:50
sitebuilderLuc Pattyn23-Sep-07 6:50 
Hi Tom,

1.
my example code was C# not VB, sorry. VB.NET can do the same with a slightly different
syntax (except for the using statement, which is a shorthand for automatically calling
Dispose when done with an object).

2.
alternative one was about rendering, hence it goes in the Paint handler.
alterbative two was about modifying an existing image, hence it goes anywhere you like
(but such that it gets called only once for any given image)

3.
your code is a mess:
what is p and what is PictureBox1?? p is never really used/shown!
why would you set Top and Left again and again?
are you adding (and removing) Controls to a PictureBox???

4.
I am not exactly sure what it is you want to achieve, but
I concur with Cristian's suggestion to throw out all pictureboxes.

Smile | :)


Luc Pattyn [Forum Guidelines] [My Articles]


this weeks tips:
- make Visual display line numbers: Tools/Options/TextEditor/...
- show exceptions with ToString() to see all information
- before you ask a question here, search CodeProject, then Google


QuestionHow to Hide IP while connecting to different web sites ? Pin
Rizwan Bashir22-Sep-07 10:13
Rizwan Bashir22-Sep-07 10:13 
AnswerRe: How to Hide IP while connecting to different web sites ? Pin
GuyThiebaut22-Sep-07 10:50
professionalGuyThiebaut22-Sep-07 10:50 
QuestionDirectX AudioVideoPlayback: LoaderLock Pin
codemunkeh22-Sep-07 5:30
codemunkeh22-Sep-07 5:30 
Questiondatabinding Pin
ejaz_pk21-Sep-07 21:28
ejaz_pk21-Sep-07 21:28 
AnswerRe: databinding Pin
pmarfleet22-Sep-07 0:51
pmarfleet22-Sep-07 0:51 
GeneralRe: databinding Pin
ejaz_pk23-Sep-07 9:56
ejaz_pk23-Sep-07 9:56 
GeneralRe: databinding Pin
pmarfleet23-Sep-07 10:49
pmarfleet23-Sep-07 10:49 
QuestionScreen size woes Pin
frankiebaby221-Sep-07 19:30
frankiebaby221-Sep-07 19:30 
AnswerRe: Screen size woes Pin
Christian Graus21-Sep-07 19:59
protectorChristian Graus21-Sep-07 19:59 
GeneralRe: Screen size woes Pin
frankiebaby221-Sep-07 20:34
frankiebaby221-Sep-07 20:34 
QuestionHow to write amount in words Pin
Swiss Mantoro21-Sep-07 15:55
Swiss Mantoro21-Sep-07 15:55 
AnswerRe: How to write amount in words Pin
Dave Kreskowiak21-Sep-07 16:11
mveDave Kreskowiak21-Sep-07 16:11 
GeneralRe: How to write amount in words Pin
Paul Conrad21-Sep-07 17:32
professionalPaul Conrad21-Sep-07 17:32 
AnswerRe: How to write amount in words Pin
Christian Graus21-Sep-07 16:12
protectorChristian Graus21-Sep-07 16:12 
AnswerRe: How to write amount in words Pin
parth.p22-Sep-07 0:45
parth.p22-Sep-07 0:45 
GeneralRe: How to write amount in words Pin
Dave Kreskowiak22-Sep-07 3:09
mveDave Kreskowiak22-Sep-07 3:09 
GeneralRe: How to write amount in words Pin
parth.p22-Sep-07 3:11
parth.p22-Sep-07 3:11 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.