Click here to Skip to main content
15,914,642 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: SMTP CDO.Message error Pin
Dave Kreskowiak7-Sep-04 1:18
mveDave Kreskowiak7-Sep-04 1:18 
GeneralRe: SMTP CDO.Message error Pin
denisdurand7-Sep-04 8:26
denisdurand7-Sep-04 8:26 
Generalhelp~a codeDom segment Pin
noway5865-Sep-04 20:05
noway5865-Sep-04 20:05 
GeneralRe: help~a codeDom segment Pin
noway5865-Sep-04 20:08
noway5865-Sep-04 20:08 
GeneralPlease please help. Pin
Mega15-Sep-04 17:26
Mega15-Sep-04 17:26 
GeneralDatagrid ColumnHeader Captions Pin
beowulfagate5-Sep-04 15:42
beowulfagate5-Sep-04 15:42 
GeneralRe: Datagrid ColumnHeader Captions Pin
Anonymous6-Sep-04 8:14
Anonymous6-Sep-04 8:14 
Generalcreating a "please wait" dialog Pin
sagmam5-Sep-04 7:19
sagmam5-Sep-04 7:19 
Hi all,
I have a little problem: by application is generating a report and it takes some time.. so I want to show a little "please wait" always-on-top window while the report is generated.
I created a form with a "Please wait" label and a timer that animates a bitmap every 500 milli. And this is how I call it from my app:

dim frm as new frmWaitMsg
frm.Show
GenerateReport
frm.Close

And it doesn't work! The message form doesn't load properly. I can see the frame, but the CPU doesn't complete the task: the insides of the form are not drawn until the report is complete. So I tried running the report in a seperate thread, but I don't know how to deal with all the yielding problems. I wrote something like:

dim frm as new frmWaitMsg
dim t as new Thread(GenerateReport)
frm.Show
t.Start
t.Join
frm.Close

But then, it looks like the Join blocks my form, and I get the same results Smile | :)

How do I do this?
Thanks,

/=/=/=/= Sagmam =\=\=\=\
GeneralRe: creating a "please wait" dialog Pin
Greg Eales6-Sep-04 2:02
Greg Eales6-Sep-04 2:02 
GeneralRe: creating a "please wait" dialog Pin
sagmam12-Sep-04 2:48
sagmam12-Sep-04 2:48 
GeneralRe: creating a "please wait" dialog Pin
jonathan156-Sep-04 4:27
jonathan156-Sep-04 4:27 
GeneralConnecting to SQL Server DB Pin
RamBhatt5-Sep-04 4:13
RamBhatt5-Sep-04 4:13 
GeneralRe: Connecting to SQL Server DB Pin
Mekong River5-Sep-04 7:27
Mekong River5-Sep-04 7:27 
GeneralRe: Connecting to SQL Server DB Pin
RamBhatt5-Sep-04 20:03
RamBhatt5-Sep-04 20:03 
GeneralRe: Connecting to SQL Server DB Pin
jonathan156-Sep-04 4:38
jonathan156-Sep-04 4:38 
GeneralRe: Connecting to SQL Server DB Pin
Mekong River6-Sep-04 5:11
Mekong River6-Sep-04 5:11 
Generalsuccess Pin
RamBhatt6-Sep-04 18:25
RamBhatt6-Sep-04 18:25 
GeneralRe: success Pin
Mekong River7-Sep-04 21:42
Mekong River7-Sep-04 21:42 
GeneralRe: success Pin
RamBhatt8-Sep-04 3:44
RamBhatt8-Sep-04 3:44 
QuestionHow to use Pin
Murtuza Husain Miyan Patel5-Sep-04 4:08
professionalMurtuza Husain Miyan Patel5-Sep-04 4:08 
AnswerRe: How to use Pin
Mekong River5-Sep-04 7:22
Mekong River5-Sep-04 7:22 
GeneralDeleting contents of history folder Pin
nitin_ion4-Sep-04 0:33
nitin_ion4-Sep-04 0:33 
GeneralRe: Deleting contents of history folder Pin
Mekong River6-Sep-04 5:28
Mekong River6-Sep-04 5:28 
GeneralRe: Deleting contents of history folder Pin
nitin_ion6-Sep-04 19:00
nitin_ion6-Sep-04 19:00 
GeneralRe: Deleting contents of history folder Pin
Mekong River6-Sep-04 21:31
Mekong River6-Sep-04 21:31 

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.