473,785 Members | 2,129 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Web Browser Control

Hi,
How can I disable the right click capability of the Web Browser control
that's on a form? I only want it to display the HTML, w/ no popup menu.

TIA,

--
John C. Bowman
Software Engineer
Thermo Electron Scientific Instruments Div.
<Remove this before reply> jo*********@the rmo.com
Nov 16 '05 #1
4 6387
Just a Guess

Right click event will occure but i think what you need is "Do not Handle
the Event" or if there is a contextmenu attached, remove it.

---------------------------------------------------------
"John Bowman jo*********@the rmo.com>" <<Remove this before reply> wrote in
message news:Od******** ******@TK2MSFTN GP11.phx.gbl...
Hi,
How can I disable the right click capability of the Web Browser control
that's on a form? I only want it to display the HTML, w/ no popup menu.

TIA,

--
John C. Bowman
Software Engineer
Thermo Electron Scientific Instruments Div.
<Remove this before reply> jo*********@the rmo.com

Nov 16 '05 #2
ISMAILRAJPUT,

That's what I was hoping for, but no click events appear in the list of
events in VS designer to implement. A few others do appear, but nothing
apparently useful. How can I get at the OnClick event when it's not there?

John

"ISMAILRAJP UT" <hu************ @hotmail.com> wrote in message
news:%2******** ********@TK2MSF TNGP11.phx.gbl. ..
Just a Guess

Right click event will occure but i think what you need is "Do not Handle
the Event" or if there is a contextmenu attached, remove it.

---------------------------------------------------------
"John Bowman jo*********@the rmo.com>" <<Remove this before reply> wrote in
message news:Od******** ******@TK2MSFTN GP11.phx.gbl...
Hi,
How can I disable the right click capability of the Web Browser control
that's on a form? I only want it to display the HTML, w/ no popup menu.

TIA,

--
John C. Bowman
Software Engineer
Thermo Electron Scientific Instruments Div.
<Remove this before reply> jo*********@the rmo.com


Nov 16 '05 #3
N.K
Related KB Artcicle : 236312

<<http://support.microso ft.com/default.aspx?sc id=http://support.microso ft.com:80/support/kb/articles/Q236/3/12.asp&NoWebCon tent=1>>
Attached find the code snippet for the same, I got this soem somewhere
in usenet.

I remember, I had some problems doing this way .But was able to
solve. If you need any help drop me a mail : nirmalkannan at
myfastmail dot com.

Cheers
Nirmal

<code snippet>

...
using mshtml;
using SHDocVw;
using System.Runtime. InteropServices ;
...

