Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What do you rename Form1 to?

Tags:

c#

.net

winforms

This is pure curiosity...

Most 'professionals' will likely never use "Form1" as a valid class name in their Windows Forms projects. I usually end up renaming it to MainForm.

What do you do?

Edit: For those of you that use hungarian notation (frmMain) - why? I don't think it would still be considered a standard practice... is it?

like image 576
Brandon Avatar asked Nov 27 '22 10:11

Brandon


1 Answers

MainForm. I loathe Hungarian notation, and FxCop complains about it in any case, so MainForm, OkButton, AboutDialog, etc.

like image 56
John Saunders Avatar answered Dec 16 '22 03:12

John Saunders