A
andrew.bell.ia
Hi,
I want to call Invoke() on a dialog that has not yet been made visible
with "Show()". When I make the Invoke() call, I get an exception like:
System.InvalidOperationException: Cannot call Invoke or BeginInvoke on
a control until the window handle has been created.
at System.Windows.Forms.Control.MarshaledInvoke(Control caller,
Delegate method, Object[] args, Boolean synchronous)
at System.Windows.Forms.Control.Invoke(Delegate method,
Object[] args)
at NRI.Scan.DoqRequest.getImage()
in c:\acbell\si\NriScan\DoqRequest.cs:line 147
How can I give the dialog a handle without making it visible? I tried
calling CreateControl() on the dialog to no avail. If the dialog is
made visible, everything works fine, but of course, this isn't what I
want
Thanks for any help,
-- Andrew Bell
(e-mail address removed)
I want to call Invoke() on a dialog that has not yet been made visible
with "Show()". When I make the Invoke() call, I get an exception like:
System.InvalidOperationException: Cannot call Invoke or BeginInvoke on
a control until the window handle has been created.
at System.Windows.Forms.Control.MarshaledInvoke(Control caller,
Delegate method, Object[] args, Boolean synchronous)
at System.Windows.Forms.Control.Invoke(Delegate method,
Object[] args)
at NRI.Scan.DoqRequest.getImage()
in c:\acbell\si\NriScan\DoqRequest.cs:line 147
How can I give the dialog a handle without making it visible? I tried
calling CreateControl() on the dialog to no avail. If the dialog is
made visible, everything works fine, but of course, this isn't what I
want

Thanks for any help,
-- Andrew Bell
(e-mail address removed)