Click here to Skip to main content
15,915,770 members
Home / Discussions / C#
   

C#

 
GeneralAdding attributes to inherited members Pin
Paul Watson3-Dec-04 0:51
sitebuilderPaul Watson3-Dec-04 0:51 
GeneralRe: Adding attributes to inherited members Pin
Daniel Turini3-Dec-04 1:02
Daniel Turini3-Dec-04 1:02 
GeneralUsing FTP Pin
Member 10976992-Dec-04 22:50
Member 10976992-Dec-04 22:50 
GeneralRe: Using FTP Pin
Daniel Turini3-Dec-04 1:05
Daniel Turini3-Dec-04 1:05 
GeneralRe: Using FTP Pin
Alex Korchemniy3-Dec-04 3:25
Alex Korchemniy3-Dec-04 3:25 
QuestionPassing data from a static method? Pin
DaLLe1232-Dec-04 21:24
DaLLe1232-Dec-04 21:24 
AnswerRe: Passing data from a static method? Pin
Vector72-Dec-04 22:53
Vector72-Dec-04 22:53 
GeneralRe: Passing data from a static method? Pin
DaLLe1232-Dec-04 23:00
DaLLe1232-Dec-04 23:00 
AnswerRe: Passing data from a static method? Pin
Stefan Troschuetz2-Dec-04 23:04
Stefan Troschuetz2-Dec-04 23:04 
Generalsystem notification in Window Pin
ppp0012-Dec-04 20:35
ppp0012-Dec-04 20:35 
GeneralRe: system notification in Window Pin
Sebastian Schneider3-Dec-04 1:13
Sebastian Schneider3-Dec-04 1:13 
GeneralI want a two dimensional matrix of boxes on my fom. Pin
Anonymous2-Dec-04 19:37
Anonymous2-Dec-04 19:37 
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 

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.