Click here to Skip to main content
15,900,258 members
Home / Discussions / C#
   

C#

 
GeneralPixel Color Pin
marnicola21-Aug-02 9:58
marnicola21-Aug-02 9:58 
GeneralRe: Pixel Color Pin
Philip Fitzsimons22-Aug-02 0:31
Philip Fitzsimons22-Aug-02 0:31 
GeneralSizing of controls in a status bar Pin
Nnamdi Onyeyiri21-Aug-02 6:36
Nnamdi Onyeyiri21-Aug-02 6:36 
GeneralRe: Sizing of controls in a status bar Pin
leppie21-Aug-02 8:20
leppie21-Aug-02 8:20 
GeneralTypeConverter Attribute and DataSource property Pin
Shaun Wilde21-Aug-02 6:14
Shaun Wilde21-Aug-02 6:14 
GeneralRe: TypeConverter Attribute and DataSource property Pin
Shaun Wilde21-Aug-02 6:53
Shaun Wilde21-Aug-02 6:53 
GeneralC++ CALLBACK to Managed Event Pin
leppie21-Aug-02 5:31
leppie21-Aug-02 5:31 
GeneralRe: C++ CALLBACK to Managed Event Pin
Stephane Rodriguez.21-Aug-02 7:36
Stephane Rodriguez.21-Aug-02 7:36 
Each callback becomes a delegate, let's take the example is if we were dealing with EnumThreadProc(HWND hwnd, int lParam), in C# it is :
// declaration
public delegate bool EnumThreadProc(IntPtr hwnd, IntPtr lParam);
[DllImport("user32.dll", CharSet=CharSet.Auto)]
    public static extern bool EnumThreadWindows(int threadId, EnumThreadProc pfnEnum, IntPtr lParam);


// use
EnumThreadProc callbackProc = new EnumThreadProc(MyEnumThreadWindowsProc);
EnumThreadWindows(threadId, callbackProc, IntPtr.Zero /*lParam*/);

bool MyEnumThreadWindowsProc(IntPtr hwnd, IntPtr lParam)
{
 ...
}




And I swallow a small raisin.

GeneralRe: C++ CALLBACK to Managed Event Pin
leppie21-Aug-02 8:00
leppie21-Aug-02 8:00 
GeneralEUREKA - I have found it :) Pin
leppie21-Aug-02 11:34
leppie21-Aug-02 11:34 
GeneralRe: EUREKA - I have found it :) Pin
Stephane Rodriguez.21-Aug-02 21:31
Stephane Rodriguez.21-Aug-02 21:31 
GeneralRe: EUREKA - I have found it :) Pin
leppie21-Aug-02 21:53
leppie21-Aug-02 21:53 
GeneralRe: EUREKA - I have found it :) Pin
imran_rafique22-Aug-02 0:52
imran_rafique22-Aug-02 0:52 
GeneralRe: EUREKA - I have found it :) Pin
leppie22-Aug-02 1:12
leppie22-Aug-02 1:12 
GeneralRe: EUREKA - I have found it :) Pin
Stephane Rodriguez.22-Aug-02 1:35
Stephane Rodriguez.22-Aug-02 1:35 
QuestionAnyone has any library for lan communication written in c#?? Pin
Wang Kaiming21-Aug-02 5:07
Wang Kaiming21-Aug-02 5:07 
AnswerRe: Anyone has any library for lan communication written in c#?? Pin
Philip Fitzsimons22-Aug-02 0:35
Philip Fitzsimons22-Aug-02 0:35 
GeneralDeriving with "heavy" constructors Pin
EdgarBM21-Aug-02 0:56
EdgarBM21-Aug-02 0:56 
GeneralRe: Deriving with "heavy" constructors Pin
leppie21-Aug-02 1:08
leppie21-Aug-02 1:08 
GeneralRe: Deriving with "heavy" constructors Pin
Ryan Cromwell21-Aug-02 2:48
Ryan Cromwell21-Aug-02 2:48 
GeneralSignature of an object. Pin
4space21-Aug-02 0:54
4space21-Aug-02 0:54 
GeneralComponent from different Forms and DataBinding Pin
Zombies with Coffee, LLC20-Aug-02 11:31
professionalZombies with Coffee, LLC20-Aug-02 11:31 
GeneralRe: Component from different Forms and DataBinding Pin
jparsons20-Aug-02 15:37
jparsons20-Aug-02 15:37 
GeneralQuestion about global common areas Pin
tmagoo20-Aug-02 11:28
tmagoo20-Aug-02 11:28 
GeneralRe: Question about global common areas Pin
Michael Mac20-Aug-02 21:20
Michael Mac20-Aug-02 21: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.