steli Posted November 26, 2008 Report Posted November 26, 2008 Salut,am si eu nevoie de ajutor vreau sa fac in vb6 un program in care am asa:1. textbox2. Command13. ListBoxSi 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 Quote
Raven Posted November 26, 2008 Report Posted November 26, 2008 Private Sub Command1_Click()List1.AddItem Text1.TextEnd Sub Quote
steli Posted November 26, 2008 Author Report Posted November 26, 2008 Ms foarte mult Raven,inca o intrebare dak se poate 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" Quote
Raven Posted November 26, 2008 Report Posted November 26, 2008 Private Sub Command1_Click()On Error Resume NextCommonDialog1.Filter = "TXT File (*.txt)|*.txt"CommonDialog1.ShowSaveIf CommonDialog1.FileName <> "" Then Open CommonDialog1.FileName For Output As #1 Print #1, Text1.Text & vbCrLf & vbCrLf Close #1End IfEnd SubComponents->microsoft common dialog control 6.0 si il pui pe form Quote