I have the source code for this PowerPack, as it was publishedc by
Microsoft. Apparently this code worked okay in VB 2003. I compiled
the code and built the dll in VB 2005. I made the controls available
on the IDE toolbar - no problems. When I place the fileviewer and the
folderviewer on my form and run the application, all is well.
However, when I add the foillowing code to the
folderviewer1_n odeclicked event:
fileviewer1.pat h = folderviewer1.c urrentfolder
I get an error that states:
InvalidOperatio nException was unhandled
Cross-thread operation not valid Control 'FileViewer1' accessed from a
thread other than the thread it was created on.
I have tried changing things around but hav not been able to make this
work.
Any suggestions?
Microsoft. Apparently this code worked okay in VB 2003. I compiled
the code and built the dll in VB 2005. I made the controls available
on the IDE toolbar - no problems. When I place the fileviewer and the
folderviewer on my form and run the application, all is well.
However, when I add the foillowing code to the
folderviewer1_n odeclicked event:
fileviewer1.pat h = folderviewer1.c urrentfolder
I get an error that states:
InvalidOperatio nException was unhandled
Cross-thread operation not valid Control 'FileViewer1' accessed from a
thread other than the thread it was created on.
I have tried changing things around but hav not been able to make this
work.
Any suggestions?