开发者

Proper way to name elements in Visuabl Basic. EX: frmMain

I'm looking for a reference that tells you the proper way to name form elements in Visual Basic.

E开发者_开发问答X: btnGo frmMain


See Visual Basic Naming Conventions on MSDN.

As far as Hungarian Notation, as in your examples, this is discouraged. The type of the object doesn't need to be reflected in the variable name. It is better to give your variables good descriptive names for what they represent.

So, instead of btnGo, call it GoToPage. Instead of frmMain, call it CustomerDetails. Use a descriptive name for the function of the control.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