VB.NET-Quellcode
- pbImage.ImageLocation = My.Settings.image
- pbImage.SizeMode = My.Settings.sizemode
- If IO.File.Exists(Application.StartupPath & "\config.cfg") Then
- Try
- Dim sr As New IO.StreamReader(Application.StartupPath & "\config.cfg")
- Dim settings As String = sr.ReadToEnd
- Me.Text = Sb(settings, "", "")
- notice = Sb(settings, "", "")
- updatepath = Sb(settings, "", "")
- filelist = Sb(settings, "", "")
- website = Sb(settings, "", "")
- sr.Dispose()
- Catch ex As Exception
- MsgBox(ex.ToString)
- End Try
- Else
- MsgBox("Couldn't find ""Filelist.txt"", the updater is closing.")
- Application.Exit()
- End If
- txtNotice.Text = loadPage(notice)
- StyleManager1.ManagerColorTint = My.Settings.stylecolor
- StyleManager1.ManagerStyle = My.Settings.style
- Me.FormBorderStyle = Windows.Forms.FormBorderStyle.None
Das Problem ist das er es nur bis zur txtNotice(diese nicht mehr) ausführt. Wenn ich aber nun anderes an den Anfang packe, führt er das aus aber nicht mehr das was danach kommt. Das Programm führt also nur einen Teil des Events aus, irgendeine Idee -_-?
Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von „Hawk1337“ ()