\'---------------------------- Form1 ---------------------------- Private Sub Create_Click() Dim Path As String Path = InputBox(\"Save file as:\", , \"C:\\Test.txt\") Open \"\" & Path & \"\" For Output As #1 Print #1, addNew.Text Close #1 Form2.AddPath Path Form2.Show End Sub \'---------------------------- Form1 ----------------------------
\'---------------------------- Form2 ---------------------------- Dim Form2Path As String
Function AddPath(Form1Path As String) Form2Path = Form1Path End Function
Private Sub No_Click() Unload Me End Sub
Private Sub Yes_Click() Shell \"NOTEPAD.EXE \" & Form2Path, vbNormalFocus Unload Me End Sub \'---------------------------- Form2 ----------------------------
\'---------------------------- Form1 ---------------------------- Private Sub Create_Click() Dim Path As String Path = InputBox(\"Save file as:\", , \"C:\\Test.txt\") Open \"\" & Path & \"\" For Binary As #1 Put #1, FileLen(Path) + 1, addNew.Text & vbCrLf Close #1 Form2.AddPath Path Form2.Show End Sub \'---------------------------- Form1 ----------------------------
forresten: hvis der er nogle som vil være så venlige at svare på det her::
Private Sub indsaet_Click() addNew.SelText = \"<html><body bgcolor=\'white\'></body></html>\" End Sub
hvordan kan jeg lave en ny linie så alle de ting ikke kommer til at stå på samme linie??
og har lige en ting mere, jeg har lavet en view knap i form1, og slettet form2..hvordan får jeg så den der view ting til er virke??::
Public Sub save_Click() Dim Path As String Path = InputBox(\"Save file as:\", , \"C:\\file.html\") Open \"\" & Path & \"\" For Output As #1 Print #1, addNew.Text Close #1 End Sub
----
Private Sub view_Click() Shell \"C:\\Programmer\\Internet Explorer\\IEXPLORE.EXE \" & Path, vbNormalFocus End Sub
Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.