Click here to Skip to main content
15,908,906 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: VB Form Commands in TextBoxes Pin
Eddy Vluggen14-Dec-09 0:59
professionalEddy Vluggen14-Dec-09 0:59 
QuestionNo Connection? Pin
teknozwizard12-Dec-09 21:25
teknozwizard12-Dec-09 21:25 
QuestionHelp with VB 2008.NET, Please [modified] PinPopular
treashunter10-Dec-09 20:21
treashunter10-Dec-09 20:21 
AnswerRe: Help with VB 2008.NET, Please Pin
Johan Hakkesteegt10-Dec-09 22:27
Johan Hakkesteegt10-Dec-09 22:27 
GeneralRe: Help with VB 2008.NET, Please Pin
treashunter10-Dec-09 22:36
treashunter10-Dec-09 22:36 
GeneralRe: Help with VB 2008.NET, Please Pin
Tom Deketelaere10-Dec-09 23:42
professionalTom Deketelaere10-Dec-09 23:42 
GeneralRe: Help with VB 2008.NET, Please Pin
treashunter10-Dec-09 23:49
treashunter10-Dec-09 23:49 
GeneralRe: Help with VB 2008.NET, Please Pin
Tom Deketelaere10-Dec-09 23:57
professionalTom Deketelaere10-Dec-09 23:57 
Ah so your not only painting the image in that case your right you can't use the picture box.

you might want to check out Christian Graus his articles here[^]
I think it was him who had a couple on this sort of thing.

As to your immediate problem I would do the following:

In your button click (and only there) open your file dialog, and save the selected image into a global variable for that form.

In the paint event draw that image and do nothing more than that, so don't open the file dialog in there.

Pseudo code:
private img as image

private sub button_click ...
if openfiledialog.showdialog = ok then
    img = image.fromfile(openfiledialog.getpath)
end if
end sub
private sub paint_event....
'draw the img object 
end sub

GeneralRe: Help with VB 2008.NET, Please PinPopular
treashunter11-Dec-09 0:06
treashunter11-Dec-09 0:06 
GeneralRe: Help with VB 2008.NET, Please Pin
dan!sh 11-Dec-09 0:11
professional dan!sh 11-Dec-09 0:11 
GeneralRe: Help with VB 2008.NET, Please Pin
The Man from U.N.C.L.E.11-Dec-09 23:06
The Man from U.N.C.L.E.11-Dec-09 23:06 
GeneralRe: Help with VB 2008.NET, Please Pin
Paul Conrad12-Dec-09 4:56
professionalPaul Conrad12-Dec-09 4:56 
GeneralRe: Help with VB 2008.NET, Please Pin
Johan Hakkesteegt11-Dec-09 2:37
Johan Hakkesteegt11-Dec-09 2:37 
AnswerRe: Help with VB 2008.NET, Please Pin
Paul Conrad12-Dec-09 4:59
professionalPaul Conrad12-Dec-09 4:59 
QuestionHow to check Internet connection Pin
Tufail Ahmad10-Dec-09 18:28
Tufail Ahmad10-Dec-09 18:28 
AnswerRe: How to check Internet connection Pin
Eddy Vluggen11-Dec-09 2:13
professionalEddy Vluggen11-Dec-09 2:13 
GeneralRe: How to check Internet connection Pin
Tufail Ahmad11-Dec-09 19:00
Tufail Ahmad11-Dec-09 19:00 
GeneralRe: How to check Internet connection Pin
The Man from U.N.C.L.E.11-Dec-09 23:09
The Man from U.N.C.L.E.11-Dec-09 23:09 
AnswerRe: How to check Internet connection Pin
εїзεїзεїз12-Dec-09 0:32
εїзεїзεїз12-Dec-09 0:32 
AnswerRe: How to check Internet connection Pin
Paul Conrad12-Dec-09 5:00
professionalPaul Conrad12-Dec-09 5:00 
QuestionWorking with numbers???? Pin
A-dogg200910-Dec-09 17:49
A-dogg200910-Dec-09 17:49 
AnswerRe: Working with numbers???? Pin
Ashfield10-Dec-09 21:08
Ashfield10-Dec-09 21:08 
GeneralRe: Working with numbers???? Pin
A-dogg200916-Dec-09 17:34
A-dogg200916-Dec-09 17:34 
QuestionLocal machine problem with SQL DMO !!! Pin
cotdot1111110-Dec-09 13:27
cotdot1111110-Dec-09 13:27 
AnswerRe: Local machine problem with SQL DMO !!! Pin
Luc Pattyn10-Dec-09 14:14
sitebuilderLuc Pattyn10-Dec-09 14:14 

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.