Click here to Skip to main content
15,914,594 members
Home / Discussions / C#
   

C#

 
GeneralRe: c+ instead of c# Pin
Dave Kreskowiak21-May-04 8:54
mveDave Kreskowiak21-May-04 8:54 
GeneralPinvoke ddlimport Pin
jelleo21-May-04 9:21
jelleo21-May-04 9:21 
GeneralRe: Pinvoke ddlimport Pin
Dave Kreskowiak21-May-04 9:51
mveDave Kreskowiak21-May-04 9:51 
GeneralHandle to form Pin
jelleo21-May-04 10:11
jelleo21-May-04 10:11 
GeneralCannot Call Invoke or InvokeAsync Pin
GostWryter21-May-04 1:25
GostWryter21-May-04 1:25 
GeneralRe: Cannot Call Invoke or InvokeAsync Pin
Dave Kreskowiak21-May-04 3:08
mveDave Kreskowiak21-May-04 3:08 
GeneralRe: Cannot Call Invoke or InvokeAsync Pin
Heath Stewart21-May-04 4:23
protectorHeath Stewart21-May-04 4:23 
GeneralRe: Cannot Call Invoke or InvokeAsync Pin
Grimolfr21-May-04 3:57
Grimolfr21-May-04 3:57 
You're trying to call invoke on the control before the control's window is created and the handle is assigned.

I get around this with an if/else

if (myControl.IsHandleCreated)
{
    // Do whatever you're gonna do by invoking
}
else
{
    // Do the same thing, but on the current thread
    // instead of using invoke
}



Grim
(aka Toby)
MCDBA, MCSD, MCP+SB

GeneralRe: Cannot Call Invoke or InvokeAsync Pin
Heath Stewart21-May-04 4:24
protectorHeath Stewart21-May-04 4:24 
GeneralRe: Cannot Call Invoke or InvokeAsync Pin
Dave Kreskowiak21-May-04 4:36
mveDave Kreskowiak21-May-04 4:36 
GeneralRe: Cannot Call Invoke or InvokeAsync Pin
Heath Stewart21-May-04 4:42
protectorHeath Stewart21-May-04 4:42 
GeneralRe: Cannot Call Invoke or InvokeAsync Pin
Dave Kreskowiak21-May-04 4:44
mveDave Kreskowiak21-May-04 4:44 
GeneralRe: Cannot Call Invoke or InvokeAsync Pin
Dave Kreskowiak21-May-04 4:43
mveDave Kreskowiak21-May-04 4:43 
Generalbest pratice Pin
the last free name21-May-04 1:25
the last free name21-May-04 1:25 
GeneralRe: best pratice Pin
Dave Kreskowiak21-May-04 3:18
mveDave Kreskowiak21-May-04 3:18 
GeneralRe: best pratice Pin
the last free name21-May-04 4:34
the last free name21-May-04 4:34 
GeneralMSDN Pin
sreejith ss nair21-May-04 1:22
sreejith ss nair21-May-04 1:22 
GeneralRe: MSDN Pin
CWIZO21-May-04 2:10
CWIZO21-May-04 2:10 
GeneralRe: MSDN Pin
sreejith ss nair21-May-04 2:28
sreejith ss nair21-May-04 2:28 
GeneralRe: MSDN Pin
Aryadip21-May-04 2:42
Aryadip21-May-04 2:42 
GeneralRe: MSDN Pin
sreejith ss nair21-May-04 2:54
sreejith ss nair21-May-04 2:54 
GeneralRe: MSDN Pin
Dave Kreskowiak21-May-04 3:01
mveDave Kreskowiak21-May-04 3:01 
GeneralRe: MSDN Pin
Grimolfr21-May-04 4:05
Grimolfr21-May-04 4:05 
GeneralRe: MSDN Pin
Heath Stewart21-May-04 4:18
protectorHeath Stewart21-May-04 4:18 
GeneralOdd threads Pin
Christer Claesson21-May-04 1:20
Christer Claesson21-May-04 1:20 

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.