Click here to Skip to main content
16,005,389 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: New to VB - NewFile Dialog / SaveFile Dialog help needed. Pin
Adam.m.Nelson4-Apr-08 4:17
Adam.m.Nelson4-Apr-08 4:17 
GeneralRe: New to VB - NewFile Dialog / SaveFile Dialog help needed. Pin
Dave Kreskowiak4-Apr-08 5:23
mveDave Kreskowiak4-Apr-08 5:23 
GeneralRe: New to VB - NewFile Dialog / SaveFile Dialog help needed. Pin
Adam.m.Nelson4-Apr-08 9:01
Adam.m.Nelson4-Apr-08 9:01 
GeneralRe: New to VB - NewFile Dialog / SaveFile Dialog help needed. Pin
Adam.m.Nelson4-Apr-08 9:09
Adam.m.Nelson4-Apr-08 9:09 
Questionhow to show image during saving data? Pin
samrat.net1-Apr-08 2:13
samrat.net1-Apr-08 2:13 
AnswerRe: how to show image during saving data? Pin
Aks 0051-Apr-08 2:48
Aks 0051-Apr-08 2:48 
GeneralRe: how to show image during saving data? Pin
samrat.net1-Apr-08 3:08
samrat.net1-Apr-08 3:08 
GeneralRe: how to show image during saving data? Pin
Luc Pattyn1-Apr-08 3:26
sitebuilderLuc Pattyn1-Apr-08 3:26 
Hi,

when you modify GUI elements (Controls) inside an event handler running on the GUI thread,
the result will show only when your handler is done.
Hence the sequence show_image, save, hide_image will NOT show an image.

There are basically two remedies:
- split the sequence using either a timer (not recommended here) or a thread or
backgroundworker; this is the recommended approach
- if you are sure your handler is not reentrant (will not be called again while
running) you could include a Application.DoEvents() to let the GUI settle
before continuing with the handler's execution. If you abuse it, side effects will
hit you, with a possible stack overflow.

BTW: don't cross-post, ask your question on one forum only!

Smile | :)

Luc Pattyn [Forum Guidelines] [My Articles]

This month's tips:
- before you ask a question here, search CodeProject, then Google;
- the quality and detail of your question reflects on the effectiveness of the help you are likely to get;
- use PRE tags to preserve formatting when showing multi-line code snippets.


QuestionRun-time error '424' Object required Pin
nilam24771-Apr-08 1:02
nilam24771-Apr-08 1:02 
GeneralRe: Run-time error '424' Object required Pin
Dave Kreskowiak2-Apr-08 3:23
mveDave Kreskowiak2-Apr-08 3:23 
Generalconnecting two machines using sun orb and iiop.net not working Pin
srikar5851-Apr-08 0:22
srikar5851-Apr-08 0:22 
GeneralVS.net 2005 (VB.net 2005): Breakpoint in click event of button causes programm crash Pin
mp00011-Apr-08 0:02
mp00011-Apr-08 0:02 
GeneralRe: VS.net 2005 (VB.net 2005): Breakpoint in click event of button causes programm crash Pin
Dave Kreskowiak4-Apr-08 5:20
mveDave Kreskowiak4-Apr-08 5:20 
GeneralRe: VS.net 2005 (VB.net 2005): Breakpoint in click event of button causes programm crash Pin
mp00014-Apr-08 6:20
mp00014-Apr-08 6:20 
GeneralRe: VS.net 2005 (VB.net 2005): Breakpoint in click event of button causes programm crash Pin
Dave Kreskowiak4-Apr-08 8:42
mveDave Kreskowiak4-Apr-08 8:42 
GeneralRe: VS.net 2005 (VB.net 2005): Breakpoint in click event of button causes programm crash Pin
mp00014-Apr-08 10:05
mp00014-Apr-08 10:05 
GeneralRe: VS.net 2005 (VB.net 2005): Breakpoint in click event of button causes programm crash Pin
mp00016-Apr-08 21:55
mp00016-Apr-08 21:55 
Questionhow to increase timeout expire value in windows application(using C#)? Pin
samrat.net31-Mar-08 21:41
samrat.net31-Mar-08 21:41 
AnswerRe: how to increase timeout expire value in windows application(using C#)? Pin
Ashfield31-Mar-08 21:50
Ashfield31-Mar-08 21:50 
GeneralRe: how to increase timeout expire value in windows application(using C#)? Pin
samrat.net31-Mar-08 21:57
samrat.net31-Mar-08 21:57 
GeneralRe: how to increase timeout expire value in windows application(using C#)? Pin
Colin Angus Mackay31-Mar-08 23:41
Colin Angus Mackay31-Mar-08 23:41 
GeneralRe: how to increase timeout expire value in windows application(using C#)? Pin
samrat.net1-Apr-08 1:24
samrat.net1-Apr-08 1:24 
GeneralSMTP vrs Proxy server Pin
plural31-Mar-08 21:10
plural31-Mar-08 21:10 
GeneralRe: SMTP vrs Proxy server Pin
Dave Kreskowiak1-Apr-08 10:29
mveDave Kreskowiak1-Apr-08 10:29 
Questionhow to identify tab key press in vb.net Pin
codelinks31-Mar-08 20:56
codelinks31-Mar-08 20:56 

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.