473,586 Members | 2,566 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 6848
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********@yah oo.com> wrote in message
news:49******** *************** ***********@mic rosoft.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

"Cablewizar d" 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********@yah oo.com> wrote in message
news:49******** *************** ***********@mic rosoft.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********@yah oo.com> wrote in message
news:40******** *************** ***********@mic rosoft.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

"Cablewizar d" 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********@yah oo.com> wrote in message
news:49******** *************** ***********@mic rosoft.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
6228
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; like telnet is a client. The user should be able to bind() to a port and wait for a client. The written and recieved data is stored in a Text...
1
5976
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 a ocx developed my me use vc6,this ocx works fine in wxpython. but you can see i only change this ocx with a new DICOM ocx and set up eventClass,
2
3189
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 State is invalid for this page and might be corrupted. Stack Trace: System.Web.UI.Page.LoadPageStateFromPersistenceMedium() +150...
2
1834
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 the exception message, it is really not well formatted. I do not think that, my customers, change the view state, and try to post it. Somethign...
9
6630
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 length is 642 bytes ( I have appended it to the end of this message). I suspect that the reason may have something to do with an incorrect declaration...
0
1120
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 coders to follow me, I should start over and write it myself. I reuse a great deal of the old code, but I can't really get much further until I...
2
2014
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: ################################################################### // ======================================================= function popup01 () { var win_url
0
1378
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 axinterop.fpspread.dll" at run time. Is it have any solution?
0
2641
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 went well... Until the final assembly and "beefing up" of the project. The magcard reader is made by Magtek. They provide an ActiveX component as...
0
7912
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
8202
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
1
7959
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
8216
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
1
5710
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
3865
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2345
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1449
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1180
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.