In VB, I really enjoy going with [ControlName] _ [ControlType]. I can’t remember how I started to do this, but I suppose this seems like a logical order. It also simplifies coding, because code sentences are grouped by control description, not by type of control.
I call control the same way in C #, except that I follow the C # preference for camelCase: [controlName] _ [controlType].
I also use my own shortcuts for control types, although they are not vague.
Examples:
VB: Save_Btn and NewFile_MItem (menu item)
C #: Save_Btn and NewFile_MItem
This works for me, but of course every programmer has his own style.
Dog Lover Dec 02 '16 at 3:45 2016-12-02 03:45
source share