通过Private Sub 款式_Click()
Dim ads As String
Do While (1)
ads = InputBox("添加新的款式名", "添加")
If Not ads = "" Then
Exit Do
End If
Loop
Combo1.AddItem ads
Combo6.AddItem ads
End Sub向组合框里输入字串 但是生成为EXE 后为什么添加了,关了运行文件后再打开添加的东东那没有呀呢如何保存住组合框里的东东呀
Dim ads As String
Do While (1)
ads = InputBox("添加新的款式名", "添加")
If Not ads = "" Then
Exit Do
End If
Loop
Combo1.AddItem ads
Combo6.AddItem ads
End Sub向组合框里输入字串 但是生成为EXE 后为什么添加了,关了运行文件后再打开添加的东东那没有呀呢如何保存住组合框里的东东呀
解决方案 »
- 怎么样捕捉webbrowser里的鼠标单击打开新网页的事件?
- 通用查询器
- adox创建数据库???急
- 请问如何用vb创建excel报表
- 帮小弟看看code应该怎样改????????????????????????????????急!急!急!
- 关于记录定位的问题,我想求教各位高人!急急急
- 请问如何使用在treeview控件里点击节点,然后在同一个FORM里去调用一个窗口
- 紧急!关于工具栏的图标问题!高分回报!!在线等待!
- 如何解决用Installer VISE 3.5.1 汉化精简版制作安装盘后再安装时字体改变问题?
- Collection和Dictionary对象的区别?
- 在datagrid显示的数据中,我想双击任一行
- Combobox的一个问题
ads = InputBox("添加新的款式名", "添加")
If ads = "" Then Exit Sub
Combo1.AddItem ads
End SubPrivate Sub Form_Load()
If Dir("c:\test.txt") = "" Then Exit Sub
Combo1.Text = ""
Dim MyString As String
Open "c:\test.txt" For Input As #1
Do While Not EOF(1)
DoEvents
Line Input #1, MyString
Combo1.AddItem MyString
Loop
Close #1
End SubPrivate Sub Form_Unload(Cancel As Integer)
Dim i As Integer
Open "c:\test.txt" For Output As #3
For i = 0 To Combo1.ListCount - 1
Print #3, Combo1.List(i)
Next i
Close #3
End Sub