Jump to content
steli

List1.add

Recommended Posts

Posted

Salut,am si eu nevoie de ajutor vreau sa fac in vb6 un program in care am asa:

1. textbox

2. Command1

3. ListBox

Si as vrea sa fac urmatorul lucru cand dau clik pe "command1" sa se adauge in "ListBox" ce am scris in "TextBox" cum fac Help me :D

Posted

Ms foarte mult Raven,inca o intrebare dak se poate :D

Ce apare in List1 as vrea sa se salveze intr`un .txt cum procedez stiu ca era ceva de genu:

Dim MyIndex, FileNumber

FileNumber = FreeFile

Open App.Path & "\exemplu.log" & MyIndex For Append As #FileNumber

Write #FileNumber, "unu"

Posted

Private Sub Command1_Click()
On Error Resume Next
CommonDialog1.Filter = "TXT File (*.txt)|*.txt"
CommonDialog1.ShowSave
If CommonDialog1.FileName <> "" Then
Open CommonDialog1.FileName For Output As #1
Print #1, Text1.Text & vbCrLf & vbCrLf
Close #1
End If
End Sub

Components->microsoft common dialog control 6.0 si il pui pe form

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...