public Chat_offscreen(Chat_screen chat_screen) { InitializeComponent(); this.chat_screen = chat_screen; this.listBoxChat.ItemAdded += new EventHandler <ListBoxItemEventArgs>(listBoxChat_ItemAdded); this.chat_screen.Resize += new System.EventHandler(this.Chat_screen_Resize); listBoxChat.ContextMenuStrip = contextMenuStrip; contextMenuStrip.Items.Add("Slett"); contextMenuStrip.Items.Add("Utesteng IP"); contextMenuStrip.ItemClicked += new ToolStripItemClickedEventHandler(contextMenuStrip_ItemClicked); }
public Chat() { chat_screen = new Chat_screen(); chat_offscreen = new Chat_offscreen(chat_screen); }