Click here to Skip to main content
16,015,072 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: please help Pin
Salman Sheikh17-Oct-07 21:59
Salman Sheikh17-Oct-07 21:59 
Questionplease help Pin
Sonia Gupta17-Oct-07 3:07
Sonia Gupta17-Oct-07 3:07 
AnswerRe: please help Pin
Parwej Ahamad17-Oct-07 3:48
professionalParwej Ahamad17-Oct-07 3:48 
AnswerRe: please help Pin
Tom Deketelaere17-Oct-07 3:50
professionalTom Deketelaere17-Oct-07 3:50 
AnswerRe: please help Pin
Christian Graus17-Oct-07 11:03
protectorChristian Graus17-Oct-07 11:03 
GeneralRe: please help Pin
Salman Sheikh17-Oct-07 22:09
Salman Sheikh17-Oct-07 22:09 
QuestionTimer Tick Event not fired Pin
Rupesh Kumar Swami17-Oct-07 2:30
Rupesh Kumar Swami17-Oct-07 2:30 
AnswerRe: Timer Tick Event not fired Pin
Luc Pattyn17-Oct-07 2:34
sitebuilderLuc Pattyn17-Oct-07 2:34 
Hi,

it depends on circumstances. This is one way to get what you describe:
- use a Windows.Forms.Timer (which ticks on the GUI thread);
- perform the database access (or some other long-winding operation) on the GUI thread,
e.g. in a button Click handler.

Now while the long operation is going on the entire GUI is frozen, as well as the Forms timer,
so nothing happens until the long operation has finished.

The right approach to remedy this is to use a separate thread for all long operations
(and to use InvokeRequired and Invoke if they need to access GUI parts).

Smile | :)

Luc Pattyn [Forum Guidelines] [My Articles]


this months tips:
- use PRE tags to preserve formatting when showing multi-line code snippets
- before you ask a question here, search CodeProject, then Google


QuestionReturn bound column name for control Pin
Gr1mR33p3r17-Oct-07 2:21
Gr1mR33p3r17-Oct-07 2:21 
AnswerRe: Return bound column name for control Pin
Dave Kreskowiak17-Oct-07 9:29
mveDave Kreskowiak17-Oct-07 9:29 
GeneralRe: Return bound column name for control Pin
Gr1mR33p3r17-Oct-07 19:16
Gr1mR33p3r17-Oct-07 19:16 
QuestionIcons and Images for VB forms Pin
Mark Cabbage17-Oct-07 2:08
Mark Cabbage17-Oct-07 2:08 
AnswerRe: Icons and Images for VB forms Pin
Vimalsoft(Pty) Ltd17-Oct-07 5:28
professionalVimalsoft(Pty) Ltd17-Oct-07 5:28 
GeneralRe: Icons and Images for VB forms Pin
Mark Cabbage17-Oct-07 12:54
Mark Cabbage17-Oct-07 12:54 
QuestionLost my post Pin
~V~17-Oct-07 1:40
~V~17-Oct-07 1:40 
AnswerRe: Lost my post Pin
ChandraRam17-Oct-07 1:42
ChandraRam17-Oct-07 1:42 
AnswerRe: Lost my post Pin
Steven J Jowett17-Oct-07 1:45
Steven J Jowett17-Oct-07 1:45 
AnswerRe: Lost my post Pin
~V~17-Oct-07 2:42
~V~17-Oct-07 2:42 
QuestionChange Debug Level to 0 Pin
matjame17-Oct-07 0:52
matjame17-Oct-07 0:52 
AnswerRe: Change Debug Level to 0 Pin
Dave Kreskowiak17-Oct-07 6:52
mveDave Kreskowiak17-Oct-07 6:52 
QuestionUnable to connect to Active Directory via SSL using VB.net Pin
Daniel Chew16-Oct-07 22:40
Daniel Chew16-Oct-07 22:40 
AnswerRe: Unable to connect to Active Directory via SSL using VB.net Pin
Dave Kreskowiak17-Oct-07 15:16
mveDave Kreskowiak17-Oct-07 15:16 
GeneralRe: Unable to connect to Active Directory via SSL using VB.net Pin
Daniel Chew17-Oct-07 16:21
Daniel Chew17-Oct-07 16:21 
QuestionXml scchema and data tables Pin
JonCox16-Oct-07 22:35
JonCox16-Oct-07 22:35 
AnswerRe: Xml scchema and data tables Pin
Dave Kreskowiak17-Oct-07 15:14
mveDave Kreskowiak17-Oct-07 15: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.