473,395 Members | 2,253 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Invalid ActiveX State Exception

I am trying to edit form elements (labels, text box's, etc) in Visual Studio.NET using VB.NET. Whenever I edit certain forms’ appearance whether it is through the code, or through the designer, I receive this (Invalid ActiveX State Exception) error message at runtime whenever the form is called. I am simply trying to change the size and location of some form elements whose location and size were thrown off during the upgrade from VB6.0 to VB.NET. These are not major changes, just a few pixels at most. In addition, after I get this error, the form that I tried to edit is hosed. It throws this runtime error even if I reverse the changes that I made to the form. It is as if something is changing that is not visible. I make sure that everything in the code is changed back to its original state, but still receive this error message. Any suggestions are greatly appreciated.

Nov 20 '05 #1
3 6827
Are you using any non .Net controls, such as ActiveX?
I have had this exact problem in this case.
Has to do with the forms Property Bag being different between .Net and VB6.

Gerald

"Evan Delodder" <de********@yahoo.com> wrote in message
news:49**********************************@microsof t.com...
I am trying to edit form elements (labels, text box's, etc) in Visual Studio.NET using VB.NET. Whenever I edit certain forms' appearance whether it is
through the code, or through the designer, I receive this (Invalid ActiveX State
Exception) error message at runtime whenever the form is called. I am simply
trying to change the size and location of some form elements whose location and
size were thrown off during the upgrade from VB6.0 to VB.NET. These are not
major changes, just a few pixels at most. In addition, after I get this error,
the form that I tried to edit is hosed. It throws this runtime error even if I
reverse the changes that I made to the form. It is as if something is changing
that is not visible. I make sure that everything in the code is changed back to
its original state, but still receive this error message. Any suggestions are
greatly appreciated.

Nov 20 '05 #2
I am using listviews, dropdown lists, toolbars and some other stuff too. What can I do to fix this problem, or at least make it go away peacefully? Thanks for your response and I appreciate any further help you can provide.

Evan

"Cablewizard" wrote:
Are you using any non .Net controls, such as ActiveX?
I have had this exact problem in this case.
Has to do with the forms Property Bag being different between .Net and VB6.

Gerald

"Evan Delodder" <de********@yahoo.com> wrote in message
news:49**********************************@microsof t.com...
I am trying to edit form elements (labels, text box's, etc) in Visual

Studio.NET using VB.NET. Whenever I edit certain forms' appearance whether it is
through the code, or through the designer, I receive this (Invalid ActiveX State
Exception) error message at runtime whenever the form is called. I am simply
trying to change the size and location of some form elements whose location and
size were thrown off during the upgrade from VB6.0 to VB.NET. These are not
major changes, just a few pixels at most. In addition, after I get this error,
the form that I tried to edit is hosed. It throws this runtime error even if I
reverse the changes that I made to the form. It is as if something is changing
that is not visible. I make sure that everything in the code is changed back to
its original state, but still receive this error message. Any suggestions are
greatly appreciated.


Nov 20 '05 #3
Hmm...
You don't say if these are legacy ActiveX or not.
If it is a .Net issue, then there might be a code answer or tinkering with the
forms resource file.
In my case, I was having problems during design-time more than run-time.
Although if I tried to access the ActiveX control while the form is not
displayed at run-time, then it would also crash.
In the end, I had to remove all the ActiveX controls and associated Interop
references.
I then needed to manually import the type libraries using TLBIMP to recreate the
Interop libraries.
Then re-add the references and controls.
Even in that case, it did not solve the problem for all the controls, but it did
for most of them.

I'm sure that is not the answer you were looking for, and in fact there may be a
better way, but I have yet to find it.
Hope this provides some help.

Gerald

"Evan Delodder" <de********@yahoo.com> wrote in message
news:40**********************************@microsof t.com...
I am using listviews, dropdown lists, toolbars and some other stuff too. What can I do to fix this problem, or at least make it go away peacefully? Thanks for
your response and I appreciate any further help you can provide.
Evan

"Cablewizard" wrote:
Are you using any non .Net controls, such as ActiveX?
I have had this exact problem in this case.
Has to do with the forms Property Bag being different between .Net and VB6.

Gerald

"Evan Delodder" <de********@yahoo.com> wrote in message
news:49**********************************@microsof t.com...
I am trying to edit form elements (labels, text box's, etc) in Visual

Studio.NET using VB.NET. Whenever I edit certain forms' appearance whether it is through the code, or through the designer, I receive this (Invalid ActiveX State Exception) error message at runtime whenever the form is called. I am simply
trying to change the size and location of some form elements whose location and size were thrown off during the upgrade from VB6.0 to VB.NET. These are not
major changes, just a few pixels at most. In addition, after I get this error, the form that I tried to edit is hosed. It throws this runtime error even if I reverse the changes that I made to the form. It is as if something is changing that is not visible. I make sure that everything in the code is changed back to its original state, but still receive this error message. Any suggestions are greatly appreciated.


Nov 20 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Michael Schutte | last post by:
I know, questions about Tkinter and threads have been answered very often, but I want to ask anyway. I am using Python 2.2 on a Linux (SuSE Linux 8.1) system. I want to write a server application;...
1
by: wang xiaoyu | last post by:
Hello: i want use activex in wxpython program,but when i use MakeActiveXClass an exception occurs. this is my source code dealing the DICOM ocx.I must note that in this program "hwtxcontrol" is...
2
by: Vinod I | last post by:
Hi Team, When I tryed following code, I am getting the Runtime Error as "The View State is invalid for this page and might be corrupted." Exception Details: System.Web.HttpException: The View...
2
by: Hope Paka | last post by:
My web page, has an average of 1500 hits every day. Every day, i get invalid view state exception, average of 10 times. The exception message in at the bottom. When i try to parse the view state in...
9
by: MR | last post by:
I get the following Exception "The data at the root level is invalid. Line 1, position 642" whenever I try to deserialize an incoming SOAP message. The incoming message is formed well and its...
0
by: birdinhand | last post by:
Hello, all. After trying to wade through a great deal of undocumented and uncommented code in order to speed up a frame capture rate, I've decided that, for my sanity and that of my boss and any...
2
by: none | last post by:
Hi, I'm opening a popup window with JavaScript. It has a command button. This is from the primary source (opener) window: ###################################################################...
0
by: SeemaPal | last post by:
Hi friends I have a problem in my project with ActiveX control. i am using older version of spread control. it thrown an exception "InvalidActivexStateException accured in...
0
tlhintoq
by: tlhintoq | last post by:
My project involves reading magstripe cards, capturing an ID number, then spinning off to do some other things including taking a photograph. 99% of this is done and good. All early phases of work...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.