Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8363129
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T12:06:21+00:00 2026-06-09T12:06:21+00:00

When i was converting VB to VB.NET, i found the error InvalidActiveXStateException . My

  • 0

When i was converting VB to VB.NET, i found the error InvalidActiveXStateException.
My program ahs a main form and many sub forms, and while I am checking the sub forms, one of them has this error and can not open that form, but the other forms can be opened correctly.
The code is the same. Why i can not open that form?

I had been researched from internet and most of people said that :

((System.ComponentModel.ISupportInitialize)(this.ax)).BeginInit();

this.Controls.Add(ax);

((System.ComponentModel.ISupportInitialize)(this.ax)).EndInit();

but it seem C# not VB.NET and i dont know when can i found the name of ax in my program.
here is part of my program code.

Public Sub mnu_dceedc_enq_Click(ByVal eventSender As System.Object, ByVal eventArgs        As System.EventArgs) Handles mnu_dceedc_enq.Click
    If bolCheckSecurity("dcs_eedc_enq") Then
        Unload_frm()
        DCformfun = mnu_dceedc_enq.Name
        frmDCEEDC.Show()
    End If
End Sub

Private Sub chkfiltercase_CheckStateChanged(ByVal eventSender As System.Object, ByVal eventArgs As System.EventArgs) Handles chkfiltercase.CheckStateChanged
    '20090401
    'fgdetail_Click

    Call ShowFolderDetail(fgdetail.get_TextMatrix(fgdetail.Row, 1), fgdetail.get_TextMatrix(fgdetail.Row, 2), CShort(txtbatchno.Text))
End Sub

When I open a sub form, it will start from nu_dceedc_enq_Click and then go to chkfiltercase_CheckStateChanged but when ran into Call ShowFolderDetail, it auto returns back to form.show() and the exception occurs.

Why does this error occur and how can I solve it?

Update after testing:

I tried commenting all the Sub chkfiltercase_CheckStateChanged and the form occur success and I am try to test whether it will occur others or not.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T12:06:22+00:00Added an answer on June 9, 2026 at 12:06 pm

    Part of what the standard conversion/usage of active x controls does is create a state for the control. This state is not always set/created correctly and will sometimes get changed when you run the application in the debugger. When the state is invalid, this exception is thrown. I generally try to replace the active x control with a .net control (either one that already exists or creating an equivalent).

    Supposedly some of the commercal alternatives to the standard tool will avoid this problem.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm converting an old VB form to .NET, and there a few Buttons which
I'm converting one of our ASP.NET MVC application from 1.0 to 2.0. This is
I am converting an application originally written in vb6 to vb.net. One of the
I found a client/server code and I am getting this error: java.net.SocketException: Software caused
Converting to ODB.NET from System.Data.OracleClient and need help converting my connection string. Here is
I need help converting a VB.NET handles statement to C#. This is the VB
I'm converting a VB6 application to VB.Net that draws on picture boxes. Naturally I
I am converting a script from PHP to ASP.net C#. In PHP, i could
I am converting an old html based website to ASP.NET, so that we can
I'm having trouble converting a C# Linq statement to VB.NET. I need the following

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.