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

  • Home
  • SEARCH
  • 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 7637351
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T07:54:55+00:00 2026-05-31T07:54:55+00:00

I am in the process of developing a .NET application which relies on an

  • 0

I am in the process of developing a .NET application which relies on an ageing OCX control. This control provides a terminal interface allowing user interaction to an airline booking system. It has already been used ‘successfully’ in several VB6 applications, but going forward we need/want to use it in .NET applications.

So on a Windows XP (x86) box using .NET 4 and Visual Studio 2010 I have created both Winforms and WPF applications which use the control which has been correctly registered. I have implemented Reg Free COM and using both XCOPY and Click-Once, both projects can be successfully deployed to Windows XP (x86) machines and both work as expected without having to register the control. Unfortunately the same cannot be said for deployment on Vista (x86) and Windows 7 (x64), where the app starts but no control is rendered.

In an attempt to understand the problem I have tried to register the control on my Windows 7 (x64) development environment. I have tried both:

  • registering the control using the normal regsvr32 (x64 registry)
  • registering the control placed in the SysWOW64 directory using the SysWOW64 version of regsvr32 (x86 registry)

In both cases the control appears to have registered successfully, and in a brand new Winforms project I can add the control to the toolbox (icons appears etc). However as soon as I drag the control to the form it appears as a tiny box in the corner of the form (rather than terminal window as seen on XP), even the Interop files are generated in the same way as per XP?!

The control as seen in XP

Control in XP

The control as seen in Windows 7 when selected

Control in Windows 7

I have spent ages trawling the net for any kind of solution or similar problems to no avail. Any suggestions welcomed!

Update 1:

As suggested by @DanielHilgarth, I have created a basic application in VB6 using the control and run it on Windows 7 (x64) and annoyingly it picks up the registered COM component and works as expected even though the .NET application or project can be run alongside and no control is seen!?

Update 2

If I create a basic Winforms app on my XP box using the control (but requiring the control to be registered i.e. not reg free). When this is run on my Windows 7 (x64) machine, if will fail to start (as expected) without registering the control. It doesn’t seem to matter to the app whether the control is registered in the x86/x64 registry either way it will start but no control is seen!?

Update 3

I have noticed that if I run a Winforms project (created in XP and COM reg free) on my Windows 7 environment that the form designer will fail unless the control registered (as expected) again doesn’t seem to care which registry the component is registered. Once registered the form designer will be seen (with no control) and when build the following warnings are seen:

Windows 7 warnings

Researching this warning has been futile, it seems to indicate that Visual Studio is looking in the wrong registry path, but I cant find a way to resolve this?

  • 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-05-31T07:54:56+00:00Added an answer on May 31, 2026 at 7:54 am

    Well it seems as though the problem was with DEP (Data Execution Prevention). I assume that the OCX is doing stuff that isn’t allowed!?

    Its still puzzling that there weren’t any exceptions etc when running various test Windows applications, or anything when registering the control.

    In order to rectify the situation I have editted the post build as per this blog. This now means I can debug and see the control and when published via ClickOnce the control is now seen on all OS’s i.e. XP/Vista/Windows 7.

    Unfortunately the control is still not seen at design time, however I can live with that!

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

Sidebar

Related Questions

I'm developing a web application in asp.net c#, which has a URL like this...
I am developing an application which is web-based (asp.net MVC). The user configures reminders
We are in the process of developing a .NET based IIS hosted web application
I am in the process of developing a large ASP.NET MVC application. I am
We are developing a .NET 3.5 application (Windows Forms), which is comprised of 3
I'm currently developing an application which needs a lot of system and process information,
I am developing an application suite that consists of several applications which user can
I'm in the process of developing a .NET application that needs to be able
We are in the process of developing a client-server software (in C#, Net 2.0)which
I'm developing a web user interface for MATLAB functions with ASP.NET. I've started with

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.