Code:
Spoiler anzeigen
Fehler:
Spoiler anzeigen
Was soll ich tun? Hab keine ahnung was des Problem überhaupt ist es ist halt ein Problem da
Danke - einnamehalt
Edit by der_Kurt: *Titel geändert*
VB.NET-Quellcode
- Imports System.IO
- Public Class Form1
- Dim inhalt As String
- Dim objDateiLeser As StreamReader
- Dim inhalt2 As String
- Dim objDateiLeser2 As StreamReader
- Dim Dimer As New ColorDialog
- Dim Dimer2 As New ColorDialog
- Dim ccv As New ColorConverter
- Dim c1 As Color = ccv.ConvertFromString(inhalt)
- Dim ccv2 As New ColorConverter
- Dim c2 As Color = ccv.ConvertFromString(inhalt2)
- Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
- Me.Close()
- End Sub
- Private Sub Timer_act_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer_act.Tick
- If TrackBar1.Value = 0 Then
- Media_HouseTime.settings.volume = 0
- media_Technobase.settings.volume = 0
- Media_Clubtime.settings.volume = 0
- Media_Trance.settings.volume = 0
- Media_Hardase.settings.volume = 0
- Media_core.settings.volume = 0
- End If
- If TrackBar1.Value = 10 Then
- Media_HouseTime.settings.volume = 10
- media_Technobase.settings.volume = 10
- Media_Clubtime.settings.volume = 10
- Media_Trance.settings.volume = 10
- Media_Hardase.settings.volume = 10
- Media_core.settings.volume = 10
- End If
- If TrackBar1.Value = 20 Then
- Media_HouseTime.settings.volume = 20
- media_Technobase.settings.volume = 20
- Media_Clubtime.settings.volume = 20
- Media_Trance.settings.volume = 20
- Media_Hardase.settings.volume = 20
- Media_core.settings.volume = 20
- End If
- If TrackBar1.Value = 30 Then
- Media_HouseTime.settings.volume = 30
- media_Technobase.settings.volume = 30
- Media_Clubtime.settings.volume = 30
- Media_Trance.settings.volume = 30
- Media_Hardase.settings.volume = 30
- Media_core.settings.volume = 30
- End If
- If TrackBar1.Value = 40 Then
- Media_HouseTime.settings.volume = 40
- media_Technobase.settings.volume = 40
- Media_Clubtime.settings.volume = 40
- Media_Trance.settings.volume = 40
- Media_Hardase.settings.volume = 40
- Media_core.settings.volume = 40
- End If
- If TrackBar1.Value = 50 Then
- Media_HouseTime.settings.volume = 50
- media_Technobase.settings.volume = 50
- Media_Clubtime.settings.volume = 50
- Media_Trance.settings.volume = 50
- Media_Hardase.settings.volume = 50
- Media_core.settings.volume = 50
- End If
- If TrackBar1.Value = 60 Then
- Media_HouseTime.settings.volume = 60
- media_Technobase.settings.volume = 60
- Media_Clubtime.settings.volume = 60
- Media_Hardase.settings.volume = 60
- Media_Trance.settings.volume = 60
- Media_core.settings.volume = 60
- End If
- If TrackBar1.Value = 80 Then
- Media_HouseTime.settings.volume = 80
- media_Technobase.settings.volume = 80
- Media_Clubtime.settings.volume = 80
- Media_Trance.settings.volume = 80
- Media_Hardase.settings.volume = 80
- Media_core.settings.volume = 80
- End If
- If TrackBar1.Value = 90 Then
- Media_HouseTime.settings.volume = 90
- media_Technobase.settings.volume = 90
- Media_Clubtime.settings.volume = 90
- Media_Trance.settings.volume = 90
- Media_Hardase.settings.volume = 90
- Media_core.settings.volume = 90
- End If
- If TrackBar1.Value = 100 Then
- Media_HouseTime.settings.volume = 100
- media_Technobase.settings.volume = 100
- Media_Clubtime.settings.volume = 100
- Media_Trance.settings.volume = 100
- Media_Hardase.settings.volume = 100
- Media_core.settings.volume = 100
- End If
- If TrackBar1.Value = 70 Then
- Media_HouseTime.settings.volume = 70
- media_Technobase.settings.volume = 70
- Media_Clubtime.settings.volume = 70
- Media_Trance.settings.volume = 70
- Media_Hardase.settings.volume = 70
- Media_core.settings.volume = 70
- End If
- Media_HouseTime.Refresh()
- If RadioButton_HouseTime.Checked = True Then
- Media_HouseTime.Ctlcontrols.play()
- Button_HouseTime.Hide()
- Label_Housetime.Show()
- Else
- Media_HouseTime.Ctlcontrols.pause()
- Button_HouseTime.Show()
- Label_Housetime.Hide()
- End If
- media_Technobase.Refresh()
- If RadioButton_Technobase.Checked = True Then
- media_Technobase.Ctlcontrols.play()
- Label1.Show()
- Button7.Hide()
- Else
- media_Technobase.Ctlcontrols.pause()
- Label1.Hide()
- Button7.Show()
- End If
- If RadioButton_Clubtime.Checked = True Then
- Media_Clubtime.Ctlcontrols.play()
- Button6.Hide()
- Label4.Show()
- Else
- Media_Clubtime.Ctlcontrols.pause()
- Button6.Show()
- Label4.Hide()
- End If
- If RadioButton_Trancebase.Checked = True Then
- Media_Trance.Ctlcontrols.play()
- Label5.Show()
- Button5.Hide()
- Else
- Media_Trance.Ctlcontrols.pause()
- Label5.Hide()
- Button5.Show()
- End If
- If RadioButton_hardase.Checked = True Then
- Media_Hardase.Ctlcontrols.play()
- Button4.Hide()
- Label2.Show()
- Else
- Media_Hardase.Ctlcontrols.pause()
- Button4.Show()
- Label2.Hide()
- End If
- If RadioButton_Coretime.Checked = True Then
- Media_core.Ctlcontrols.play()
- Button3.Hide()
- Label3.Show()
- Else
- Media_core.Ctlcontrols.pause()
- Button3.Show()
- Label3.Hide()
- End If
- End Sub
- Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
- Me.Top = My.Computer.Screen.WorkingArea.Height - Me.Height
- Me.Left = My.Computer.Screen.WorkingArea.Width - Me.Width
- Media_HouseTime.Ctlcontrols.pause()
- media_Technobase.Ctlcontrols.pause()
- Media_Clubtime.Ctlcontrols.pause()
- Media_Trance.Ctlcontrols.pause()
- Media_Hardase.Ctlcontrols.pause()
- Media_core.Ctlcontrols.pause()
- Timer_act.Start()
- Timer_Color_Mod.Start()
- objDateiLeser = New StreamReader("C:\Program Files (x86)\wE aRe oNe pLaYeR\set1.txt")
- inhalt = objDateiLeser.ReadToEnd()
- objDateiLeser.Close()
- objDateiLeser = Nothing
- objDateiLeser2 = New StreamReader("C:\Program Files (x86)\wE aRe oNe pLaYeR\set2.txt")
- inhalt2 = objDateiLeser2.ReadToEnd()
- objDateiLeser2.Close()
- objDateiLeser2 = Nothing
- Me.BackColor = c1
- End Sub
- Private Sub Button_HouseTime_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button_HouseTime.Click
- RadioButton_HouseTime.Checked = True
- End Sub
- Private Sub Button7_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button7.Click
- RadioButton_Technobase.Checked = True
- End Sub
- Private Sub Button6_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button6.Click
- RadioButton_Clubtime.Checked = True
- End Sub
- Private Sub Button5_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button5.Click
- RadioButton_Trancebase.Checked = True
- End Sub
- Private Sub Button4_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button4.Click
- RadioButton_hardase.Checked = True
- End Sub
- Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click
- RadioButton_Coretime.Checked = True
- End Sub
- End Class
Fehler:
System.InvalidOperationException wurde nicht behandelt.
Message=Fehler beim Erstellen des Formulars. Weitere Informationen finden Sie in Exception.InnerException. Fehler: ColorConverter kann nicht von (NULL) konvertieren..
Source=pLaYeR
StackTrace:
bei wE_aRe_oNe_pLaYeR.My.MyProject.MyForms.Create__Instance__[T](T Instance) in 17d14f5c-a337-4978-8281-53493378c1071.vb:Zeile 190.
bei wE_aRe_oNe_pLaYeR.My.MyProject.MyForms.get_Form1()
bei wE_aRe_oNe_pLaYeR.My.MyApplication.OnCreateMainForm() in C:\Users\einnamehalt\Documents\Visual Studio 2010\Projects\wE aRe oNe pLaYeR\wE aRe oNe pLaYeR\My Project\Application.Designer.vb:Zeile 35.
bei Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.OnRun()
bei Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.DoApplicationModel()
bei Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.Run(String[] commandLine)
bei wE_aRe_oNe_pLaYeR.My.MyApplication.Main(String[] Args) in 17d14f5c-a337-4978-8281-53493378c1071.vb:Zeile 81.
bei System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args)
bei System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
bei Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
bei System.Threading.ThreadHelper.ThreadStart_Context(Object state)
bei System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx)
bei System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
bei System.Threading.ThreadHelper.ThreadStart()
InnerException: System.NotSupportedException
Message=ColorConverter kann nicht von (NULL) konvertieren.
Source=System
StackTrace:
bei System.ComponentModel.TypeConverter.GetConvertFromException(Object value)
bei System.ComponentModel.TypeConverter.ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, Object value)
bei System.Drawing.ColorConverter.ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, Object value)
bei System.ComponentModel.TypeConverter.ConvertFromString(String text)
bei wE_aRe_oNe_pLaYeR.Form1..ctor() in C:\Users\einnamehalt\Documents\Visual Studio 2010\Projects\wE aRe oNe pLaYeR\wE aRe oNe pLaYeR\Form1.vb:Zeile 10.
InnerException:
Message=Fehler beim Erstellen des Formulars. Weitere Informationen finden Sie in Exception.InnerException. Fehler: ColorConverter kann nicht von (NULL) konvertieren..
Source=pLaYeR
StackTrace:
bei wE_aRe_oNe_pLaYeR.My.MyProject.MyForms.Create__Instance__[T](T Instance) in 17d14f5c-a337-4978-8281-53493378c1071.vb:Zeile 190.
bei wE_aRe_oNe_pLaYeR.My.MyProject.MyForms.get_Form1()
bei wE_aRe_oNe_pLaYeR.My.MyApplication.OnCreateMainForm() in C:\Users\einnamehalt\Documents\Visual Studio 2010\Projects\wE aRe oNe pLaYeR\wE aRe oNe pLaYeR\My Project\Application.Designer.vb:Zeile 35.
bei Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.OnRun()
bei Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.DoApplicationModel()
bei Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.Run(String[] commandLine)
bei wE_aRe_oNe_pLaYeR.My.MyApplication.Main(String[] Args) in 17d14f5c-a337-4978-8281-53493378c1071.vb:Zeile 81.
bei System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args)
bei System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
bei Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
bei System.Threading.ThreadHelper.ThreadStart_Context(Object state)
bei System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx)
bei System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
bei System.Threading.ThreadHelper.ThreadStart()
InnerException: System.NotSupportedException
Message=ColorConverter kann nicht von (NULL) konvertieren.
Source=System
StackTrace:
bei System.ComponentModel.TypeConverter.GetConvertFromException(Object value)
bei System.ComponentModel.TypeConverter.ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, Object value)
bei System.Drawing.ColorConverter.ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, Object value)
bei System.ComponentModel.TypeConverter.ConvertFromString(String text)
bei wE_aRe_oNe_pLaYeR.Form1..ctor() in C:\Users\einnamehalt\Documents\Visual Studio 2010\Projects\wE aRe oNe pLaYeR\wE aRe oNe pLaYeR\Form1.vb:Zeile 10.
InnerException:
Was soll ich tun? Hab keine ahnung was des Problem überhaupt ist es ist halt ein Problem da
Danke - einnamehalt
Edit by der_Kurt: *Titel geändert*
Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von „der_Kurt“ ()