namespace WindowsApplicat ion1
{
/// <summary>
/// Summary description for Form1.
/// </summary>
///
public enum DOCHOSTUITYPE
{
DOCHOSTUITYPE_B ROWSE = 0,
DOCHOSTUITYPE_A UTHOR = 1
}

public enum DOCHOSTUIDBLCLK
{
DOCHOSTUIDBLCLK _DEFAULT = 0,
DOCHOSTUIDBLCLK _SHOWPROPERTIES = 1,
DOCHOSTUIDBLCLK _SHOWCODE = 2
}

public enum DOCHOSTUIFLAG
{
DOCHOSTUIFLAG_D IALOG = 0x00000001,
DOCHOSTUIFLAG_D ISABLE_HELP_MEN U = 0x00000002,
DOCHOSTUIFLAG_N O3DBORDER = 0x00000004,
DOCHOSTUIFLAG_S CROLL_NO = 0x00000008,
DOCHOSTUIFLAG_D ISABLE_SCRIPT_I NACTIVE = 0x00000010,
DOCHOSTUIFLAG_O PENNEWWIN = 0x00000020,
DOCHOSTUIFLAG_D ISABLE_OFFSCREE N = 0x00000040,
DOCHOSTUIFLAG_F LAT_SCROLLBAR = 0x00000080,
DOCHOSTUIFLAG_D IV_BLOCKDEFAULT = 0x00000100,
DOCHOSTUIFLAG_A CTIVATE_CLIENTH IT_ONLY = 0x00000200,
DOCHOSTUIFLAG_O VERRIDEBEHAVIOR FACTORY = 0x00000400,
DOCHOSTUIFLAG_C ODEPAGELINKEDFO NTS = 0x00000800,
DOCHOSTUIFLAG_U RL_ENCODING_DIS ABLE_UTF8 = 0x00001000,
DOCHOSTUIFLAG_U RL_ENCODING_ENA BLE_UTF8 = 0x00002000,
DOCHOSTUIFLAG_E NABLE_FORMS_AUT OCOMPLETE = 0x00004000,
DOCHOSTUIFLAG_E NABLE_INPLACE_N AVIGATION = 0x00010000,
DOCHOSTUIFLAG_I ME_ENABLE_RECON VERSION = 0x00020000,
DOCHOSTUIFLAG_T HEME = 0x00040000,
DOCHOSTUIFLAG_N OTHEME = 0x00080000,
DOCHOSTUIFLAG_N OPICS = 0x00100000,
DOCHOSTUIFLAG_N O3DOUTERBORDER = 0x00200000,
DOCHOSTUIFLAG_D ELEGATESIDOFDIS PATCH = 0x00400000
}

[ StructLayout( LayoutKind.Sequ ential )]
public struct DOCHOSTUIINFO
{
uint cbSize;
uint dwFlags;
uint dwDoubleClick;
[MarshalAs(Unman agedType.BStr)] string pchHostCss;
[MarshalAs(Unman agedType.BStr)] string pchHostNS;
}

[StructLayout( LayoutKind.Sequ ential )]
public struct tagMSG
{
IntPtr hwnd;
int lParam;
uint message;
tagPOINT pt;
uint time;
uint wParam;
}

[ComImport(), InterfaceType(C omInterfaceType .InterfaceIsIUn known),
GuidAttribute(" bd3f23c0-d43e-11cf-893b-00aa00bdce1a")]
public interface IDocHostUIHandl er
{
[PreserveSig]
void ShowContextMenu (uint dwID, ref tagPOINT ppt,
[MarshalAs(Unman agedType.IUnkno wn)] object pcmdtReserved,
[MarshalAs(Unman agedType.IDispa tch)]object pdispReserved);
[PreserveSig]
void GetHostInfo(ref DOCHOSTUIINFO pInfo);
[PreserveSig]
void ShowUI(uint dwID, [MarshalAs(Unman agedType.Interf ace)] IntPtr
pActiveObject, [MarshalAs(Unman agedType.Interf ace)] IntPtr
pCommandTarget, [MarshalAs(Unman agedType.Interf ace)] IntPtr pFrame,
[MarshalAs(Unman agedType.Interf ace)] IntPtr pDoc);
[PreserveSig]
void HideUI();
[PreserveSig]
void UpdateUI();
[PreserveSig]
void EnableModeless( int fEnable);
[PreserveSig]
void OnDocWindowActi vate(int fActivate);
[PreserveSig]
void OnFrameWindowAc tivate(int fActivate);
[PreserveSig]
void ResizeBorder(re f tagRECT prcBorder,
[MarshalAs(Unman agedType.Interf ace)] IntPtr pUIWindow, int
fRameWindow);
[PreserveSig]
void TranslateAccele rator(ref tagMSG lpmsg, ref Guid pguidCmdGroup,
uint nCmdID);
[PreserveSig]
void GetOptionKeyPat h(ref string pchKey, uint dw);
[PreserveSig]
void GetDropTarget([MarshalAs(Unman agedType.Interf ace)] IntPtr
pDropTarget, [MarshalAs(Unman agedType.Interf ace)] ref IntPtr
ppDropTarget);
[PreserveSig]
void GetExternal(ref object ppDispatch);
[PreserveSig]
void TranslateUrl(ui nt dwTranslate, ref ushort pchURLIn, IntPtr
ppchURLOut);
[PreserveSig]
void FilterDataObjec t(IDataObject pDO, ref IDataObject ppDORet); }

[ComImport(), InterfaceType(C omInterfaceType .InterfaceIsIUn known),
GuidAttribute(" 3050f3f0-98b5-11cf-bb82-00aa00bdce0b")]
public interface ICustomDoc
{
[PreserveSig]
void SetUIHandler(ID ocHostUIHandler pUIHandler);
}

public class Form1 : System.Windows. Forms.Form, IDocHostUIHandl er {
private AxSHDocVw.AxWeb Browser axWebBrowser1;
private Object refmissing = System.Reflecti on.Missing.Valu e;

// ... usual declarations for your form - textboxes, buttons etc. //
....

public Form1()
{
//
// Required for Windows Form Designer support
//
InitializeCompo nent();

//
// TODO: Add any constructor code after InitializeCompo nent call
//
// The following is necessary before accessing any browser
properties:
// initialise the browser by navigating to a blank page.
string sAddr = "about:Blan k";
axWebBrowser1.N avigate(sAddr, ref refmissing, ref refmissing, ref
refmissing, ref refmissing);
IHTMLDocument2 hDoc = (IHTMLDocument2 )axWebBrowser1. Document;

// The missing link! Set the UI handler for this browser to this
application!!
((ICustomDoc) hDoc).SetUIHand ler((IDocHostUI Handler) this);
}

// other form code, event handlers, your code etc.
/*************** *************** *************** *************** ***************
************/
//
// IDocHostUIHandl er implementation
//

/*************** *************** *************** *************** ***************
************/

public void ShowContextMenu (uint dwID, ref tagPOINT ppt,
[MarshalAs(Unman agedType.IUnkno wn)] object pcmdtReserved,
[MarshalAs(Unman agedType.IDispa tch)]object pdispReserved)
{
Console.WriteLi ne("ShowContext Menu");
}

public void GetHostInfo(ref DOCHOSTUIINFO pInfo)
{
Console.WriteLi ne("GetHostInfo ");
}

public void ShowUI(uint dwID, [MarshalAs(Unman agedType.Interf ace)]
IntPtr pActiveObject, [MarshalAs(Unman agedType.Interf ace)] IntPtr
pCommandTarget, [MarshalAs(Unman agedType.Interf ace)] IntPtr pFrame,
[MarshalAs(Unman agedType.Interf ace)] IntPtr pDoc)
{
Console.WriteLi ne("ShowUI");
}

public void HideUI()
{
Console.WriteLi ne("HideUI");
}

public void UpdateUI()
{
Console.WriteLi ne("UpdateUI") ;
}

public void EnableModeless( int fEnable)
{
Console.WriteLi ne("EnableModel ess");
}

public void OnDocWindowActi vate(int fActivate)
{
Console.WriteLi ne("OnDocWindow Activate");
}

public void OnFrameWindowAc tivate(int fActivate)
{
Console.WriteLi ne("OnFrameWind owActivate");
}

public void ResizeBorder(re f tagRECT prcBorder,
[MarshalAs(Unman agedType.Interf ace)] IntPtr pUIWindow, int
fRameWindow)
{
Console.WriteLi ne("ResizeBorde r");
}

public void TranslateAccele rator(ref tagMSG lpmsg, ref Guid
pguidCmdGroup, uint nCmdID)
{
Console.WriteLi ne("TranslateAc celerator");
}

public void GetOptionKeyPat h(ref string pchKey, uint dw)
{
Console.WriteLi ne("GetOptionKe yPath");
}

public void GetDropTarget([MarshalAs(Unman agedType.Interf ace)]
IntPtr pDropTarget, [MarshalAs(Unman agedType.Interf ace)] ref IntPtr
ppDropTarget)
{
Console.WriteLi ne("GetDropTarg et");
}
public void GetExternal(ref object ppDispatch)
{
Console.WriteLi ne("GetExternal ");
}
public void TranslateUrl(ui nt dwTranslate, ref ushort pchURLIn,
IntPtr ppchURLOut)
{
Console.WriteLi ne("TranslateUr l");
}
public void FilterDataObjec t(IDataObject pDO, ref IDataObject
ppDORet)
{
Console.WriteLi ne("FilterDataO bject");
}
}
}
</codesnippet>

