G
Guest
Good Day All,
I am having a problem in Visual Studio 2005 Beta 2. I am hoping someone
might have an idea as to what is going on.
I have an ActiveX User Control written using Visual Basic 6.0. Using Visual
Studio 2005 I add the control to my Toolbox. I then drag the control onto a
Panel control that is on a form. That is it. I don't write any code at all.
When I run the program I get the following error:
Cross-thread operation not valid: Control 'Panel1' accessed from a thread
other than the thread it was created on
The error appears right away and the form is never rendered to the screen.
This happens if I try creating the Windows Form project in either VB.NET or
C#.NET. However, if I follow the same steps in Visual C++.NET then the
application will start and the form will show up like it is suppose to.
I am confused by this. There has to be something going on under the hood
that allows C++ to handle this when the other languages don't. If anyone has
any ideas I would appreciate it.
Thanks!
Dan DeLuca
I am having a problem in Visual Studio 2005 Beta 2. I am hoping someone
might have an idea as to what is going on.
I have an ActiveX User Control written using Visual Basic 6.0. Using Visual
Studio 2005 I add the control to my Toolbox. I then drag the control onto a
Panel control that is on a form. That is it. I don't write any code at all.
When I run the program I get the following error:
Cross-thread operation not valid: Control 'Panel1' accessed from a thread
other than the thread it was created on
The error appears right away and the form is never rendered to the screen.
This happens if I try creating the Windows Form project in either VB.NET or
C#.NET. However, if I follow the same steps in Visual C++.NET then the
application will start and the form will show up like it is suppose to.
I am confused by this. There has to be something going on under the hood
that allows C++ to handle this when the other languages don't. If anyone has
any ideas I would appreciate it.
Thanks!
Dan DeLuca