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

C#

 
GeneralRe: Programmatically get conditional compilation symbols? Pin
Jon Hulatt21-Jan-09 0:11
Jon Hulatt21-Jan-09 0:11 
AnswerRe: Programmatically get conditional compilation symbols? Pin
PIEBALDconsult21-Jan-09 5:41
mvePIEBALDconsult21-Jan-09 5:41 
QuestionNew to Custom Controls - Question Pin
Programm3r20-Jan-09 23:12
Programm3r20-Jan-09 23:12 
AnswerRe: New to Custom Controls - Question Pin
Rob Philpott20-Jan-09 23:37
Rob Philpott20-Jan-09 23:37 
GeneralRe: New to Custom Controls - Question Pin
Programm3r21-Jan-09 0:59
Programm3r21-Jan-09 0:59 
AnswerRe: New to Custom Controls - Question Pin
DaveyM6920-Jan-09 23:47
professionalDaveyM6920-Jan-09 23:47 
GeneralRe: New to Custom Controls - Question Pin
Programm3r21-Jan-09 1:00
Programm3r21-Jan-09 1:00 
QuestionRe: New to Custom Controls - Question Pin
Programm3r21-Jan-09 2:00
Programm3r21-Jan-09 2:00 
Hi,

Just a quick question, lets say you add a ToolStripButton to the ToolStrip, and on the OnClick of the button another Form must open-up...Confused | :confused:

using System.Windows.Forms;
namespace MyControls
{    
	public class MyToolStrip :ToolStrip    
	{        
		ToolStripLabel label1;        
		ToolStripButton button1;
		
		public MyToolStrip()        
		{            
			InitializeComponent();        
		}        
		
		private void InitializeComponent()        
		{            
			button1 = new ToolStripButton();
			button.Text = "Open another Form";
			button.Click += new System.EventHandler(button1_Click);
			
			label1 = new ToolStripLabel();            
			// ToolStripItems            
			label1.Text = "Tool Strip Label";            
			
			// Add the items            
			Items.Add(label1);        
			Items.Add(button1);
		} 
		
		void button1_Click(object sender, System.EventArgs e)
		{
			// Go to the other form ??
		}
	}
}


Any ideas ??
Many thanks in advance
Regards,


The only programmers that are better those C# programmers are those who code in 1's and 0's Green Alien | [Alien]



Smile | :) Programm3r

My Blog: ^_^

AnswerRe: New to Custom Controls - Question Pin
DaveyM6921-Jan-09 3:17
professionalDaveyM6921-Jan-09 3:17 
GeneralRe: New to Custom Controls - Question Pin
Programm3r21-Jan-09 3:44
Programm3r21-Jan-09 3:44 
GeneralRe: New to Custom Controls - Question Pin
DaveyM6921-Jan-09 3:54
professionalDaveyM6921-Jan-09 3:54 
AnswerRe: New to Custom Controls - Question Pin
Thomas Stockwell21-Jan-09 5:37
professionalThomas Stockwell21-Jan-09 5:37 
QuestionC# audio conferencing Pin
Phan7om20-Jan-09 22:59
Phan7om20-Jan-09 22:59 
AnswerRe: C# audio conferencing Pin
Nagy Vilmos20-Jan-09 23:18
professionalNagy Vilmos20-Jan-09 23:18 
GeneralRe: C# audio conferencing Pin
musefan20-Jan-09 23:21
musefan20-Jan-09 23:21 
GeneralRe: C# audio conferencing Pin
Nagy Vilmos20-Jan-09 23:29
professionalNagy Vilmos20-Jan-09 23:29 
GeneralRe: C# audio conferencing Pin
Pete O'Hanlon20-Jan-09 23:55
mvePete O'Hanlon20-Jan-09 23:55 
GeneralRe: C# audio conferencing Pin
musefan21-Jan-09 0:37
musefan21-Jan-09 0:37 
GeneralRe: C# audio conferencing Pin
Christian Graus21-Jan-09 1:14
protectorChristian Graus21-Jan-09 1:14 
GeneralRe: C# audio conferencing Pin
Nagy Vilmos21-Jan-09 1:41
professionalNagy Vilmos21-Jan-09 1:41 
GeneralRe: C# audio conferencing Pin
musefan21-Jan-09 2:21
musefan21-Jan-09 2:21 
GeneralRe: C# audio conferencing Pin
Nagy Vilmos21-Jan-09 1:33
professionalNagy Vilmos21-Jan-09 1:33 
GeneralRe: C# audio conferencing Pin
musefan21-Jan-09 2:25
musefan21-Jan-09 2:25 
GeneralRe: C# audio conferencing Pin
Nagy Vilmos21-Jan-09 2:33
professionalNagy Vilmos21-Jan-09 2:33 
GeneralRe: C# audio conferencing Pin
Unsy21-Jan-09 4:18
Unsy21-Jan-09 4:18 

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.