"John Bowman" <<Remove this before reply> jo*********@the rmo.com> wrote in message news:<ef******* *******@TK2MSFT NGP09.phx.gbl>. ..
ISMAILRAJPUT,

That's what I was hoping for, but no click events appear in the list of
events in VS designer to implement. A few others do appear, but nothing
apparently useful. How can I get at the OnClick event when it's not there?

John

"ISMAILRAJP UT" <hu************ @hotmail.com> wrote in message
news:%2******** ********@TK2MSF TNGP11.phx.gbl. ..
Just a Guess

Right click event will occure but i think what you need is "Do not Handle
the Event" or if there is a contextmenu attached, remove it.

---------------------------------------------------------
"John Bowman jo*********@the rmo.com>" <<Remove this before reply> wrote in
message news:Od******** ******@TK2MSFTN GP11.phx.gbl...
Hi,
How can I disable the right click capability of the Web Browser control
that's on a form? I only want it to display the HTML, w/ no popup menu.

TIA,

--
John C. Bowman
Software Engineer
Thermo Electron Scientific Instruments Div.
<Remove this before reply> jo*********@the rmo.com


Nov 16 '05 #4
Nirmal,

Thanks for the code. After massaging it to fit my test code project, I've
managed to make it work. I'm still a newbie at COM /Interop and interface
programming so it's rather confusing for now. It'll take a while to soak in
and understand it all. How on Earth did you ever figure this out? I'm lost
just reading the MS documentation :(.

Thanks again,

John

"N.K" <ni**********@h otmail.com> wrote in message
news:5b******** *************** ***@posting.goo gle.com...
Related KB Artcicle : 236312

<<http://support.microsoft.com/default...t.microsoft.co
m:80/support/kb/articles/Q236/3/12.asp&NoWebCon tent=1>>

Attached find the code snippet for the same, I got this soem somewhere
in usenet.

I remember, I had some problems doing this way .But was able to
solve. If you need any help drop me a mail : nirmalkannan at
myfastmail dot com.

Cheers
Nirmal

<code snippet>

..
using mshtml;
using SHDocVw;
using System.Runtime. InteropServices ;
..

namespace WindowsApplicat ion1
{
/// <summary>
/// Summary description for Form1.
/// </summary>
///
public enum DOCHOSTUITYPE
{
DOCHOSTUITYPE_B ROWSE = 0,
DOCHOSTUITYPE_A UTHOR = 1
}

public enum DOCHOSTUIDBLCLK
{
DOCHOSTUIDBLCLK _DEFAULT = 0,
DOCHOSTUIDBLCLK _SHOWPROPERTIES = 1,
DOCHOSTUIDBLCLK _SHOWCODE = 2
}

public enum DOCHOSTUIFLAG
{
DOCHOSTUIFLAG_D IALOG = 0x00000001,
DOCHOSTUIFLAG_D ISABLE_HELP_MEN U = 0x00000002,
DOCHOSTUIFLAG_N O3DBORDER = 0x00000004,
DOCHOSTUIFLAG_S CROLL_NO = 0x00000008,
DOCHOSTUIFLAG_D ISABLE_SCRIPT_I NACTIVE = 0x00000010,
DOCHOSTUIFLAG_O PENNEWWIN = 0x00000020,
DOCHOSTUIFLAG_D ISABLE_OFFSCREE N = 0x00000040,
DOCHOSTUIFLAG_F LAT_SCROLLBAR = 0x00000080,
DOCHOSTUIFLAG_D IV_BLOCKDEFAULT = 0x00000100,
DOCHOSTUIFLAG_A CTIVATE_CLIENTH IT_ONLY = 0x00000200,
DOCHOSTUIFLAG_O VERRIDEBEHAVIOR FACTORY = 0x00000400,
DOCHOSTUIFLAG_C ODEPAGELINKEDFO NTS = 0x00000800,
DOCHOSTUIFLAG_U RL_ENCODING_DIS ABLE_UTF8 = 0x00001000,
DOCHOSTUIFLAG_U RL_ENCODING_ENA BLE_UTF8 = 0x00002000,
DOCHOSTUIFLAG_E NABLE_FORMS_AUT OCOMPLETE = 0x00004000,
DOCHOSTUIFLAG_E NABLE_INPLACE_N AVIGATION = 0x00010000,
DOCHOSTUIFLAG_I ME_ENABLE_RECON VERSION = 0x00020000,
DOCHOSTUIFLAG_T HEME = 0x00040000,
DOCHOSTUIFLAG_N OTHEME = 0x00080000,
DOCHOSTUIFLAG_N OPICS = 0x00100000,
DOCHOSTUIFLAG_N O3DOUTERBORDER = 0x00200000,
DOCHOSTUIFLAG_D ELEGATESIDOFDIS PATCH = 0x00400000
}

[ StructLayout( LayoutKind.Sequ ential )]
public struct DOCHOSTUIINFO
{
uint cbSize;
uint dwFlags;
uint dwDoubleClick;
[MarshalAs(Unman agedType.BStr)] string pchHostCss;
[MarshalAs(Unman agedType.BStr)] string pchHostNS;
}

[StructLayout( LayoutKind.Sequ ential )]
public struct tagMSG
{
IntPtr hwnd;
int lParam;
uint message;
tagPOINT pt;
uint time;
uint wParam;
}

[ComImport(), InterfaceType(C omInterfaceType .InterfaceIsIUn known),
GuidAttribute(" bd3f23c0-d43e-11cf-893b-00aa00bdce1a")]
public interface IDocHostUIHandl er
{
[PreserveSig]
void ShowContextMenu (uint dwID, ref tagPOINT ppt,
[MarshalAs(Unman agedType.IUnkno wn)] object pcmdtReserved,
[MarshalAs(Unman agedType.IDispa tch)]object pdispReserved);
[PreserveSig]
void GetHostInfo(ref DOCHOSTUIINFO pInfo);
[PreserveSig]
void ShowUI(uint dwID, [MarshalAs(Unman agedType.Interf ace)] IntPtr
pActiveObject, [MarshalAs(Unman agedType.Interf ace)] IntPtr
pCommandTarget, [MarshalAs(Unman agedType.Interf ace)] IntPtr pFrame,
[MarshalAs(Unman agedType.Interf ace)] IntPtr pDoc);
[PreserveSig]
void HideUI();
[PreserveSig]
void UpdateUI();
[PreserveSig]
void EnableModeless( int fEnable);
[PreserveSig]
void OnDocWindowActi vate(int fActivate);
[PreserveSig]
void OnFrameWindowAc tivate(int fActivate);
[PreserveSig]
void ResizeBorder(re f tagRECT prcBorder,
[MarshalAs(Unman agedType.Interf ace)] IntPtr pUIWindow, int
fRameWindow);
[PreserveSig]
void TranslateAccele rator(ref tagMSG lpmsg, ref Guid pguidCmdGroup,
uint nCmdID);
[PreserveSig]
void GetOptionKeyPat h(ref string pchKey, uint dw);
[PreserveSig]
void GetDropTarget([MarshalAs(Unman agedType.Interf ace)] IntPtr
pDropTarget, [MarshalAs(Unman agedType.Interf ace)] ref IntPtr
ppDropTarget);
[PreserveSig]
void GetExternal(ref object ppDispatch);
[PreserveSig]
void TranslateUrl(ui nt dwTranslate, ref ushort pchURLIn, IntPtr
ppchURLOut);
[PreserveSig]
void FilterDataObjec t(IDataObject pDO, ref IDataObject ppDORet); }

[ComImport(), InterfaceType(C omInterfaceType .InterfaceIsIUn known),
GuidAttribute(" 3050f3f0-98b5-11cf-bb82-00aa00bdce0b")]
public interface ICustomDoc
{
[PreserveSig]
void SetUIHandler(ID ocHostUIHandler pUIHandler);
}

public class Form1 : System.Windows. Forms.Form, IDocHostUIHandl er {
private AxSHDocVw.AxWeb Browser axWebBrowser1;
private Object refmissing = System.Reflecti on.Missing.Valu e;

// ... usual declarations for your form - textboxes, buttons etc. //
...

public Form1()
{
//
// Required for Windows Form Designer support
//
InitializeCompo nent();

//
// TODO: Add any constructor code after InitializeCompo nent call
//
// The following is necessary before accessing any browser
properties:
// initialise the browser by navigating to a blank page.
string sAddr = "about:Blan k";
axWebBrowser1.N avigate(sAddr, ref refmissing, ref refmissing, ref
refmissing, ref refmissing);
IHTMLDocument2 hDoc = (IHTMLDocument2 )axWebBrowser1. Document;

// The missing link! Set the UI handler for this browser to this
application!!
((ICustomDoc) hDoc).SetUIHand ler((IDocHostUI Handler) this);
}

// other form code, event handlers, your code etc.
/*************** *************** *************** *************** *************** ************/
//
// IDocHostUIHandl er implementation
//

/*************** *************** *************** *************** *************** ************/

public void ShowContextMenu (uint dwID, ref tagPOINT ppt,
[MarshalAs(Unman agedType.IUnkno wn)] object pcmdtReserved,
[MarshalAs(Unman agedType.IDispa tch)]object pdispReserved)
{
Console.WriteLi ne("ShowContext Menu");
}

public void GetHostInfo(ref DOCHOSTUIINFO pInfo)
{
Console.WriteLi ne("GetHostInfo ");
}

public void ShowUI(uint dwID, [MarshalAs(Unman agedType.Interf ace)]
IntPtr pActiveObject, [MarshalAs(Unman agedType.Interf ace)] IntPtr
pCommandTarget, [MarshalAs(Unman agedType.Interf ace)] IntPtr pFrame,
[MarshalAs(Unman agedType.Interf ace)] IntPtr pDoc)
{
Console.WriteLi ne("ShowUI");
}

public void HideUI()
{
Console.WriteLi ne("HideUI");
}

public void UpdateUI()
{
Console.WriteLi ne("UpdateUI") ;
}

public void EnableModeless( int fEnable)
{
Console.WriteLi ne("EnableModel ess");
}

public void OnDocWindowActi vate(int fActivate)
{
Console.WriteLi ne("OnDocWindow Activate");
}

public void OnFrameWindowAc tivate(int fActivate)
{
Console.WriteLi ne("OnFrameWind owActivate");
}

public void ResizeBorder(re f tagRECT prcBorder,
[MarshalAs(Unman agedType.Interf ace)] IntPtr pUIWindow, int
fRameWindow)
{
Console.WriteLi ne("ResizeBorde r");
}

public void TranslateAccele rator(ref tagMSG lpmsg, ref Guid
pguidCmdGroup, uint nCmdID)
{
Console.WriteLi ne("TranslateAc celerator");
}

public void GetOptionKeyPat h(ref string pchKey, uint dw)
{
Console.WriteLi ne("GetOptionKe yPath");
}

public void GetDropTarget([MarshalAs(Unman agedType.Interf ace)]
IntPtr pDropTarget, [MarshalAs(Unman agedType.Interf ace)] ref IntPtr
ppDropTarget)
{
Console.WriteLi ne("GetDropTarg et");
}
public void GetExternal(ref object ppDispatch)
{
Console.WriteLi ne("GetExternal ");
}
public void TranslateUrl(ui nt dwTranslate, ref ushort pchURLIn,
IntPtr ppchURLOut)
{
Console.WriteLi ne("TranslateUr l");
}
public void FilterDataObjec t(IDataObject pDO, ref IDataObject
ppDORet)
{
Console.WriteLi ne("FilterDataO bject");
}
}
}
</codesnippet>

"John Bowman" <<Remove this before reply> jo*********@the rmo.com> wrote in

message news:<ef******* *******@TK2MSFT NGP09.phx.gbl>. ..
ISMAILRAJPUT,

That's what I was hoping for, but no click events appear in the list of
events in VS designer to implement. A few others do appear, but nothing
apparently useful. How can I get at the OnClick event when it's not there?
John

"ISMAILRAJP UT" <hu************ @hotmail.com> wrote in message
news:%2******** ********@TK2MSF TNGP11.phx.gbl. ..
Just a Guess

Right click event will occure but i think what you need is "Do not Handle the Event" or if there is a contextmenu attached, remove it.

---------------------------------------------------------
"John Bowman jo*********@the rmo.com>" <<Remove this before reply> wrote in message news:Od******** ******@TK2MSFTN GP11.phx.gbl...
> Hi,
>
>
> How can I disable the right click capability of the Web Browser control > that's on a form? I only want it to display the HTML, w/ no popup menu. >
> TIA,
>
> --
> John C. Bowman
> Software Engineer
> Thermo Electron Scientific Instruments Div.
> <Remove this before reply> jo*********@the rmo.com
>
>

Nov 16 '05 #5

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

Similar topics

2
2377
by: dxben | last post by:
I am considering a situation where I have (n) number of form windows, each with an instance of the Microsoft Web Browser Control (IE) on each form. In each web browser control is an HTML page that has a Java applet. This is the only way I am aware of to get a Java applet to paint within a .NET Forms window. Given that scenario I am trying to determine whethere there would be one Java VM loaded for all of the (n) applets inside the (n) MS...
1
3209
by: Mark Johnson | last post by:
I wonder if anyone has a solution? I wanted to use the web browser control as a 'zoom' box for a smaller textbox. I can format in the control, and save whatever formatting as HTML code back to the textbox when the web browser is closed. The only problem comes in the use of numeric entities to specify Unicode. The web browser control is fine when it comes to named entities, like &nbsp; . And there are a lot of named entities, just...
0
2884
by: Mark Johnson | last post by:
The last reply got sort of cutoff. So here again: So for anyone interested, here's the simple regexp patterns for the substitutions required. The textbox control is being 'zoomed' in a popup which uses a web browser control. As soon as any numeric entity gets put into the browser control, it's lost. It will display properly. But it can't be then read back out with document.body.innerHTML (or outerHTML). It's
1
7632
by: Praveena | last post by:
Hi All, I am developing a Web Page in ASP.NET where i am using a Web Browser control. I created this selecting the "Microsoft Web Browser" in the custom controls. Now the problem is with the access. Once I drag and drop this control on the ASPX page then some code like this gets added to the WebForm1.aspx OBJECT language="C#" id="mybrowser" with a class id and a list of properties.
28
564
by: BobAchgill | last post by:
Has anyone had success with using this Com control? When I add it into my tool box and drop it into my form it says in the properties that the Document and LocationURL are read only. (they are grayed out) I am successful to get Media Play Com to work alright in the form but can not get Web Browser to work.
12
7640
by: VJ | last post by:
I am using the web browser control.., I would like to add the control at runtime... I was adding the web browser control at desgin time. Now I decided to add the control at run time so I removed the control from the form and also the refrences to AxSHDocVw and SHDocVw, then I added the following statments Dim axwbOfficeDocEditor As New AxSHDocVw.AxWebBrowser Me.Controls.Add(axwbOfficeDocEditor) axwbOfficeDocEditor.Dock = DockStyle.Fill
1
4775
by: Oenone | last post by:
I've reached the conversion of a part of my application from VB6 to VB.NET which uses the COM Web Browser control to display HTML content generated by my application. The general approach used in VB6 is as follows: Open the form containing the browser Wait a few seconds for the Browser.Document property to initialise With the Document object, call the following methods: .Clear()
0
1625
by: Pieter | last post by:
Hi, I've a activex browser control in a form. I've added proxy server support to the control by modifying the proxy server settings in the registry. This works fine before the browser control is created (the browser control is only created after a button on the form is pressed). However, once the initial proxy settings are commited and the browser control is created, the browser control does not respond to any new settings even though...
1
2361
by: john conwell | last post by:
I'm using the Browser control to display html that my application generates. Some times i want a javascript to run when the html gets displayed in the browser control, and sometimes i dont. Is there a way to invoke a javascript function from the browser control? or maybe inject some javascript vis the control's reference to the Document object? I think i can do it with the Window object, but I have seem to figout out how to get to the...
5
2069
by: jeremy | last post by:
I have an ASP.Net 2.0 application running on Windows Server 2003. The application displays properly in Internet Explorer, however, when I use a browser control embedded in a .net form, I get an error and am directed to the Windows Application Event Log. The following message is logged: ------------- Source: ASP.NET 1.1.4322.0 Event ID: 1062
0
9646
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, 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...
0
10350
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. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10097
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,...
0
9957
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8983
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7505
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5386
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4055
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
2
3658
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.