Click here to Skip to main content
15,891,033 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: bluetooth application Pin
Johnny J.16-Jun-10 0:51
professionalJohnny J.16-Jun-10 0:51 
AnswerRe: bluetooth application Pin
Dave Kreskowiak16-Jun-10 1:54
mveDave Kreskowiak16-Jun-10 1:54 
AnswerRe: bluetooth application Pin
Richard MacCutchan16-Jun-10 1:56
mveRichard MacCutchan16-Jun-10 1:56 
AnswerRe: bluetooth application Pin
AlmightyEdge16-Jun-10 10:34
AlmightyEdge16-Jun-10 10:34 
QuestionUsing event in vbnet Pin
thesum15-Jun-10 23:39
thesum15-Jun-10 23:39 
AnswerRe: Using event in vbnet Pin
Dave Kreskowiak16-Jun-10 1:54
mveDave Kreskowiak16-Jun-10 1:54 
GeneralRe: Using event in vbnet Pin
thesum16-Jun-10 2:18
thesum16-Jun-10 2:18 
GeneralRe: Using event in vbnet Pin
Dave Kreskowiak16-Jun-10 8:42
mveDave Kreskowiak16-Jun-10 8:42 
The scanner is using a background thread internally. The library is raising the events on the UI (start up) thread. It may be possible to move the scanner component to a background thread also, but you may also run into problems with that. The people who can answer that question are the people who made the scanner and its SDK.


thesum wrote:
But i guess it is possible to launch the new form not in the thread that launch the event but from the one of the main form.


You cannot launch forms on anything other that the startup thread. SO, you have another problem. You cannot launch a new form for every scanned page while the first one is still active. You cannot show form after form after form from that event handler because ShowDialog will block and prevent the handler from executing again until the dialog is dismissed. You simply have not choices here. You have to change the design of your app, specifically, change the ShowDialog to Show.

A guide to posting questions on CodeProject[^]



Dave Kreskowiak
Microsoft MVP
Visual Developer - Visual Basic
     2006, 2007, 2008
But no longer in 2009...




GeneralRe: Using event in vbnet Pin
thesum16-Jun-10 20:48
thesum16-Jun-10 20:48 
GeneralRe: Using event in vbnet Pin
Dave Kreskowiak17-Jun-10 1:32
mveDave Kreskowiak17-Jun-10 1:32 
QuestionPdf Reader Pin
sarathy5615-Jun-10 23:04
sarathy5615-Jun-10 23:04 
AnswerRe: Pdf Reader Pin
Scubapro16-Jun-10 0:54
Scubapro16-Jun-10 0:54 
Questioni want to convert StrPtr to vb.net Pin
buffering8315-Jun-10 22:19
buffering8315-Jun-10 22:19 
AnswerRe: i want to convert StrPtr to vb.net Pin
DaveAuld15-Jun-10 22:29
professionalDaveAuld15-Jun-10 22:29 
QuestionInserted row in unbound datagridview Pin
C#Coudou15-Jun-10 13:54
C#Coudou15-Jun-10 13:54 
AnswerRe: Inserted row in unbound datagridview Pin
Wayne Gaylard15-Jun-10 15:41
professionalWayne Gaylard15-Jun-10 15:41 
GeneralRe: Inserted row in unbound datagridview Pin
C#Coudou15-Jun-10 15:55
C#Coudou15-Jun-10 15:55 
GeneralRe: Inserted row in unbound datagridview Pin
DaveAuld15-Jun-10 22:15
professionalDaveAuld15-Jun-10 22:15 
GeneralRe: Inserted row in unbound datagridview Pin
C#Coudou16-Jun-10 13:58
C#Coudou16-Jun-10 13:58 
QuestionBuild Error Pin
shereen_shf15-Jun-10 10:27
shereen_shf15-Jun-10 10:27 
AnswerRe: Build Error Pin
DaveAuld15-Jun-10 10:30
professionalDaveAuld15-Jun-10 10:30 
GeneralRe: Build Error Pin
shereen_shf15-Jun-10 10:42
shereen_shf15-Jun-10 10:42 
GeneralRe: Build Error Pin
Luc Pattyn15-Jun-10 12:43
sitebuilderLuc Pattyn15-Jun-10 12:43 
AnswerRe: Build Error Pin
AnnieMacD16-Jun-10 3:30
AnnieMacD16-Jun-10 3:30 
AnswerRe: Build Error Pin
AlmightyEdge16-Jun-10 10:38
AlmightyEdge16-Jun-10 10:38 

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.