Hi
I'm developing an internet app. in which I want to prevent the user from
being able to browse the web whikst they are in the app. So I want to hide
the I.E. address bar and prevent any new instances of I.E. other than the one
running the app.
I.E. 5 or later are specified as the only programs for running hte app, so I
donlt have to be concerned about other, or earlier, browsers.
Any pointer would be appreciated. I can't modify the registry as the
machines are locked down, which excludes a lot of things I've seen on the web.
Thanks
David 8 1567
Hi David,
First of all, I would like to confirm my understanding of your issue. From
your description, I understand that you need to open an IE window with no
address bar. If there is any misunderstandin g, please feel free to let me
know.
As far as I know, this can only be achieved by using some client side
script. When opening a new window using window.open, we can specify this in
the feature arguments. Here is an example,
function NewWindow()
{
window.open("ht tp://www.microsoft.c om", null,
"height=200,wid th=400,status=n o,toolbar=no,me nubar=no,locati on=no")
}
For more information on window.open, please check the following link: http://msdn.microsoft.com/library/de...thor/dhtml/ref
erence/methods/open_0.asp
If you're working on a Windows form app that cannot use javascripts, you
can try to add an IE web browser control.
HTH.
Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."
Hi Kevin
I didn't explain fully. The app is a standard .NET app written in c#.
When user goes to Url for the app, I want to close close the address bar. It
can stay closed until next time they start I.E. If necessry I will close it
on every page of my app but hopefully this won't be necessary.
Essentially we want to stop the user having access to the internet whist
running this internet app! They will be in a classroom situation and we don't
want them looking for answers! There is an invigilator keeping an eye on the
users, however...
Even more important is to stop the user running a second browser because
then, of course, they can quickly switch between the two copies, getting
answers from one and entering them into another - and if the invigilator
comes close its so easy to flick away from the second browser. If they get
caught with more than 1 browser they wil be disqualified, but that won't stop
some trying, Im sure.
Any pointer for this woudl be appreciated.
David
"Kevin Yu [MSFT]" wrote: Hi David,
First of all, I would like to confirm my understanding of your issue. From your description, I understand that you need to open an IE window with no address bar. If there is any misunderstandin g, please feel free to let me know.
As far as I know, this can only be achieved by using some client side script. When opening a new window using window.open, we can specify this in the feature arguments. Here is an example,
function NewWindow() { window.open("ht tp://www.microsoft.c om", null, "height=200,wid th=400,status=n o,toolbar=no,me nubar=no,locati on=no") }
For more information on window.open, please check the following link:
http://msdn.microsoft.com/library/de...thor/dhtml/ref erence/methods/open_0.asp
If you're working on a Windows form app that cannot use javascripts, you can try to add an IE web browser control.
HTH.
Kevin Yu ======= "This posting is provided "AS IS" with no warranties, and confers no rights."
Hi David,
It hard to start an IE process from your windows form app with the address
bar hidden. So I recommend you try to use the Microsoft Web Browser control
in your app to browse a page. Here are the steps:
1. Right click in the toolbox and select Add/Remove Items...
2. On the COM Components tab, check Microsoft Web Browser and click OK.
3. Add a control to your form.
You can use the Navigate method to open the URL. HTH.
Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."
Hi Kevin
This is an internet app. It is running in Internet Explorer right from the
start.
David
"Kevin Yu [MSFT]" wrote: Hi David,
It hard to start an IE process from your windows form app with the address bar hidden. So I recommend you try to use the Microsoft Web Browser control in your app to browse a page. Here are the steps:
1. Right click in the toolbox and select Add/Remove Items... 2. On the COM Components tab, check Microsoft Web Browser and click OK. 3. Add a control to your form.
You can use the Navigate method to open the URL. HTH.
Kevin Yu ======= "This posting is provided "AS IS" with no warranties, and confers no rights."
Hi David,
Since it is running from a web app, I think the following script will meet
you needs. First, it opens a new IE window with no address bar. Then the
parent window closes itself. HTH.
function OpenNewWindow()
{
window.open("ht tp://www.microsoft.c om", null,
"height=200,wid th=400,status=n o,toolbar=no,me nubar=no,locati on=no");
window.opener=w indow.self;
window.close();
}
Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."
Hi Kevin
I've experimented with tis and I think I can get it to do the job.
Thank you very much for your help.
Any thoughts about preventing another instance of I.E. or of detecting one
and shutting it down?
Probably goes against all the security checks to be able to do this,
especially if XP SP2 in use! But ...
David
"Kevin Yu [MSFT]" wrote: Hi David,
Since it is running from a web app, I think the following script will meet you needs. First, it opens a new IE window with no address bar. Then the parent window closes itself. HTH.
function OpenNewWindow() { window.open("ht tp://www.microsoft.c om", null, "height=200,wid th=400,status=n o,toolbar=no,me nubar=no,locati on=no"); window.opener=w indow.self; window.close(); }
Kevin Yu ======= "This posting is provided "AS IS" with no warranties, and confers no rights."
You're welcome, David. However, I think it's quite hard to restrict only
one IE instance running on certain machine.
Thanks for sharing your experience with all the people here. If you have
any questions, please feel free to post them in the community.
Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."
Hi Kevin
Thanks for the reply. What I am now thinking about is providing a WSH script
that can be run to change the setiup before the applicaiton is run, then a
secopnd script to run afterwards to restore the set-up. The script can them,
perhaps, set I.E. to allow input from only one web site. Then it does not
matter how many instances there are. Unfortunately I have never written a wsh
script! I'll start looking for resources to see if this approach is viable.
Thanks again,
David
"Kevin Yu [MSFT]" wrote: You're welcome, David. However, I think it's quite hard to restrict only one IE instance running on certain machine.
Thanks for sharing your experience with all the people here. If you have any questions, please feel free to post them in the community.
Kevin Yu ======= "This posting is provided "AS IS" with no warranties, and confers no rights."
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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...
|
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 . And there are a lot of
named entities, just...
|
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
|
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.
|
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.
| |
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
|
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()
|
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...
|
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...
|
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
|
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: 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...
|
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...
|
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...
|
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 into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
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...
| |