0

Ever scince I saved my project yesterday, when I try to debug my application I get this:

An error occurred creating the form. See Exception.InnerException for details. The error is: Value '0' is not a valid value for Interval. Interval must be greater than 0.
Parameter name: Interval

Exception detail:

System.InvalidOperationException was unhandled
Message="An error occurred creating the form. See Exception.InnerException for details. The error is: Value '0' is not a valid value for Interval. Interval must be greater than 0.\r\nParameter name: Interval"
Source="AEF"
StackTrace:
at AEF.My.MyProject.MyForms.Create__Instance__[T](T Instance) in 17d14f5c-a337-4978-8281-53493378c1071.vb:line 190
at AEF.My.MyProject.MyForms.get_Form1()
at AEF.My.MyApplication.OnCreateMainForm() in C:****************\AEF\AEF\My Project\Application.Designer.vb:line 35
at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.OnRun()
at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.DoApplicationModel()
at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.Run(String[] commandLine)
at AEF.My.MyApplication.Main(String[] Args) in 17d14f5c-a337-4978-8281-53493378c1071.vb:line 81
at System.AppDomain._nExecuteAssembly(Assembly assembly, String[] args)
at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()
InnerException: System.ArgumentOutOfRangeException
Message="Value '0' is not a valid value for Interval. Interval must be greater than 0.\r\nParameter name: Interval"
Source="System.Windows.Forms"
ParamName="Interval"
StackTrace:
at System.Windows.Forms.Timer.set_Interval(Int32 value)
at AEF.Form1.Speed_set() in C:****************\AEF\AEF\Form1.vb:line 386
at AEF.Form1.TrackBar1_ValueChanged(Object sender, EventArgs e) in C:****************\AEF\AEF\Form1.vb:line 315
at System.Windows.Forms.TrackBar.OnValueChanged(EventArgs e)
at System.Windows.Forms.TrackBar.set_Value(Int32 value)
at AEF.Form1.InitializeComponent() in C:****************\AEF\AEF\Form1.Designer.vb:line 246
at AEF.Form1..ctor() in C:****************\AEF\AEF\Form1.vb:line 24
InnerException:

Edited by AndyPants: spelling error

2
Contributors
1
Reply
3
Views
4 Years
Discussion Span
Last Post by GeekByChoiCe
0

Is a timer added to your Form? If so, set its Interval to something bigger that 0.
Else check all your controls, you have added to your form and see which control has a Value of 0 and change it to 1.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.