Click here to Skip to main content
15,896,727 members
Home / Discussions / C#
   

C#

 
Questioncan c# have object* ? Pin
Anonymous26-Nov-02 2:49
Anonymous26-Nov-02 2:49 
AnswerRe: can c# have object* ? Pin
leppie26-Nov-02 6:26
leppie26-Nov-02 6:26 
AnswerRe: can c# have object* ? Pin
Eric Gunnerson (msft)26-Nov-02 9:38
Eric Gunnerson (msft)26-Nov-02 9:38 
GeneralRe: can c# have object* ? Pin
Anonymous26-Nov-02 14:51
Anonymous26-Nov-02 14:51 
GeneralRe: can c# have object* ? Pin
Eric Gunnerson (msft)27-Nov-02 12:46
Eric Gunnerson (msft)27-Nov-02 12:46 
AnswerRe: can c# have object* ? Pin
Andy Smith27-Nov-02 16:24
Andy Smith27-Nov-02 16:24 
GeneralNONCLIENTMETRICS marshalling Pin
Matze25-Nov-02 20:31
Matze25-Nov-02 20:31 
GeneralRe: NONCLIENTMETRICS marshalling Pin
leppie25-Nov-02 22:49
leppie25-Nov-02 22:49 
GeneralRe: NONCLIENTMETRICS marshalling Pin
Matze25-Nov-02 23:07
Matze25-Nov-02 23:07 
GeneralRe: NONCLIENTMETRICS marshalling Pin
Stephane Rodriguez.25-Nov-02 23:48
Stephane Rodriguez.25-Nov-02 23:48 
GeneralRe: NONCLIENTMETRICS marshalling Pin
Matze26-Nov-02 0:16
Matze26-Nov-02 0:16 
GeneralRe: NONCLIENTMETRICS marshalling Pin
Anonymous26-Nov-02 5:19
Anonymous26-Nov-02 5:19 
GeneralRe: NONCLIENTMETRICS marshalling Pin
leppie26-Nov-02 8:23
leppie26-Nov-02 8:23 
GeneralRe: NONCLIENTMETRICS marshalling Pin
Richard Deeming26-Nov-02 6:21
mveRichard Deeming26-Nov-02 6:21 
GeneralRe: NONCLIENTMETRICS marshalling Pin
Matze26-Nov-02 19:27
Matze26-Nov-02 19:27 
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 

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.