Click here to Skip to main content
15,915,094 members
Home / Discussions / C#
   

C#

 
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 
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 
They were static members of the my TextBoxEx class before.
All I did was build a new class and pass the methods to be static members of the new class. then call them as the new class methods.
e.g. if my old class was Aclass and the new Bclass then in Aclass I call:
Bclass.SendMessage(...);

I have a few overloads such as
[DllImport("coredll")]
public static extern IntPtr SendMessage(IntPtr hWnd, int msg, IntPtr wParam, String lParam);
[DllImport("coredll")]
public static extern IntPtr SendMessage(IntPtr hWnd, int msg, IntPtr wParam, byte[] lParam);

that take addresses (pointers). I only use :
[DllImport("coredll")]
public static extern IntPtr SendMessage(IntPtr hWnd, int msg, int wParam, int lParam);
to call with 0 lparam and wparam thus:
Bclass.SendMessage(this.Handle, (int)ClipboardMessage.WM_UNDO, 0, 0);

I probably should use 2 pointers (IntPtr) instead and lock the IntPtr for the GC before calling this method?

Thanks,
Aviv.

avivhal
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 
GeneralRe: Question about efficiency - Hashtable key types Pin
Tristan Rhodes23-Dec-04 9:57
Tristan Rhodes23-Dec-04 9:57 
GeneralRe: Question about efficiency - Hashtable key types Pin
Matt Gerrans23-Dec-04 11:47
Matt Gerrans23-Dec-04 11:47 

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.