How to find a list of Hungarian designation prefixes?

I know that there are many standards for writing code. And some policy tools (like FxCop ) for checking your written statements.

What is the best Hungarian notation or any other snippets for writing code?

Like:

  • lbl at the beginning of label naming

  • TXT at the beginning of the naming TextBox

etc.


Based on the answers, is it a good idea to use a Hungarian record or not?

+3
source share
3 answers

The Microsoft Framework Development Guide , under General Naming Conventions, says:

Word selection

. , HorizontalAlignment - , AlignmentHorizontal.

. CanScrollHorizontally , ScrollableX ( X).

, .

.

- , .

+2

" " . Joel Spolsky , , .

: , , . ; , , / , .

+9

lbl txt: , / .

Microsoft has a list of these . Exposure:

    Prefix    Object Type                           Example
    -------------------------------------------------------
    ani       Animation button                      aniMailBox
    cbo       Combo box and drop down list box      cboEnglish
    chk       Checkbox                              chkReadOnly
    clp       Picture clip                          clpToolbar
    cmd (3d)  Command button (3D)                   cmdOk (cmd3dOk)
    dat       Data control                          datBiblio
    dir       Directory list box                    dirSource
    dlg       Common dialog control                 dlgFileOpen
    drv       Drive list box                        drvTarget
    fil       File list box                         filSource
    frm       Form                                  frmEntry
    gau       Gauge                                 gauStatus
    gpb       Group push button                     gpbChannel
    gra       Graph                                 graRevenue
    grd       Grid                                  grdPrices
    hsb       Horizontal scroll bar                 hsbVolume
    img       Image                                 imgIcon
    ink       Pen Ink                               inkMap
    key       Keyboard key status                   keyCaps
    lbl       Label                                 lblHelpMessage
    lin       Line                                  linVertical
    lst       List box                              lstPolicyCodes
    mdi       MDI child form                        mdiNote
    mnu       Menu                                  mnuFileOpen
    opt (3d)  Option Button (3d)                    optRed (opt3dRed)
    pic       Picture                               picVGA
    pnl3d     3d Panel                              pnl3d
    shp       Shape controls                        shpCircle
    spn       Spin control                          spnPages
    txt       Text Box                              txtLastName
    tmr       Timer                                 tmrAlarm
    vsb       Vertical scroll bar                   vsbRate
+5
source

Source: https://habr.com/ru/post/1735706/


All Articles