Click here to Skip to main content
15,917,793 members
Home / Discussions / C#
   

C#

 
Questioncreating multiple events in C# Pin
anilv202015-Apr-14 0:28
anilv202015-Apr-14 0:28 
AnswerRe: creating multiple events in C# Pin
Simon_Whale15-Apr-14 0:40
Simon_Whale15-Apr-14 0:40 
AnswerRe: creating multiple events in C# PinPopular
Pete O'Hanlon15-Apr-14 0:57
mvePete O'Hanlon15-Apr-14 0:57 
QuestionRegarding sending message using c# Pin
Member 1075021214-Apr-14 23:46
Member 1075021214-Apr-14 23:46 
AnswerRe: Regarding sending message using c# Pin
Richard MacCutchan15-Apr-14 1:34
mveRichard MacCutchan15-Apr-14 1:34 
GeneralRe: Regarding sending message using c# Pin
Member 1075021215-Apr-14 3:19
Member 1075021215-Apr-14 3:19 
GeneralRe: Regarding sending message using c# Pin
Wes Aday15-Apr-14 3:58
professionalWes Aday15-Apr-14 3:58 
QuestionLocalization in WPF MVVM Pin
sifi mohamed amine14-Apr-14 23:41
sifi mohamed amine14-Apr-14 23:41 
SuggestionRe: Localization in WPF MVVM Pin
Richard Deeming15-Apr-14 2:08
mveRichard Deeming15-Apr-14 2:08 
QuestionRetriving user information in a .aspx page Pin
krish099114-Apr-14 20:47
krish099114-Apr-14 20:47 
AnswerRe: Retriving user information in a .aspx page Pin
OriginalGriff14-Apr-14 21:11
mveOriginalGriff14-Apr-14 21:11 
Questionhow to mange seat booking for online movir ticket booking Pin
Member 1032370414-Apr-14 19:06
Member 1032370414-Apr-14 19:06 
AnswerRe: how to mange seat booking for online movir ticket booking Pin
Peter Leow14-Apr-14 19:28
professionalPeter Leow14-Apr-14 19:28 
AnswerRe: how to mange seat booking for online movir ticket booking Pin
Bernhard Hiller14-Apr-14 22:38
Bernhard Hiller14-Apr-14 22:38 
QuestionSimple calculation with double or float numbers Pin
Mario 5614-Apr-14 13:13
Mario 5614-Apr-14 13:13 
AnswerRe: Simple calculation with double or float numbers Pin
Dave Kreskowiak14-Apr-14 15:13
mveDave Kreskowiak14-Apr-14 15:13 
GeneralRe: Simple calculation with double or float numbers Pin
Mario 5615-Apr-14 2:31
Mario 5615-Apr-14 2:31 
GeneralRe: Simple calculation with double or float numbers Pin
Dave Kreskowiak15-Apr-14 14:36
mveDave Kreskowiak15-Apr-14 14:36 
AnswerRe: Simple calculation with double or float numbers Pin
harold aptroot14-Apr-14 21:38
harold aptroot14-Apr-14 21:38 
GeneralRe: Simple calculation with double or float numbers Pin
Mario 5615-Apr-14 2:43
Mario 5615-Apr-14 2:43 
GeneralRe: Simple calculation with double or float numbers Pin
harold aptroot15-Apr-14 2:48
harold aptroot15-Apr-14 2:48 
QuestionI can not add record to my table Pin
ehabaziz200114-Apr-14 8:37
ehabaziz200114-Apr-14 8:37 
SuggestionRe: I can not add record to my table Pin
Richard Deeming14-Apr-14 8:53
mveRichard Deeming14-Apr-14 8:53 
GeneralRe: I can not add record to my table Pin
ehabaziz200117-Apr-14 11:52
ehabaziz200117-Apr-14 11:52 
QuestionHow to reuse event Pin
Member 1034709214-Apr-14 4:30
Member 1034709214-Apr-14 4:30 
How to reuse event

I am creating one c# project. In this project I have one mdi form and many child forms.
All the child forms contains one panel named as panel1.
Now when child form opens i use the following code in all child form

all child forms' load event contains the following line.

C#
this.WindowState = FormWindowState.Maximized;


and all child forms' resize event contains the following line.

C#
panel1.Left = (this.ClientSize.Width - panel1.Width) / 2;
panel1.Top = (this.ClientSize.Height - panel1.Height) / 2;


so my question is if possible that the above code i write only once so i donot write this code in all the child forms load and resize event.

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.