473,542 Members | 4,337 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to apply changed settings from regtry to running AxWebBrowser control?

Hi,

I am using AxWebBrowser control and I met a problem. I need to browse
several different languages page. I have to change the default IE language
setting at runtime.
This can be done by change the key value of
HKEY_CURRENT_USER\Software\Microsoft\Internet
Explorer\International\AcceptLanguage. But the new setting won't apply to
the current AxWebBrowser control instance unless I close and reopen the
program or hit the OK button on IE Internet options dialog. Anyone have any
ideas on this?

Thanks very much!
Andy
Jan 23 '06 #1
3 1347
Andy,

I would use Spy++ and monitor the messages that are sent to the
webbrowser control when you make the change and hit OK to the dialog. I
would be willing to bet that a windows message is sent to all top level
windows which indicates that a change has occured. Spy++ will help you
determine what it is.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Andy Chen" <pp****@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP15.phx.gbl...
Hi,

I am using AxWebBrowser control and I met a problem. I need to browse
several different languages page. I have to change the default IE language
setting at runtime.
This can be done by change the key value of
HKEY_CURRENT_USER\Software\Microsoft\Internet
Explorer\International\AcceptLanguage. But the new setting won't apply to
the current AxWebBrowser control instance unless I close and reopen the
program or hit the OK button on IE Internet options dialog. Anyone have
any ideas on this?

Thanks very much!
Andy

Jan 23 '06 #2
Thank you for your response!
I tried Spy++ on IE window and found a WM_SETTINGCHANGE message was sent to
the IE window after hitting OK button.
I used the following code to sent this message in my program (some of the
parameters are not listed):

USER32.SendMessageTimeout(pHWnd, (uint)USER32.WM_SETTINGCHANGE, pwParam,
plParam, USER32.SendMessageTimeoutFlags.SMTO_BLOCK,
5000, out pResult);

According to the descritption on MSDN for SendMessageTimeout method, this
message should be sent to all top-level window, but when I use Spy++ to
monitor one of the IE window, I found it didn't received this message. I
don't know why.

"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard.caspershouse.com> wrote in
message news:%2****************@TK2MSFTNGP09.phx.gbl...
Andy,

I would use Spy++ and monitor the messages that are sent to the
webbrowser control when you make the change and hit OK to the dialog. I
would be willing to bet that a windows message is sent to all top level
windows which indicates that a change has occured. Spy++ will help you
determine what it is.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Andy Chen" <pp****@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP15.phx.gbl...
Hi,

I am using AxWebBrowser control and I met a problem. I need to browse
several different languages page. I have to change the default IE
language setting at runtime.
This can be done by change the key value of
HKEY_CURRENT_USER\Software\Microsoft\Internet
Explorer\International\AcceptLanguage. But the new setting won't apply to
the current AxWebBrowser control instance unless I close and reopen the
program or hit the OK button on IE Internet options dialog. Anyone have
any ideas on this?

Thanks very much!
Andy


Jan 24 '06 #3
I have resolve this problem. Thank you very much!
Sorry, I made a mistake just now. I have to set the lParam to "intl" and the
SendMessageTimeoutFlags works.

"Andy Chen" <pp****@hotmail.com> wrote in message
news:OH**************@TK2MSFTNGP10.phx.gbl...
Thank you for your response!
I tried Spy++ on IE window and found a WM_SETTINGCHANGE message was sent
to the IE window after hitting OK button.
I used the following code to sent this message in my program (some of the
parameters are not listed):

USER32.SendMessageTimeout(pHWnd, (uint)USER32.WM_SETTINGCHANGE, pwParam,
plParam, USER32.SendMessageTimeoutFlags.SMTO_BLOCK,
5000, out pResult);

According to the descritption on MSDN for SendMessageTimeout method, this
message should be sent to all top-level window, but when I use Spy++ to
monitor one of the IE window, I found it didn't received this message. I
don't know why.

"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard.caspershouse.com> wrote
in message news:%2****************@TK2MSFTNGP09.phx.gbl...
Andy,

I would use Spy++ and monitor the messages that are sent to the
webbrowser control when you make the change and hit OK to the dialog. I
would be willing to bet that a windows message is sent to all top level
windows which indicates that a change has occured. Spy++ will help you
determine what it is.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Andy Chen" <pp****@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP15.phx.gbl...
Hi,

I am using AxWebBrowser control and I met a problem. I need to browse
several different languages page. I have to change the default IE
language setting at runtime.
This can be done by change the key value of
HKEY_CURRENT_USER\Software\Microsoft\Internet
Explorer\International\AcceptLanguage. But the new setting won't apply
to the current AxWebBrowser control instance unless I close and reopen
the program or hit the OK button on IE Internet options dialog. Anyone
have any ideas on this?

Thanks very much!
Andy



Jan 24 '06 #4

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

Similar topics

4
4781
by: TF | last post by:
hi, i am using AxWebBrowser control in my C# dot.net windows application. i want to display a web page in the browser that needs some data sent to it through HTML Form 'POST' method. I saw a method 'Navigate' of AxWebBrowser control that has a parameter 'ref object postData' but didn't find any documentation about AxWebBrowser how to use it....
4
2870
by: Randy | last post by:
Hi, ok, I found a way to connect to a running instance of an (external) Internet Explorer and access - for example - the html source. That works fine! But now I have running application with an embedded IE webBrowser Control. Is there a possibility for my application to access the webBrowser control in the other application, too? ...
0
1579
by: beau | last post by:
Hi, I'm using the AxWebBrowser in a C# WinForms application. I've got the basics working, but need some help controlling the view options for browsing files. How can I disable the "WebView"/Tasks pane on the left side of the file view? I've looked around and know it can be done globally from the registry
3
10199
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...
0
7322
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...
0
7567
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. ...
0
7718
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7316
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
4878
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3372
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1790
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
941
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
615
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.