Click here to Skip to main content
15,894,328 members
Home / Discussions / C#
   

C#

 
GeneralRe: I want a two dimensional matrix of boxes on my fom. Pin
Dave Kreskowiak3-Dec-04 4:50
mveDave Kreskowiak3-Dec-04 4:50 
GeneralXP/2003 Icons Pin
Brendan Vogt2-Dec-04 19:33
Brendan Vogt2-Dec-04 19:33 
GeneralRe: XP/2003 Icons Pin
Tom John3-Dec-04 2:47
Tom John3-Dec-04 2:47 
Questionint casting does not behave with Math.Round with NaN? Pin
Felix Cho2-Dec-04 19:24
Felix Cho2-Dec-04 19:24 
AnswerRe: int casting does not behave with Math.Round with NaN? Pin
Felix Cho3-Dec-04 4:43
Felix Cho3-Dec-04 4:43 
AnswerRe: int casting does not behave with Math.Round with NaN? Pin
Dave Kreskowiak3-Dec-04 5:02
mveDave Kreskowiak3-Dec-04 5:02 
QuestionHow Can I have an Label Control array of two dimensional On form. Pin
Anonymous2-Dec-04 19:08
Anonymous2-Dec-04 19:08 
AnswerRe: How Can I have an Label Control array of two dimensional On form. Pin
Tom John3-Dec-04 2:53
Tom John3-Dec-04 2:53 
You can't have control arrays on a form, however you can have an event handler that fires on multiple events from multiple controls providing they have the same signature:

this.button1.Click += new System.EventHandler(this.button_Click);
this.button2.Click += new System.EventHandler(this.button_Click);
this.button3.Click += new System.EventHandler(this.button_Click);
this.button4.Click += new System.EventHandler(this.button_Click);

private void button1_Click(object sender, System.EventArgs e)
	{
		//Some code...
	}


To change multiple controls at the same time at design time, click on the first, hold down CTRL and click on the other in turn, hit F4 and you'll get the properties that can be changes for all the selected controls at the same time.

Hope this helps

Tom
QuestionHow Can I have an Label Control array of two dimensional On form. Pin
Anonymous2-Dec-04 19:08
Anonymous2-Dec-04 19:08 
GeneralMaking button visible in all rows in datagrid Pin
jagan792-Dec-04 18:13
jagan792-Dec-04 18:13 
GeneralPassing ComboBox Items Pin
azusakt2-Dec-04 17:13
azusakt2-Dec-04 17:13 
GeneralRe: Passing ComboBox Items Pin
Stefan Troschuetz2-Dec-04 21:24
Stefan Troschuetz2-Dec-04 21:24 
Generalpass point list to c++ function Pin
cchere2-Dec-04 16:08
cchere2-Dec-04 16:08 
GeneralProperties Tab Shows a Blank White Page Pin
kayhustle2-Dec-04 15:48
kayhustle2-Dec-04 15:48 
Generalsend maile in c# Pin
mehdidj2-Dec-04 15:45
mehdidj2-Dec-04 15:45 
Generalsend maile in c# Pin
mehdidj2-Dec-04 15:42
mehdidj2-Dec-04 15:42 
GeneralRe: send maile in c# Pin
Luis Alonso Ramos2-Dec-04 17:12
Luis Alonso Ramos2-Dec-04 17:12 
GeneralRe: send maile in c# Pin
Heath Stewart3-Dec-04 8:55
protectorHeath Stewart3-Dec-04 8:55 
GeneralRe: send maile in c# Pin
Luis Alonso Ramos3-Dec-04 12:35
Luis Alonso Ramos3-Dec-04 12:35 
GeneralRe: send maile in c# Pin
Heath Stewart3-Dec-04 21:49
protectorHeath Stewart3-Dec-04 21:49 
GeneralRe: send maile in c# Pin
Heath Stewart3-Dec-04 9:09
protectorHeath Stewart3-Dec-04 9:09 
GeneralUnicode text entry for RichTextBox differs from other edit tools....Why Pin
Jay Shankar2-Dec-04 15:22
Jay Shankar2-Dec-04 15:22 
GeneralChanging screen resolution Pin
Anonymous2-Dec-04 13:41
Anonymous2-Dec-04 13:41 
GeneralRe: Changing screen resolution Pin
Dave Kreskowiak2-Dec-04 16:14
mveDave Kreskowiak2-Dec-04 16:14 
GeneralRe: Changing screen resolution Pin
Alex Korchemniy2-Dec-04 16:28
Alex Korchemniy2-Dec-04 16:28 

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.