R
rajendra.mishra
Hi...
I have a windows vb.net application. The StatupObject is a Module
'modMain'.
In the main sub routine i have the following
g_frmMain = New formVMMain
System.Windows.Forms.Cursor.Current =
System.Windows.Forms.Cursors.Default
Application.Run(New ApplicationContext(g_frmMain))
There is a progress bar in the form which starts everytime a file in a
particular folder is updated.so whenever the file is updated the
progress bar is initialised and shown in the main Form. The application
works fine sometimes but at other times it gives an ArgumentoutofRange
Exception at ' Application.Run(New ApplicationContext(g_frmMain))' this
line. 'Index was out of Range. Must be non negative and less than the
size of the collection.'
Any Help will be appreciated.
Raj
I have a windows vb.net application. The StatupObject is a Module
'modMain'.
In the main sub routine i have the following
g_frmMain = New formVMMain
System.Windows.Forms.Cursor.Current =
System.Windows.Forms.Cursors.Default
Application.Run(New ApplicationContext(g_frmMain))
There is a progress bar in the form which starts everytime a file in a
particular folder is updated.so whenever the file is updated the
progress bar is initialised and shown in the main Form. The application
works fine sometimes but at other times it gives an ArgumentoutofRange
Exception at ' Application.Run(New ApplicationContext(g_frmMain))' this
line. 'Index was out of Range. Must be non negative and less than the
size of the collection.'
Any Help will be appreciated.
Raj