473,396 Members | 2,090 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,396 software developers and data experts.

How to disable OcxState of axWebBrowser?

Hi!

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.browserMessage.OcxState =
((System.Windows.Forms.AxHost.State)
(resources.GetObject("browserMessage.OcxState")));
in the InitializeComponent 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 InitializeComponent. I even tried
to set the OcxState after InitializeComponent 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,
(:Clemens:)
Nov 15 '05 #1
0 1521

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

Similar topics

4
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...
2
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:...
3
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...
0
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...
2
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...
3
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...
3
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
2
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...
6
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...
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?
0
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,...
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
jinu1996
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...
0
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...
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.