Click here to Skip to main content
15,913,854 members
Home / Discussions / C#
   

C#

 
GeneralNo ToolBarButton images in runtime Pin
Skynyrd23-Dec-04 13:30
Skynyrd23-Dec-04 13:30 
GeneralRe: No ToolBarButton images in runtime Pin
Heath Stewart23-Dec-04 20:49
protectorHeath Stewart23-Dec-04 20:49 
GeneralRe: No ToolBarButton images in runtime Pin
Skynyrd24-Dec-04 0:54
Skynyrd24-Dec-04 0:54 
GeneralSendMessage issue Pin
Aviv Halperin23-Dec-04 10:32
Aviv Halperin23-Dec-04 10:32 
GeneralRe: SendMessage issue Pin
Matt Gerrans23-Dec-04 11:30
Matt Gerrans23-Dec-04 11:30 
GeneralRe: SendMessage issue Pin
Aviv Halperin23-Dec-04 13:12
Aviv Halperin23-Dec-04 13:12 
GeneralRe: SendMessage issue Pin
Heath Stewart23-Dec-04 20:57
protectorHeath Stewart23-Dec-04 20:57 
GeneralRe: SendMessage issue Pin
Aviv Halperin24-Dec-04 4:02
Aviv Halperin24-Dec-04 4:02 
Neither DllImportAttribute.CharSet nor SendMessageW worked.

I did get it to work though (somehow)...
I took the declarations I have of SendMessage(I have a few overloads) :
[DllImport("coredll")]
public static extern IntPtr SendMessage(IntPtr hWnd, int msg, int wParam, int lParam);

and wrapped them in a separate class.
Then I called them as this class's static members and it works!

I do not understand why would this solve the problem though...?
Maybe the problem was that they were members of a TextBox (Form) derived class and this caused congestion problems with the Form’s own messages?
I wish I had the OS source code so I could check this;)




avivhal
GeneralRe: SendMessage issue Pin
Heath Stewart27-Dec-04 10:12
protectorHeath Stewart27-Dec-04 10:12 
GeneralRe: SendMessage issue Pin
Aviv Halperin27-Dec-04 20:41
Aviv Halperin27-Dec-04 20:41 
GeneralRe: SendMessage issue Pin
Heath Stewart28-Dec-04 5:01
protectorHeath Stewart28-Dec-04 5:01 
GeneralPrinting RichText text and image Pin
srunion23-Dec-04 9:53
srunion23-Dec-04 9:53 
GeneralRe: Printing RichText text and image Pin
Jay Shankar23-Dec-04 14:20
Jay Shankar23-Dec-04 14:20 
General.NET CF and SendMessage Pin
Aviv Halperin23-Dec-04 9:18
Aviv Halperin23-Dec-04 9:18 
GeneralXP Style problem Pin
Stanciu Vlad23-Dec-04 8:31
Stanciu Vlad23-Dec-04 8:31 
GeneralRe: XP Style problem Pin
Heath Stewart23-Dec-04 9:08
protectorHeath Stewart23-Dec-04 9:08 
GeneralSpellcheck in C#.NET Pin
saptarishi200123-Dec-04 8:26
saptarishi200123-Dec-04 8:26 
GeneralRegex problem Pin
Yaakov Davis23-Dec-04 7:09
Yaakov Davis23-Dec-04 7:09 
GeneralRe: Regex problem Pin
leppie23-Dec-04 7:41
leppie23-Dec-04 7:41 
GeneralRe: Regex problem Pin
Yaakov Davis23-Dec-04 7:56
Yaakov Davis23-Dec-04 7:56 
GeneralRe: Regex problem Pin
TyronX23-Dec-04 8:09
TyronX23-Dec-04 8:09 
GeneralRe: Regex problem Pin
leppie23-Dec-04 8:10
leppie23-Dec-04 8:10 
GeneralRe: Regex problem Pin
Yaakov Davis23-Dec-04 8:50
Yaakov Davis23-Dec-04 8:50 
GeneralQuestion about efficiency - Hashtable key types Pin
Tristan Rhodes23-Dec-04 6:28
Tristan Rhodes23-Dec-04 6:28 
GeneralRe: Question about efficiency - Hashtable key types Pin
leppie23-Dec-04 7:42
leppie23-Dec-04 7:42 

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.