User Profile
Collapse
-
Good idea, I'll try it out. Thanks -
-
chosing specific files in a directory
What im trying to do is have all .mp3, .wma, and .wav files in the chosen directory go on a list. I've been at this for several days and came up with nothing. Any suggestions?
...Code:On Error Resume Next Dim i As Integer, splitfilename() As String flstSongs.Path = dirMusic.Path If flstSongs.ListCount <> 0 Then For i = 1 To flstSongs.ListCount - 1 splitfilename = Split(flstSongs.List(i), -
I'd use FileSystemObjec t to print text to a text file.Heres an example.
...Code:On Error Resume Next Dim fso As New FileSystemObject, prefs As TextStream Set prefs = fso.CreateTextFile(App.path & "/settings.txt", True) With prefs .WriteLine txtServer.Text .WriteLine txtPort.Text .WriteLine chkResign.Value .WriteLine chkPrivacy.ValueLeave a comment:
-
-
multiple copies of the same form
I'm trying to make a class mod where i can have multiple copies of one form. this is what i have so far.
any suggest...Code:Public PCForm As New frmPC, strName As String Private Sub Class_Initialize() Set PCForm = New frmPC Load PCForm PCForm.Show PCForm.txtPCName.Text = strName End Sub Private Sub Class_Terminate() Set PCForm = Nothing End Sub
-
scrolling listbox?
Hey,
I'm trying to make a listbox with a moveable index on a timer. So every second the selected index moves down one and so forth in that fashion. When it reaches the last index it should go back to the top and repeat until timer is shut off.
[CODE=vb]Private Sub tmrAttempt_Time r()
On Error Resume Next
Dim i As Integer
For i = 1 To List1.ListCount - 1
List1.ListIndex = List1.ListCount...Last edited by Killer42; Dec 16 '07, 09:27 AM. -
Print? List
I am trying to print a list to a caption. Say the list contained One, Two, and Three. When i click a command button the caption should say "One, Two, Three" Is there any simple way to do this? I tried some stuff with listindex but it didn't work. Thanks for any help. -
This is what I would use.
...Code:Private Sub cmdLoad_Click() If lstLoad.ListCount > 1 Then lstLoad.Clear On Error GoTo Cancelled cdlcommon.DialogTitle = "Load List" cdlcommon.CancelError = True cdlcommon.InitDir = App.Path cdlcommon.Flags = &H4 cdlcommon.Filter = "Text File (*.txt)|*.txt|All files (*.*)|*.*" cdlcommon.ShowOpenLeave a comment:
-
Sorting Lists
I would like to know if anybody has an example of how to sort a list by 0-9, A-Z
Preferably a function. Any help is greatly appreciated
-Jacob -
Printing to Picturebox
I'm trying to have the text from a textbox print to a picturebox; vbnewline each time something is entered.
Any idead on how i could do this? -
msgbox on top
Is there anyway that i would be able to code a msgbox so that it would stay on top of all windows? -
Show/Hide Frames
I'm making a program in vb6 where i have command buttons down the side which show/hide the 5 frames
i tried frame.visible, frame(index).vi sible, frame(index).vi sible = true
none work
any tips? -
they had the same text
1:1
2:2
3:3
4:4
just different locationsLeave a comment:
-
-
im working in VB6
your code works for small destinations like c:/file.txt but when i try
C:\Documents and Settings\Jacob Evans\Desktop\G rades\Semester1 \sem1grades.txt
the program adds around 22k of blank spaces to the listbox and the program locks upLeave a comment:
-
open txt file and add contents to listbox
i need some help opening a text file and having the contents in that file add to a list.
for example a user types '/addlist C:/text.txt'. the program takes the c:/text.txt and adds the items to a listbox
how would i code this -
-
-
Add Certain files in a Directory
I want to be able to have someone click a command button, then have a directory form show, that part is complete. Now i need help adding all the files in this directory to a list with the extensions ".mp3, .wav, and .mid".
(view code in discussion 'Directories and Listbox'
No activity results to display
Show More
Leave a comment: