Click here to Skip to main content
15,911,030 members
Home / Discussions / C#
   

C#

 
QuestionHow to handle attachment in web Pin
dabuskol12-Mar-06 19:13
dabuskol12-Mar-06 19:13 
QuestionShowing HTML table in Winform Control Pin
Mukesh Kumar Gupta12-Mar-06 17:54
Mukesh Kumar Gupta12-Mar-06 17:54 
AnswerRe: Showing HTML table in Winform Control Pin
J. Dunlap12-Mar-06 18:05
J. Dunlap12-Mar-06 18:05 
GeneralRe: Showing HTML table in Winform Control Pin
Mukesh Kumar Gupta12-Mar-06 19:13
Mukesh Kumar Gupta12-Mar-06 19:13 
QuestionLoad report failed Pin
abja12-Mar-06 17:48
abja12-Mar-06 17:48 
QuestionAnnoying new code folding feature in Sharpdevelop 2.0 Pin
Allah On Acid12-Mar-06 15:42
Allah On Acid12-Mar-06 15:42 
QuestionStatus Bar Pin
Sean8912-Mar-06 14:44
Sean8912-Mar-06 14:44 
AnswerRe: Status Bar Pin
jklucker12-Mar-06 15:16
jklucker12-Mar-06 15:16 
Use Application.DoEvents()

<br />
try<br />
{<br />
     statusLabel.Text = Attempting to connect..."; Application.DoEvents();<br />
     DataCon.Open();<br />
}<br />


Basically calling the Application.DoEvents() forces your application to process everything up that point before proceeding to the next step in your code. Without it your user interface will appear to lock up until your done working with your data connection stuff. The other way to accomplish this would be to spawn your data connection stuff on another thread which then would make the main thread process the UI changes.

I reject your reality and substitute my own!
- Adam Savage, Mythbuster
-George W Bush

life is like a roll of toilet paper. The closer it gets to the end, the faster it goes.

My definition of an expert in any field is a person who knows enough about what's really going on to be scared.
- PJ Plauger
GeneralRe: Status Bar Pin
Sean8912-Mar-06 16:06
Sean8912-Mar-06 16:06 
AnswerRe: Status Bar Pin
mcljava12-Mar-06 15:38
mcljava12-Mar-06 15:38 
QuestionhDC problem Pin
IceWater4212-Mar-06 14:35
IceWater4212-Mar-06 14:35 
AnswerRe: hDC problem Pin
DigitalKing12-Mar-06 15:33
DigitalKing12-Mar-06 15:33 
AnswerRe: need help!! Pin
Steve Pullan12-Mar-06 13:24
Steve Pullan12-Mar-06 13:24 
GeneralRe: need help!! Pin
JulietPlando12-Mar-06 14:39
JulietPlando12-Mar-06 14:39 
GeneralRe: need help!! Pin
Steve Pullan12-Mar-06 15:00
Steve Pullan12-Mar-06 15:00 
Questionhow can i get the ip addres of host on windows application Pin
sa_keles12-Mar-06 12:55
sa_keles12-Mar-06 12:55 
AnswerRe: how can i get the ip addres of host on windows application Pin
Steve Pullan12-Mar-06 13:21
Steve Pullan12-Mar-06 13:21 
GeneralRe: how can i get the ip addres of host on windows application Pin
sa_keles12-Mar-06 13:36
sa_keles12-Mar-06 13:36 
AnswerRe: how can i get the ip addres of host on windows application Pin
mcljava12-Mar-06 14:17
mcljava12-Mar-06 14:17 
GeneralRe: how can i get the ip addres of host on windows application Pin
sa_keles12-Mar-06 15:30
sa_keles12-Mar-06 15:30 
AnswerRe: how can i get the ip addres of host on windows application Pin
jklucker12-Mar-06 15:28
jklucker12-Mar-06 15:28 
GeneralRe: how can i get the ip addres of host on windows application Pin
sa_keles12-Mar-06 15:34
sa_keles12-Mar-06 15:34 
GeneralRe: how can i get the ip addres of host on windows application Pin
sa_keles13-Mar-06 13:03
sa_keles13-Mar-06 13:03 
Questioncannot load image from desktop Pin
deepak112-Mar-06 12:22
deepak112-Mar-06 12:22 
AnswerRe: cannot load image from desktop Pin
Guffa12-Mar-06 12:44
Guffa12-Mar-06 12:44 

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.