我前一段时间在做一个自定义查询,想把界面做成象SQL Server的设计视图那样,终于在MSDN里面找到了一些资料
MSDN的一些URL(把msdn的安装路径改成你自己的路径):
一、添加一个User Control,控件结构如下
VERSION 5.00
Begin VB.UserControl TableView
AutoRedraw = -1 'True
ClientHeight = 4260
ClientLeft = 0
ClientTop = 0
ClientWidth = 3855
EditAtDesignTime= -1 'True
KeyPreview = -1 'True
ScaleHeight = 4260
ScaleWidth = 3855
Begin VB.PictureBox picTitle
BackColor = &H80000003&
BorderStyle = 0 'None
Height = 315
Left = 120
ScaleHeight = 315
ScaleWidth = 2715
TabIndex = 1
Top = 120
Width = 2715
Begin VB.Image imgClose
Height = 210
Index = 1
Left = 2400
Picture = "TableView.ctx":0000
Top = 0
Width = 240
End
Begin VB.Image imgTitle
Height = 180
Left = 60
Picture = "TableView.ctx":02E2
Top = 60
Width = 180
End
Begin VB.Image imgClose
Height = 210
Index = 0
Left = 1560
Picture = "TableView.ctx":04D4
Top = 0
Width = 240
