搜索
首页 电脑/网络 程序设计

VB中如何将内容读入到组合框

  将组合框中的各选项输出到C:\123。txt中我用的是:Private Sub Command1_Click()Dim i As IntegerOpen "c:\123。txt" For Output As #1For i = 0 To Combo1。
  ListCountPrint #1, Combo1。List(i)Next iClose #1End Sub那当程序启动时,将c:\123。txt中每一行的内容当做每一选项读入到组合框中,该怎么写?。

全部回答

2007-12-23

0 0

  Private Sub Form_Load() Dim i As Integer Dim str1 As String Open "c:\boot。ini" For Input As #1 While Not EOF(1) Line Input #1, str1 Combo1。
  AddItem str1 Wend Close #1 End Sub 。

类似问题换一批

热点推荐

热度TOP

相关推荐
加载中...

热点搜索 换一换

电脑/网络
程序设计
电脑装机
操作系统/系统故障
硬件
笔记本电脑
百度
互联网
反病毒
软件
程序设计
程序设计
数据库
C/C++
VB
JAVA相关
C#/.NET
VC++
汇编语言
其他编程语言
举报
举报原因(必选):
取消确定举报