Click here to Skip to main content
15,922,650 members
Home / Discussions / C#
   

C#

 
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 
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 
I got it, my logic and persistance served my well. Roll eyes | :rolleyes:

Solution: bold is changes : had to wait 3 min for event to be raised, but it happened when it should Smile | :)

delegate void GetSyncCallBack(IntPtr handle, int channel, int data, int user); //internal

void OnGetSyncCallBack(IntPtr handle, int channel, int data, int user) //internal
{
	//here we handle what is returned, for now just raise event
	OnStreamEnd();
}

IntPtr HSYNC;
GetSyncCallBack getSync;

EventHandler streamendstore; //implement a delegate storage (not sure about these terms)

public event EventHandler StreamEnd 
{
	add 
	{
		streamendstore += value; // add to store
		getSync += new GetSyncCallBack( OnGetSyncCallBack );
		HSYNC = _SetSync(base.Handle, 2, 0, getSync , 0);
	}
	remove
	{
		streamendstore -= value; //remove from store
		getSync -= new GetSyncCallBack(OnGetSyncCallBack);
		_RemoveSync(base.Handle, HSYNC);
	}
}

protected virtual void OnStreamEnd()
{
	if( streamendstore != null)streamendstore(this, null); //raise event via the store
}



Hope this helps someone in the future Smile | :)

MYrc : A .NET IRC client with C# Plugin Capabilities. See
http://sourceforge.net/projects/myrc
for more info. Big Grin | :-D
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 
GeneralRe: Question about global common areas Pin
tmagoo21-Aug-02 2:48
tmagoo21-Aug-02 2:48 
GeneralRe: Question about global common areas Pin
tmagoo21-Aug-02 12:13
tmagoo21-Aug-02 12:13 

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.