Click here to Skip to main content
15,890,438 members
Home / Discussions / C#
   

C#

 
GeneralRe: Multiple functions Pin
cstudent116-Apr-14 6:30
cstudent116-Apr-14 6:30 
GeneralRe: Multiple functions Pin
cstudent116-Apr-14 6:45
cstudent116-Apr-14 6:45 
GeneralRe: Multiple functions Pin
Richard MacCutchan16-Apr-14 6:55
mveRichard MacCutchan16-Apr-14 6:55 
QuestionAn entity object cannot be referenced by multiple instances of IEntityChangeTracker Pin
Šangeet Šhah15-Apr-14 20:56
professionalŠangeet Šhah15-Apr-14 20:56 
AnswerRe: An entity object cannot be referenced by multiple instances of IEntityChangeTracker Pin
Dave Kreskowiak16-Apr-14 1:31
mveDave Kreskowiak16-Apr-14 1:31 
Questionhow to access built - in class Pin
Member 1034709215-Apr-14 18:54
Member 1034709215-Apr-14 18:54 
AnswerRe: how to access built - in class Pin
Mycroft Holmes15-Apr-14 20:08
professionalMycroft Holmes15-Apr-14 20:08 
AnswerRe: how to access built - in class Pin
OriginalGriff15-Apr-14 21:07
mveOriginalGriff15-Apr-14 21:07 
As Mycroft says, you cannot change the Form class, any more than you can change all Ford cars to have six wheels becasue the design information is not available to you for modification.

However, there are two ways to do what you want:
1) You can create a new MyForm class, which derives from Form and includes your code. Then use that as the base for your forms instead of the Form class and they will inherit the functionality.
2) You can change the items that are created when you create a new form or a new project by editingthe templates VS uses to create the actual files: Adding your items to Visual Studio default files[^] explains the process.
Those who fail to learn history are doomed to repeat it. --- George Santayana (December 16, 1863 – September 26, 1952)
Those who fail to clear history are doomed to explain it. --- OriginalGriff (February 24, 1959 – ∞)

QuestionRegarding Tabs Pin
Mahesh Devikar15-Apr-14 17:43
Mahesh Devikar15-Apr-14 17:43 
AnswerRe: Regarding Tabs Pin
Dave Kreskowiak15-Apr-14 17:58
mveDave Kreskowiak15-Apr-14 17:58 
QuestionExport & Import database Pin
Member 1072402015-Apr-14 10:38
Member 1072402015-Apr-14 10:38 
AnswerRe: Export & Import database Pin
Richard MacCutchan15-Apr-14 11:57
mveRichard MacCutchan15-Apr-14 11:57 
AnswerRe: Export & Import database Pin
Bernhard Hiller15-Apr-14 22:17
Bernhard Hiller15-Apr-14 22:17 
QuestionIncorrect syntax near ',' Pin
Syafiqah Zahirah15-Apr-14 6:05
Syafiqah Zahirah15-Apr-14 6:05 
AnswerRe: Incorrect syntax near ',' Pin
Eddy Vluggen15-Apr-14 6:15
professionalEddy Vluggen15-Apr-14 6:15 
GeneralRe: Incorrect syntax near ',' Pin
Syafiqah Zahirah15-Apr-14 6:21
Syafiqah Zahirah15-Apr-14 6:21 
AnswerRe: Incorrect syntax near ',' Pin
Richard Andrew x6415-Apr-14 6:17
professionalRichard Andrew x6415-Apr-14 6:17 
GeneralRe: Incorrect syntax near ',' Pin
Syafiqah Zahirah15-Apr-14 6:32
Syafiqah Zahirah15-Apr-14 6:32 
AnswerRe: Incorrect syntax near ',' Pin
Pete O'Hanlon15-Apr-14 6:29
mvePete O'Hanlon15-Apr-14 6:29 
GeneralRe: Incorrect syntax near ',' Pin
Syafiqah Zahirah15-Apr-14 6:40
Syafiqah Zahirah15-Apr-14 6:40 
Questionsend message using c#.net Pin
Member 1075021215-Apr-14 4:14
Member 1075021215-Apr-14 4:14 
QuestionRe: send message using c#.net Pin
ZurdoDev15-Apr-14 4:53
professionalZurdoDev15-Apr-14 4:53 
AnswerRe: send message using c#.net Pin
OriginalGriff15-Apr-14 5:18
mveOriginalGriff15-Apr-14 5:18 
Questionsend message using c#.net Pin
Member 1075021215-Apr-14 4:12
Member 1075021215-Apr-14 4:12 
Questioncreating multiple events in C# Pin
anilv202015-Apr-14 0:28
anilv202015-Apr-14 0: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.