社区
控件
帖子详情
vb里有没有不于data关联的grid控件,在哪?
yran
2003-03-17 07:23:51
vb里有没有不于data关联的grid控件,在哪?
...全文
25
3
打赏
收藏
vb里有没有不于data关联的grid控件,在哪?
vb里有没有不于data关联的grid控件,在哪?
复制链接
扫一扫
分享
转发到动态
举报
写回复
配置赞助广告
用AI写文章
3 条
回复
切换为时间正序
请发表友善的回复…
发表回复
打赏红包
还想懒够
2003-03-18
打赏
举报
回复
Up
foreverforyou
2003-03-17
打赏
举报
回复
MSHFlexGrid
Cooly
2003-03-17
打赏
举报
回复
MSFlexGrid = Microsoft Flex Grid Control,可以绑定数据源,也可以通过代码填写数据
VB
常用附加
控
件【特别整理了表格
控
件】
表格
控
件总览: 在
VB
开发环境中,表格
控
件在界面开发元素中占有重要的地位。它不仅有外观整洁、表达形式规范的优点,而且更重要的是它较高的信息表现率(就是相对于其他
控
件来说能够表达更多的信息),随着信息时代的到来,它的应用将更加的广泛。 那么在
VB
平台下,如何操作这一功能强大的
控
件元素呢?事实上我们知道,
VB
平台下面的表格
控
件是相当丰富的,总结下来提供了4种类型:Microsoft
Data
Bound
grid
Control、Microsoft
Data
grid
Control、Microsoft Flex
grid
Control、Microsoft Hierarchial Flex
grid
Control. 这四种表格各有其特点,下面我们一一讨论。 1. Microsoft
Data
Bound
grid
Control 此
控
件主要用于数据绑定(可以不绑定,但是因为不提供对单个cell的
控
制支持,所以实际上这样做是不经济的)。具体说来,就是数据源比较固定的情况下可以使用这种
控
件。 具体使用方法是设定此
控
件的
data
source属性,就可以不用编写任何代码就可以显示该数据源所指向的记录数据。比如可以将
data
source设置为一个
data
控
件,而
data
控
件又指向数据库"成绩"的 一个"语文"表,那么当程序运行时,它就自动显示此"语文"表的数据。 基本步骤如下: 1、向工程上添加Microsoft
Data
Bound
Grid
Control
控
件,即DB
Grid
控
件。 2、在窗体上添加DB
Grid
控
件DB
Grid
1和
Data
控
件
Data
1。 3、设置
Data
1的
Data
baseName属性为你要看的数据库的名字。 4、设置
Data
1的RecordSource属性为表的名字或合法的SQL Select语句。 5、设置DB
Grid
1的
Data
Source属性为
Data
1。 从上面的分析看得出来,这个
控
件虽然操作方便,但是它也有局限性,就是不能对显示的数据进行灵活的
控
制操作,比如有些数据允许用户修改,有些数据却不允许用户修改,而此
控
件却只能提供全部数据源的原子操作:即要么全部允许修改,要么就全部不允许。还有另外此
控
件也不提供对单个单元格(cell)进行操作,所以提供不了更为个性化的界面风格。 2. Microsoft
Data
grid
Control 此
控
件跟前面介绍的
Data
Bound
grid
Control
控
件很相似,也是主要进行绑定操作,而缺点和
Data
Bound
grid
Control完全一样。但是它跟
Data
Bound
grid
Control不一样的是其数据源的驱动引擎只能是OLEDB形式的,不能是DAO,比如就可以使用ADO数据
控
件,不能使用
DATA
控
件。而
Data
Bound
grid
Control却刚好和它相反,这一点在开发中一定要注意。 3. Microsoft Flex
grid
Control与Microsoft Hierarchial Flex
grid
Control. 这
里
重点介绍这两种
控
件,因为在实际开发中,这两种
控
件应用的场合更多一些,它不仅能够反映数据,而且也能把数据的修改信息反映到数据库中去,所以弥补了上述两种
控
件的不足。 如果数据不需要修改,那么可以进行绑定操作,其方法跟前面介绍的完全一样,就是通过设置
Data
Source属性来完成数据的显示工作。但是实际开发中,需要对整个表格
控
件更为灵活的显示
控
制。 在给出例程之前,有必要对这一
控
件进行比较详尽的认识:这种
控
件允许将文本或者图象放置于每个单元格之中,
控
件的Row与Col属性允许用户在代码中指定当前行和列,当然也可通过操作鼠标和键盘来改变这两个属性,而text属性指明当前单元格的文本。如果单元格的文本太长而不能完全显示出来的话,可以通过将WordWrap属性设置为true来达到显示的目的。下面将比较重要的属性小结如下:
Data
Source---------用来指定需要绑定的数据源,比如
data
控
件。 Cellpicture----------用来设定当前单元格的图象,便于显示该图象。此属性不能在设计时使用。 Col,Row---------------设定当前列和当前行,注意它们均是从0开始的,如果同时设定它们,可以指定当前的单元格。设计时也不能使用。 Cols,Rows---------------设置表格
控
件总的列数和行数。 Hwnd---------------表格句柄,可以结合Windows API对表格
控
件进行更高级的
控
制。 Text---------------指定当前的单元格的文本内容。 TextMatrix(i,j)-------此属性比较重要,它用来指定第I行和第j列所确定的单元格的文本内容。它等价于下面的代码: MSHFlex
Grid
1.Rows =i MSHFlex
Grid
1.Cols =j MSHFlex
Grid
1.Text =指定的字符串 WordWrap-------为ture时可以在当前单元格换行显示,否则如果要显示的字符的长度超过列宽,那么就不能显示完全。
vb
控
件开发 开发ocx
01 , 01.txt 《
VB
6.0中通过MSChart
控
件调用数据库 》 02 , 02.txt 《 用
VB
6实现动态增减
控
件 》 03 , 03.txt ActiveX
控
件的创建 04 , 04.txt ADO
控
件和
DATA
控
件的冲突(不能共存)的解决方法 05 , 05.txt Combo的自动查询技术 06 , 06.txt DirectX7.0使用心得(1) 07 , 07.txt DirectX7.0使用心得(2) 08 , 08.txt DirectX7.0使用心得(3) 09 , 09.txt FSO对象模型在
VB
中的应用 10 , 10.txt MsComm
控
件的文字传输范例 11 , 11.txt Office或IE4风格的ToolBar 12 , 12.txt Regsvr32.exe注册
控
件的具体用法 13 , 13.txt TextBox的自动调节 14 , 14.txt TextBox实现打印机效果 15 , 15.txt TreeView的基本操作 16 , 16.txt
VB
5中DB
GRID
控
件在
VB
6中使用 17 , 17.txt
VB
6.0动态加载ActiveX
控
件漫谈 18 , 18.txt
VB
与MS-Draw开发通用作图软件 19 , 19.txt
VB
中APP对象及其应用 20 , 20.txt
VB
中list
控
件的功能扩充 21 , 21.txt
VB
中防止将重复项目添加到列表框
控
件中 22 , 22.txt
VB
中用Multimedia MCI
控
件开发多媒体应用 23 , 23.txt Win Api在
VB
中的妙用 24 , 24.txt WINDOWS SCRIPT HOST对象在
VB
中的使用 25 , 25.txt 安装向导生成程序组并建立多个程序项 26 , 26.txt 保存复选框选项 27 , 27.txt 不用OCX来创建自己的
控
件(一) 28 , 28.txt 成组更新
控
件属性 29 , 29.txt 创建数据驱动窗体 30 , 30.txt 得到鼠标位置 31 , 31.txt 调整 Combo 下拉部分的宽度 32 , 32.txt 动态加入
控
件到
VB
控
件数组中 33 , 33.txt 对ListView中的列排序 34 , 34.txt 放一个Combo到Toolbar中 35 , 35.txt 改变 ListIndex而不发生 Click 事
VB
程序设计入门基础
VB
入门基础。清楚易懂,适合初学者本课程主要从开发环境、窗体、命令按钮、文本框、标签、消息框和输入框、代码基础、选择结构、循环结构、数组、过程、
控
件等方面进行讲解
博图WinCC V16用ADODB、
Data
Grid
控
件显示SQL Server数据.docx
博图WinCC V16用ADODB、
Data
Grid
控
件
VB
脚本显示SQL Server数据
VB
编程资源大全(英文
控
件)
1,animate.zipThis ActiveX DLL (Source Included) shows how to create animated dialogs in
VB
5. 2,MetricConversionDLL.zip34 Metric conversion routines in a
VB
5 DLL. Callible directly or just call the nice front end.3,ControlP.zipWith help of this OCX you can call 39 control panels in windows!4,RemBuilderplus.zipActiveX that allows the ability to add comment blocks with ease.5,VertMenu.zipThis is a free active ocx with full source code for a vertical menu with the look and feel of Outlook 97. 6,dm10e.zipDevMailer adds SMTP email sending abilities to your
VB
, ASP,
VB
A, Delphi, or Perl program in just seconds! Features 7,HideAway.zipAn alignable tool bar which can be hidden. Also includes smooth scrolling for hiding/unhiding.8,tlsGUI.zipTILISOFT GUI ActiveX Controls - ImageLabel, ScrollPanel, SplitPanel, Brief9,recordsetEng.zipThis application shows how a DLLActiveX queries a
Data
base and returns the recordset to the Standard EXE application.10,THtml.ZipShow Page Title for file selected with ".HTM" or ".ASP" extension11,Fancy_Button.zipFancy Button12,TransFX.zipTransitionFX is an ActiveX control that allows you to make professional quality slide shows, picture presentations or screen savers13,Roman.zipThis activeX control convert Decimal numbers to Roman numerals and back 14,pgBar.zipCarrick Progress Bar 1.0 - replacement for standard progress bar with customizable colors and styles15,JPGMaker.zipJPGMaker is an ActiveX control designed to compress bitmap images and save them in JPG format16,pictuner.zipPicTuner is an ActiveX control designed to adjust contrast, brightness and color balance of bitmap images. It supports the following file formats: *.jpg, *.bmp, *.dib. 17,Hyperlink.zipHyperlink ActiveX control allows you to include hypertext links on your forms18,shortcut.zipShortcut is an ActiveX control designed to create shortcuts to programs and documents and place them on windows desktop.19,PicOpener.zipPicOpener is an ActiveX control that allows you to read image files in over 50 formats and convert them to BMP bitmaps20,PicConverter.zipRead over 50 and write 15 image file formats.21,labelblink.zipBlinks The Caption In A Label Box22,UnZipper.zipActiveX control designed to easily manipulate ZIP archives from within your application. 23,gurhancoolbuttonocx.zipGurhanCoolButton is a free ActiveX Control that Acts as a Flat Button. Background Pictures and Icons can be added with ease24,pktextline.zipTextbox with modern design25,DirScanner.zipDirScanner is a free ActiveX control designed to scan directory/drive and save results to a file26,activeEjecutor.zipThis control launches a program and waits until it has finished or27,REGASP.zipDLL which provides access to the Windows 2000 registry through Active Server Pages (ASP) code. 28,ColorProgressBar.zipReplaces the standard progress bar with one that is on the order of O(n^2) times faster, with color options, and directional options.29,MDITaskBarDemo.zipThis zip file contains all the code and procedures necessary to create and implement an MDI TaskBar control. 30,AnimatedAgent.zipTwo
VB
Scripts which allow the users to INSTANTLY create MS Agent EMAIL and MS AGENT Web pages or add MS Agent to web pages31,label3d.zipThis ActiveX Control creates a 3D Label. 32,Shcmbbox1.zipShComboBox ActiveX Control v1.0 behaves exactly like the Combo box in Windows Explorer showing all the folders and even files in the Shell's namespace33,fldrvw21.zipFolderView ActiveX Control 2.1 allows you to add a Windows Explorer-like treeview in your application.34,controlcenterlefttrans.zipControl that centers text right, left or in the middle.35,BetaDBToolBar.zipDBToolBar (
Data
base ToolBar) for Add, Edit, Delete, etc...36,CodeDll.zipMiniCalculator DLL that allows input keys/Calculation results directly into a TextBox, ComboBox, etc.37,hyperlink082800.zipThis Hyperlink ActiveX Control will allow you to insert an Hyperlink which will be very useful if you want to give a link to your website from your program. 38,DropdownCalculator.zipNice Drop-Down ActiveX Control Calculator. It is like a combo box, but it will drop down a calculator, which you can use for calculation39,ColorPicker1.zipIt is a color picker control, which is almost similar to those you find in MS Office 2000 applications.40,PowerPrint.zipEasiest way to print. This Will Print Left Align, Right Align, Center Align. OCX. Full demonstration easy to use.41,fb.zipFolder Browser lets you select the directories the easy and elegant way.42,TimeLed.zipThis simple ActiveX control shows a graphic clock with led simulation43,MouseHook.zipThis control provides a nice, elegant way of reacting to the movement of the mouse wheel and other mouse functionality44,rscomm.zipSerial Comm control that provides the ability to send and receive 5 bit baudot with its built in ASCII to baudo and baudo to ASCII converter. Also can tx and rx any baudrate 45 to 115k!45,Mouse.zipVery useful mouse events, such as MouseMove, MousePosition, ClickRightButton, ClickLeftButton and etc.46,cdwriter.zipThis is a relatively simple cd writer code, comes with a freeware ocx. 47,converter.zipThis example project shows you how to use my binary.ocx. 48,autoreg.zipAuto easy, fast super Register/Unregister ocx/dll files at the same time!49,EasterEgg.zipthis is an EasterEgg OCX that you can drop on to your about form. 50,imgedit.zipImgEdit is an image-processing tool. It allows you to adjust brightness, contrast and saturation. 51,xshow.zipA control to create screensavers and/or slideshows. Choose from more than 120 transition effects between bitmap images.52,mp3enc.zipMP3 encoder. Source code for OCX not included.53,opendialog.zipAn extended Dialog Box like
VB
dialog style, with New, open, Recent files and preview. 54,SJIni.zipShareware OCX for manipulating INI files. Fast, easy, effective way to manipulate INI files.55,SoundSource.zipBrainFusion Presents The Dancer.Ocx Which is capable of reading The Sound Peak Form Sound Card When Mp3 or Wav File Is Played 56,SysUSATimeZONE.zipGet's Time From Anywhere In USA. Just By Typing In The State Abbreviation. 57,adbevel.zipVisual Basic now has a bevel control like Delphi. 58,RebootPlus.zipHere Is Another OCX File That Logs Off, Shutdown, Restart, Displays Device Manage, And Display Properties.59,RetCal10.zipThis Activex control creates retail calendars on the fly. very useful if you are in the retail, accounting, merchandising industries. Very cool check it out60,SysErrorOCX.zipOCX file that handles
Data
base Errors. Contents Of This File Include.SysError.OCX 61,Appearence.zipSystem OCX allows you to change certain system display settings. 62,textbox1.zipSyntax highlighting text editor ... not based on the RTF box... supports drawing of external graphics on the text area...useful for html editors etc63,Player.zipA multimedia ocx to replace mediaplayer ocx64,Audio.zipThis ActiveX Control will play all kinds of MPEG-Layer3(MP3) files with ease of use. 65,HLiteDemo.zipHlite.Ocx When Placed On A Form And Called From A Textbox When It Has Focus It Will Highlight The Text Very Usefull In
Data
Entry Application66,SysBacUpDemo.zipThis Is A Demo Application Using A Ocx File To Backup Files. 67,OCXButton1.zipAn ActiveX control (OCX) for creating Buttons with attributes unavailable in the intrinsic CommandButton control of
VB
68,transferTV.zipTransfers values from one treeview to another recursively.69,createctrl.zipA float button control70,SysPCase.zipThis Is An OCX File That Will Allow a user to start typing and when textbox loses focus the OCX will make all text that user typed in into Proper Text Format71,SysErrorLogWriter.zipHere is an OCX file that will log all errors when placed under an event On Error Goto72,Pbar.zipThis is an OCX that has the nice Progress Bar that has the Percent in the middle It's nice and easy to use73,metawizardv101.zipMeta Wizard a small Meta Tag creation tool that takes advantage of the system toolbar and ontop properties. With this tool you can easily create Meta Tags74,Counter.zipFormatted number, long number counter, Thousand seperator75,barcode128.zipDBToolBar (
Data
base ToolBar), to Add, Edit, Delete, etc...76,SwitchOCX.zipActiveX control.77,djmeter.zipA control (with
VB
Source) that is an implementation of a progress bar78,BtnGraphic.zipAn OCX someone made that allows you to easily create command buttons on forms, that act like an IE coolbar 79,HSoft11.zipThis is an OCX someone wrote that acts and looks almost identical to the IE3 toolbar80,MsgScroll.zipThis is a control (
VB
5 with source) that scrolls text81,mtymse.zipThis is a control (
VB
5 with source) that controls every aspect of the mouse82,progbar.zipUses a picture box to emulate a progress bar83,axcool.zipA toolbar control someone wrote84,ax
grid
.zipA
Grid
control someone wrote85,axpanel.zipA Panel, 3D Fram, Progress meter control someone wrote.86,browsef.zipA text box type control, that allows you to select a folder.87,browsfil.zipA text box type control, that allows you to select a file..88,colbrwse.zipA colour select control.89,colorsel.zipA drop down colour select control.90,FileOps.zipA
VB
5/6 control that allows you to easily copy, rename, put in trash, move files on your computer91,formmenu.zipA
VB
5/6 control that allows you to add menus to any place on a form you like92,hlitactx2.zipA
VB
5/6 control that shows you how to do code to see if the mouse is over a control on the screen. This one will highlight itself when the mouse id over it93,progbar2.zipA
VB
5/6 control that is a progress bar. Very good, allows lots of 94,spinedit.zipA spin control95,tilepuz.zipA control that simulates the tiled puzzle game96,urllabel2.zipA label control, but when you click on it, it starts up the default browser to a specified URL97,crdsrc.zipA whole deck of cards in a control, usfull for using in your own program98,ode.zipA control that spins numbers around99,TaskBar_v0_5.zipA control that creates a task bar, onto which you can add other controls100,
vb
alilsc.zipA pure
VB
control, that is a replacment for the image list control101,DBControl.zipA control that has many usefull
data
base functions within it, like add field, add column, compact, restore, create primary key etc..102,OvalButton.zipA control that is an oval command button103,
VB
ocx002.zipDas Scroll Wheel kann als Scrollbar oder einfach nur zur graphischen Versch?nerung verwendet werden 104,
VB
ocx003o.zipDiese Leuchtdiode l?sst sich rund oder viereckig anzeigen, und erzeugt dadurch einen grafisch aufmachenderen Eindruck!!!105,
VB
ocx004o.zipBlendet einen Text von wei? nach schwarz ein!106,
VB
ocx005o.zipWie hier sichtbar, zeigt diese OCX-Datei nur Ziffern an. Der Counter oben besteht aus 2, die Uhrzeit unten aus 6 LED-Ziffern. Bei der Uhr werden desweiteren 2 Labels als Trennung verwendet.107,
VB
ocx006o.zipEine Progressbar, der einfach anzusteuernd die Farbe und den Text ausgibt.108,
vb
ocx008o.zipEinfach zu bedienen, sieht gut aus, und lockert das Bild der Benutzeroberfl?che etwas auf! 109,
VB
ocx007o.zipEin einfach zu bedienendes OCX, um dateien von Servern hoch oder runterzuladen!110,
VB
ocx001.zipVerschlüsseler werden meist zum Schutz von Daten angewandt.111,SuperPack.zipSuper Fill is an OCX designed to extend
VB
Fill Style property. You can create user patterns andprocess the scan-lines coordinate returned from the control. This is a shareware control by Fabio Guerrazzi.112,supDraw.zipAnother control by Fabio Guerrazzi. Shareware.113,LEDBULB.zipThis OCX will represent strings in the form of led bulbs. By H.M.IMTHIAZ RAFIQ.114,delaunay.zipPerforms constrained triangulation, curve level and 3d mesh.115,Wolf.zipAnother ocx make example.116,OCXRegCode.zipThis will register your ocx.Comes with the complete source. Made by Neil Cuttriss.117,DDCalc.zipThis OCX Control is simple enough not to describe its use.118,Flash3D.zipThis shows you how to use the macromedia flash/shockwave ocx. Also demonstrates 3D animation in a vector based environment with Flash119,EnhPrint.zipOCX which creates a EMF-metafile dc class, which can be used by the
vb
programmer to create, print and/or preview a metafile120,hoverbutton.zipThis is an enhancement of the standard command button.121,scbox10.zipThis ActiveX control lets you add a shadow that falls behind a control.122,getfile.zipControl consisting of a text box and a button. User clicks the button, dialog shown 123,ftpActiveX.zipThis control shows how to use the Inet control for downloading files, uploading files, listing directories, renaming files, deleting files, creating directories and more!!124,TextBoxControl.zipThis text box control allows you to limit input based on
data
type or numeric range. Validation occurs within the lost focus event.125,systray.zipAdd icons to the system tray with ease. The caption and icon can be set. 126,asRuler.zipThis is a basic Custom Contrl, which displayes a ruler.127,playing_card.zipSimple to use playing card activeX control with additional container with auto arrange function. 128,XPlayer.zipThis control functions much like windows media player and supports the following file formats: Dat, Avi, Mp3, Wav, Mpg & Wma files.129,DBImage.zipThis one is component that allows you to populate image
data
from a ADO field to the component just like you would populate a text field with text
data
from a text field.130,ellipctl.zipMake an elliptical ActiveX picture control
控件
1,451
社区成员
41,355
社区内容
发帖
与我相关
我的任务
控件
VB 控件
复制链接
扫一扫
分享
社区描述
VB 控件
社区管理员
加入社区
获取链接或二维码
近7日
近30日
至今
加载中
查看更多榜单
社区公告
暂无公告
试试用AI创作助手写篇文章吧
+ 用AI写文章