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

C#

 
GeneralRe: NONCLIENTMETRICS marshalling Pin
Richard Deeming26-Nov-02 22:38
mveRichard Deeming26-Nov-02 22:38 
GeneralRe: NONCLIENTMETRICS marshalling Pin
Matze14-Dec-02 0:50
Matze14-Dec-02 0:50 
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 
Thanks for yours solutions but none worked.

Here the function(in MainForm) that add a new tabpage in TabControl
<br />
public void AddTabPage(string name, TabType type)<br />
		{<br />
			Crownwood.Magic.Controls.TabPage addedtab = new Crownwood.Magic.Controls.TabPage(name);<br />
			switch(type)<br />
			{<br />
				case TabType.Status:<br />
					TemplateStatusWindow status = new TemplateStatusWindow(this.m_connection);<br />
					addedtab.Control = status;<br />
					break;<br />
				case TabType.Channel:<br />
					TemplateChannelForm channel = new TemplateChannelForm(name, this.m_connection);<br />
					addedtab.Control = channel;<br />
					break;<br />
			}<br />
			addedtab.Tag = type;<br />
			addedtab.Name = "tab"+name;<br />
			int index = 0;<br />
			if(this.TabChannels.TabPages.Count == 0)<br />
			{<br />
				this.TabChannels.TabPages.Add(addedtab);<br />
			}<br />
			else<br />
			{<br />
				System.Windows.Forms.MessageBox.Show(System.Threading.Thread.CurrentThread.Name.ToString());<br />
				index = this.TabChannels.TabPages.Count;<br />
				this.TabChannels.TabPages.Insert(index, addedtab);<br />
			}<br />
			<br />
		}<br />

Here is the function called from IRCParser in IRCConnection
<br />
public void CreateChannelTabPage(string name)<br />
{<br />
     m_parent.AddTabPage(name, TabType.Channel);<br />
}<br />

And finnaly, the function that invoke all the chain in the Thread ReceiveThread
<br />
private void cmd331(string[] args)<br />
		{<br />
			if(args[2].IndexOf("#")>-1 || args[2].IndexOf("&")>-1)<br />
			{<br />
				string msg = JoinString(args, 3, args.Length);<br />
				msg = msg.Replace(":", "");<br />
#if Terminal<br />
				connection.Received("*** No topic set in "+args[2]+crlf);<br />
#elif MainForm<br />
				connection.ReceiveTo("Status", "*** No topic set in "+args[2]+crlf, Color.Red);<br />
#endif<br />
			}<br />
			else<br />
			{<br />
#if Terminal<br />
				connection.Received("*** You have joined "+args[3]+crlf);<br />
#elif MainForm<br />
				connection.CreateChannelTabPage(args[3]);<br />
#endif<br />
			}<br />
		}<br />

Hope this will you help you to help me Wink | ;) ^_^

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
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 
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 

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.