Click here to Skip to main content
16,006,768 members
Home / Discussions / C#
   

C#

 
AnswerRe: Hide Name Pin
Judah Gabriel Himango2-Jan-07 5:27
sponsorJudah Gabriel Himango2-Jan-07 5:27 
AnswerRe: Hide Name Pin
Ed.Poore2-Jan-07 6:07
Ed.Poore2-Jan-07 6:07 
QuestionCreating hidden window [modified] Pin
mikker_1232-Jan-07 4:47
mikker_1232-Jan-07 4:47 
AnswerRe: Creating hidden window Pin
Luc Pattyn2-Jan-07 7:27
sitebuilderLuc Pattyn2-Jan-07 7:27 
GeneralRe: Creating hidden window [modified] Pin
mikker_1232-Jan-07 11:39
mikker_1232-Jan-07 11:39 
GeneralRe: Creating hidden window Pin
Luc Pattyn2-Jan-07 14:14
sitebuilderLuc Pattyn2-Jan-07 14:14 
GeneralRe: Creating hidden window Pin
mikker_1232-Jan-07 21:11
mikker_1232-Jan-07 21:11 
GeneralRe: Creating hidden window Pin
Luc Pattyn3-Jan-07 3:33
sitebuilderLuc Pattyn3-Jan-07 3:33 
One or more of the arguments to CreateWindowEx seems to be wrong.
If we assume Windows did report an accurate error code (ERROR_INVALID_WINDOW_HANDLE),
then the problem must be with one of the handles
(i.e. parent/menu/instance/lpParam) but then MSDN says:
- parent: "This parameter is optional for pop-up windows"
- menu: more complex text, but then there also exists ERROR_INVALID_MENU_HANDLE
which is not what you are getting
- instance: "Windows NT/2000/XP: This value is ignored"
but your reference article did supply hInstance here (I replaced it by null because
of MSDN's "is ignored")
- lpParam: is explained as a pointer, not really a handler.

So maybe MSDN is wrong and it just needs an hInstance.
Getting hInstance is somewhat tricky; my best guess is:

IntPtr hInstance=Marshal.GetHINSTANCE(GetType().Module);


which only works inside an instance (= non-static) method.

Once again good luck !

BTW, you are not running on a 64-bit OS by any chance ?

Smile | :)

Luc Pattyn

GeneralRe: Creating hidden window Pin
mikker_1233-Jan-07 9:17
mikker_1233-Jan-07 9:17 
GeneralRe: Creating hidden window Pin
Luc Pattyn3-Jan-07 9:57
sitebuilderLuc Pattyn3-Jan-07 9:57 
GeneralRe: Creating hidden window Pin
mmf8-Oct-08 0:18
mmf8-Oct-08 0:18 
QuestionHow would i go about inheriting System.IO.FileStream? [modified] Pin
Anthony Mushrow2-Jan-07 4:42
professionalAnthony Mushrow2-Jan-07 4:42 
AnswerRe: How would i go about inheriting System.IO.FileStream? Pin
Judah Gabriel Himango2-Jan-07 5:21
sponsorJudah Gabriel Himango2-Jan-07 5:21 
QuestionWordwrapping when printing Pin
numbers1thru92-Jan-07 3:49
numbers1thru92-Jan-07 3:49 
AnswerRe: Wordwrapping when printing Pin
Luc Pattyn2-Jan-07 16:02
sitebuilderLuc Pattyn2-Jan-07 16:02 
QuestionCustomising the Color of check mark in a checkedListBox Pin
Sreelakshmi Desai2-Jan-07 3:43
Sreelakshmi Desai2-Jan-07 3:43 
QuestionDataGridView Pin
robmays2-Jan-07 3:18
robmays2-Jan-07 3:18 
AnswerRe: DataGridView Pin
mwith2-Jan-07 5:59
mwith2-Jan-07 5:59 
Questionlandscape vs portrait Pin
quiteSmart2-Jan-07 2:32
quiteSmart2-Jan-07 2:32 
AnswerRe: landscape vs portrait Pin
Luc Pattyn2-Jan-07 3:03
sitebuilderLuc Pattyn2-Jan-07 3:03 
QuestionPrinting in C# Pin
numbers1thru92-Jan-07 1:44
numbers1thru92-Jan-07 1:44 
AnswerRe: Printing in C# Pin
Mircea Puiu2-Jan-07 2:10
Mircea Puiu2-Jan-07 2:10 
QuestionMaking a full-screen windows application. Pin
Hussam Fattahi2-Jan-07 0:51
Hussam Fattahi2-Jan-07 0:51 
AnswerRe: Making a full-screen windows application. Pin
Mircea Puiu2-Jan-07 1:11
Mircea Puiu2-Jan-07 1:11 
GeneralRe: Making a full-screen windows application. Pin
Hussam Fattahi2-Jan-07 3:00
Hussam Fattahi2-Jan-07 3:00 

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.