不同语言和库中的控件和可编程对象的比较

本主题列出了 Visual Basic 6.0 控件、Windows 窗体控件、ASP.NET 和 HTML 服务器控件、MFC 和 ATL 类。

所有 Visual Studio 语言都可以访问由 Windows 窗体、ASP.NET 服务器和 HTML 服务器公开的控件。

控件表

Visual Basic 6.0 对象

Windows 窗体控件

ASP.NET 服务器控件 1

HTML Server Control — HTML 服务器控件

MFC 类

ATL 类

ComboBox

ComboBox

DropDownList

n/a

CComboBox Class

n/a

ImageCombo

ComboBox

n/a

n/a

CComboBoxEx Class

n/a

CheckBox

CheckBox

CheckBox

CheckBoxList

HtmlInputCheckBox

CButton Class

n/a

CommandButton

Button

Button

LinkButton

ImageButton

HtmlInputButton

HtmlButton

CButton Class

n/a

Frame

GroupBox

Panel

FlowLayoutPanel

TableLayoutPanel

Panel

n/a

n/a

n/a

OptionButton

RadioButton

RadioButton

RadioButtonList

HtmlInputRadioButton

CButton Class

n/a

CommonDialog

FileDialog

PrintDialog

ColorDialog

FontDialog

n/a

n/a

CCommonDialog Class

n/a

ListBox

ListBox

ListBox

HtmlSelect

CListBox Class

n/a

FileSystemObject

System.IO 中的类

n/a

n/a

CFile Class

n/a

HScrollBar

VScrollBar

HScrollBar

VScrollBar

n/a

n/a

CScrollBar Class

n/a

COOLBar

ToolStrip

n/a

n/a

CReBarCtrl Class

n/a

Label

Label

ListBox

n/a

CStatic

n/a

TextBox

TextBox

TextBox

HtmlInputText

CEdit Class

n/a

MaskedEdBox

MaskedTextBox

n/a

n/a

n/a

n/a

Menu

ToolStrip

MainMenu

ContextMenu

Menu

n/a

CMenu Class

n/a

Animation

控件上的图像支持动画 GIF

n/a

n/a

CAnimateCtrl Class

n/a

Form

Form

n/a

HtmlForm

CDialog Class

CFormView Class

CDialogImpl

CWindow

CWindowImpl Class

Timer

Timer

n/a

n/a

CWnd::SetTimer

n/a

DataGrid

DataGridView

DataGrid

GridView

DataList

Repeater

HtmlTable

n/a

n/a

DateTimePicker

DateTimePicker

n/a

n/a

CDateTimeCtrl Class

n/a

ImageList

ImageList

n/a

n/a

CImageList Class

n/a

ListView

ListView

n/a

n/a

CListCtrl Class

n/a

Internet Transfer

WebBrowser

System.Net 中的类

n/a

HtmlInputFile

CHttpConnection Class

CFtpConnection Class

n/a

MonthView

MonthCalendar

Calendar

n/a

CMonthCalCtrl Class

n/a

ProgressBar

ProgressBar

n/a

n/a

CProgressCtrl Class

n/a

PictureBox

PictureBox

Image

HtmlInputImage

CPictureHolder Class

CImage Class

RichTextBox

RichTextBox

n/a

n/a

CRichEditCtrl Class

n/a

SSTab

TabStrip

TabControl

n/a

n/a

CTabCtrl Class

n/a

StatusBar

StatusStrip

StatusBar

n/a

n/a

CStatusBarCtrl Class

n/a

Slider

TrackBar

n/a

n/a

CSliderCtrl Class

n/a

Toolbar

ToolStrip

ToolBar

n/a

n/a

CToolBarCtrl

n/a

TreeView

TreeView

TreeView

n/a

CTreeCtrl Class

n/a

UpDown

NumericUpDown

DomainUpDown

n/a

n/a

CSpinButtonCtrl Class

n/a

WinSock

System.Net 中的类

n/a

n/a

CAsyncSocket Class

n/a

1 ASP.NET 包含一些 Web 服务器控件,这些控件提供 Visual Basic 6.0 控件不具备的功能,如日历控件、网页导航控件和网站用户登录控件。有关更多信息,请参见 ASP.NET Web 服务器控件

请参见

概念

Control Classes

其他资源

Windows 窗体控件

ATL Window Classes

等效语言