473,833 Members | 2,087 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to disable OcxState of axWebBrowser?


I habe another problem with the axWebBrowser component.

I added one into a form and it worked ok when I started the
application. Then I changed the size of the browser and started
the program again, but the new size has been ignored. The old
values seemed to be remembered.

I found out that it has something to do with the OcxState,
after commenting out the line
this.browserMes sage.OcxState =
((System.Window s.Forms.AxHost. State)
(resources.GetO bject("browserM essage.OcxState ")));
in the InitializeCompo nent method it worked fine.

Unfortunately the comment is removed when making changes to
the form and saving it, since it seems to be impossible to
make permanent changes in InitializeCompo nent. I even tried
to set the OcxState after InitializeCompo nent manually to
different values, but I always got an exception.

How can I ged rid of this behavior?
Is there a hidden attribute to switch this feature off?

I don't want anything being stored of my application except
the things I store manually, so I really think I don't need
to have the OcxState set.

Ciao and bye,
Nov 15 '05 #1
0 1538

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

Similar topics

by: Martin Ho | last post by:
Hey Everyone, I really hope there is someone who can figure out this problem. Honestly, I spent 3 days now trying to find the solution, but nothing works. I'll try to explain the problem shortly, so I don't take too much of your time. Problem:
by: Norvin Laudon | last post by:
Hi, I have a legacy ActiveX control (circa 1996) which I would like to use in a C# class, without using a form. I am getting an exception thrown when I try to set properties on the control: "An unhandled exception of type 'InvalidActiveXStateException' occurred in axinterop.finsctllib.dll" When I put an instance of the control on a form, and look at the
by: Simon CJC | last post by:
Hello I use AxSHDocVw.AxWebBrowser in a windows application. But sometimes the url I browsed in AxSHDocVw.AxWebBrowser contains error caused by javascript. Can I prevent javascript from running in AxSHDocVw.AxWebBrowser Thanks Simon CJC
by: Chris | last post by:
When I put a ActiveX control on a form in VS (a WebBrowser for example) it generates all this cryptic init code for it. I figured everything out except for the OcxState property that *must* be set before any other properties on the control can be accessed. VS serializes the OcxState from <somewhere> and saves it in the .resx file for the form it was added on. I would like to know where VS initially gets the OcxState from so I can...
by: Alexander Wehrli | last post by:
Hello, In my application, I display help-content (html-documents) in a AxWebBrowser. The AxWebbrowser contains by default a contextmenu (well known from IE). But i don't want the user to be able to select one of the Options this ContextMenu gives. I absolutely want to disable this ContextMenu! But I've got no idea how to do this!?!
by: Clint MacDonald | last post by:
I have used the AxWebBrowser in a Visual Basic Project... I found that both Framework 1.0 and 1.1 had to be installed for it to work properly. I now have found that in Studio 2003, that the probablem has come back even if both are installed. When I open a windows form that has the Browser on it and try to Navigate to a page using the OnEnter or OnLoad events, the page just sits there and does
by: Ajai Kumar .R | last post by:
Hai all, I'm getting javascript errors/alert windows on AxWebBrowser. Does any body know how to disable these popups. Thanks in advance. Ajai Kumar .R
by: | last post by:
Hi all, I would like to know if there are anyways to disable javascript, activeX and all scripting on AxWebBrowser. I have a program that include the AxWebBrowser and load internet pages, but some pages keep having javascript error and a popup was shown. I want to eliminate all the popup from javascript and other object, how can I achieve this? Thanks a lot. Windy.
by: Dave Booker | last post by:
It appears that I cannot correctly install the AxWebBrowser in VS2005. I can instantiate an "AxWebBrowser browser" and refer to its members, properties, and methods. I'm having trouble with the AxWebBrowser.Document: When I print browser.Document.GetType().ToString() at runtime, I get "mshtml.HTMLDocumentClass". But The VS2005 compiler does not recognize the member AxWebBrowser.Document as anything other than a System.Object -- e.g.,...
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 usage, and What is the difference between ONU and Router. Letís take a closer look ! Part I. Meaning of...
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
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. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
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 most users, this new feature is actually very convenient. If you want to control the update process,...
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
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
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
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 effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.