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

Visual Basic

 
AnswerRe: User Font Pin
Dave Kreskowiak26-Apr-07 4:35
mveDave Kreskowiak26-Apr-07 4:35 
QuestionRe: User Font Pin
Anybloodyid26-Apr-07 6:38
Anybloodyid26-Apr-07 6:38 
AnswerRe: User Font Pin
Dave Kreskowiak26-Apr-07 14:13
mveDave Kreskowiak26-Apr-07 14:13 
AnswerRe: User Font Pin
ummoops26-Apr-07 5:34
ummoops26-Apr-07 5:34 
QuestionPrinting documents Pin
steve_rm25-Apr-07 7:06
steve_rm25-Apr-07 7:06 
AnswerRe: Printing documents Pin
kubben25-Apr-07 9:08
kubben25-Apr-07 9:08 
GeneralRe: Printing documents Pin
steve_rm25-Apr-07 22:21
steve_rm25-Apr-07 22:21 
GeneralRe: Printing documents Pin
kubben26-Apr-07 2:03
kubben26-Apr-07 2:03 
Hey Steve,

It is the main UI thread that is sleeping. If you don't set the sleep and close the process before the print job has spooled then the print job will be canceled.

If you want the app to still be responsive you should do something like thing:
For i As Integer = 1 To 10
  System.Threading.Thread.Sleep(500)
  Application.DoEvents()
Next i


So you only sleep for 1/2 a second and then process any windows events.

Hope that helps.
Ben
QuestionAdding image in a combobox in a datagrid with text Pin
ParagGupta25-Apr-07 6:24
ParagGupta25-Apr-07 6:24 
QuestionDynamic Data Exchange(DDE) Pin
jds120725-Apr-07 4:38
jds120725-Apr-07 4:38 
QuestionVB6 / Win 2oo3 SP2 Issue Pin
Narfix25-Apr-07 3:52
professionalNarfix25-Apr-07 3:52 
AnswerRe: VB6 / Win 2oo3 SP2 Issue Pin
nlarson1125-Apr-07 7:51
nlarson1125-Apr-07 7:51 
GeneralRe: VB6 / Win 2oo3 SP2 Issue Pin
Narfix25-Apr-07 20:38
professionalNarfix25-Apr-07 20:38 
GeneralRe: VB6 / Win 2oo3 SP2 Issue Pin
Narfix25-Apr-07 21:51
professionalNarfix25-Apr-07 21:51 
AnswerRe: VB6 / Win 2oo3 SP2 Issue Pin
nlarson1126-Apr-07 4:07
nlarson1126-Apr-07 4:07 
GeneralRe: VB6 / Win 2oo3 SP2 Issue Pin
Narfix26-Apr-07 4:57
professionalNarfix26-Apr-07 4:57 
QuestionSetting shared printer as default printer Pin
samerh25-Apr-07 3:06
samerh25-Apr-07 3:06 
AnswerRe: Setting shared printer as default printer Pin
Dave Kreskowiak25-Apr-07 4:30
mveDave Kreskowiak25-Apr-07 4:30 
QuestionProcess has Exited - Error Occured Pin
vasu_rk25-Apr-07 2:43
vasu_rk25-Apr-07 2:43 
AnswerRe: Process has Exited - Error Occured Pin
Dave Kreskowiak25-Apr-07 4:27
mveDave Kreskowiak25-Apr-07 4:27 
QuestionEquivalent of "Break on All Errors" in VB.NET Pin
pra.net25-Apr-07 2:33
pra.net25-Apr-07 2:33 
AnswerRe: Equivalent of "Break on All Errors" in VB.NET Pin
Dave Sexton25-Apr-07 3:53
Dave Sexton25-Apr-07 3:53 
AnswerRe: Equivalent of "Break on All Errors" in VB.NET Pin
Dave Kreskowiak25-Apr-07 4:25
mveDave Kreskowiak25-Apr-07 4:25 
AnswerRe: Equivalent of "Break on All Errors" in VB.NET Pin
TwoFaced25-Apr-07 6:26
TwoFaced25-Apr-07 6:26 
QuestionSystem.Diagnosis.Process Set Bounds Pin
_mubashir25-Apr-07 1:41
_mubashir25-Apr-07 1:41 

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.