Click here to Skip to main content
15,887,376 members
Home / Discussions / C#
   

C#

 
GeneralNeed help for my IRC Client Pin
Shock The Dark Mage25-Nov-02 16:21
Shock The Dark Mage25-Nov-02 16:21 
GeneralRe: Need help for my IRC Client Pin
leppie25-Nov-02 22:52
leppie25-Nov-02 22:52 
GeneralRe: Need help for my IRC Client Pin
Shaun Wilde26-Nov-02 4:12
Shaun Wilde26-Nov-02 4:12 
GeneralRe: Need help for my IRC Client Pin
Michael Mac26-Nov-02 10:28
Michael Mac26-Nov-02 10:28 
GeneralRe: Need help for my IRC Client Pin
leppie26-Nov-02 11:00
leppie26-Nov-02 11:00 
GeneralRe: Need help for my IRC Client Pin
Shock The Dark Mage26-Nov-02 13:12
Shock The Dark Mage26-Nov-02 13:12 
GeneralRe: Need help for my IRC Client Pin
leppie26-Nov-02 13:28
leppie26-Nov-02 13:28 
GeneralRe: Need help for my IRC Client Pin
Shock The Dark Mage27-Nov-02 15:38
Shock The Dark Mage27-Nov-02 15:38 
Thanks leppie. Now it's work. Your code need another thing. You need to declare a delegate because Invoke method require a delegate.
In MainForm:
public delegate void AddingChannelTab();
New create CreateChannelTabPage function.
<br />
public void CreateChannelTabPage(string name)<br />
		{<br />
			if (m_parent.InvokeRequired) <br />
			{   <br />
				try<br />
				{<br />
					m_parent.ChannelToAdd = name;<br />
					AeruIRC.MainForm.AddingChannelTab addingchannel = new AeruIRC.MainForm.AddingChannelTab(m_parent.AddTabPage2);<br />
					m_parent.Invoke(addingchannel); <br />
				}<br />
				catch(Exception ex)<br />
				{<br />
					MessageBox.Show(ex.Message);<br />
				}<br />
			} <br />
			else <br />
				m_parent.AddTabPage(name, TabType.Channel);<br />
		}<br />

The only problem is invoking the delegate with parameters. But now, I call a function without parameters. But it's work Smile | :) Smile | :)


Trully, if there evil in this world,
It lies within the heard of mankind




Shock The Dark Mage
shock@romhack.net
Main Project: Aeru IRC - http://www.sf.net/projects/aeruirc
GeneralRe: Need help for my IRC Client Pin
leppie28-Nov-02 0:09
leppie28-Nov-02 0:09 
GeneralRe: Need help for my IRC Client Pin
Michael Mac27-Nov-02 3:29
Michael Mac27-Nov-02 3:29 
GeneralRe: Need help for my IRC Client Pin
leppie27-Nov-02 6:58
leppie27-Nov-02 6:58 
Generalmouse hover over MenuItem..it's not working... Pin
lnong25-Nov-02 14:31
lnong25-Nov-02 14:31 
GeneralResX Error Pin
Jassim Rahma25-Nov-02 11:26
Jassim Rahma25-Nov-02 11:26 
GeneralRe: ResX Error Pin
Matze26-Nov-02 0:24
Matze26-Nov-02 0:24 
GeneralCustomized Form Designer Pin
Jassim Rahma24-Nov-02 23:13
Jassim Rahma24-Nov-02 23:13 
GeneralWindows About Box Pin
Jassim Rahma24-Nov-02 23:11
Jassim Rahma24-Nov-02 23:11 
GeneralCheck mdb Password Pin
Jassim Rahma24-Nov-02 23:10
Jassim Rahma24-Nov-02 23:10 
GeneralAudio/Video Library Pin
Jassim Rahma24-Nov-02 23:04
Jassim Rahma24-Nov-02 23:04 
GeneralRe: Audio/Video Library Pin
leppie25-Nov-02 7:21
leppie25-Nov-02 7:21 
GeneralRe: Audio/Video Library Pin
Jassim Rahma25-Nov-02 7:27
Jassim Rahma25-Nov-02 7:27 
GeneralRe: Audio/Video Library Pin
Christian Graus25-Nov-02 12:07
protectorChristian Graus25-Nov-02 12:07 
Questionwhen can we run our C# program in Mac or Linux? Pin
KeithPRC24-Nov-02 16:56
KeithPRC24-Nov-02 16:56 
AnswerRe: when can we run our C# program in Mac or Linux? Pin
Not Active24-Nov-02 17:40
mentorNot Active24-Nov-02 17:40 
GeneralRe: when can we run our C# program in Mac or Linux? Pin
KeithPRC24-Nov-02 18:12
KeithPRC24-Nov-02 18:12 
GeneralRe: when can we run our C# program in Mac or Linux? Pin
SimonS24-Nov-02 20:32
SimonS24-Nov-02 20:32 

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.