Click here to Skip to main content
15,909,445 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionVB Form Commands in TextBoxes Pin
Dimz9313-Dec-09 4:10
Dimz9313-Dec-09 4:10 
AnswerRe: VB Form Commands in TextBoxes Pin
EliottA13-Dec-09 17:25
EliottA13-Dec-09 17:25 
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] Pin
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 
First please use the 'code block' or 'inline code' for posting code. Makes it easier to read the code.

As to your problem, you don't need the paint event. Using this event is why you have the endless loop.
Paint event is triggered every time the form repaints (logic isn't it Smile | :) ) and since you call a dialog in your paint event every time that dialog closes your form is repainted so your dialog is opened again and so on...

Suggestion:

Remove your paint event completely.
Draw your image in your button click event and go from there (might I suggest a picture box to display your image.)
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 
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 

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.