Click here to Skip to main content
15,893,508 members
Home / Discussions / C#
   

C#

 
GeneralRe: globalization / localization commas and periods Pin
Guffa8-May-08 20:32
Guffa8-May-08 20:32 
GeneralRe: globalization / localization commas and periods Pin
Glen Harvy8-May-08 21:38
Glen Harvy8-May-08 21:38 
GeneralRe: globalization / localization commas and periods Pin
Guffa8-May-08 23:28
Guffa8-May-08 23:28 
Questionconnecting webservice from port 21 Pin
tai-fun8-May-08 11:24
tai-fun8-May-08 11:24 
AnswerRe: connecting webservice from port 21 Pin
Rob Graham8-May-08 11:35
Rob Graham8-May-08 11:35 
GeneralRe: connecting webservice from port 21 Pin
tai-fun8-May-08 11:57
tai-fun8-May-08 11:57 
GeneralRe: connecting webservice from port 21 Pin
Rob Graham11-May-08 5:15
Rob Graham11-May-08 5:15 
Questionstart IE without addressbar, status bar Pin
sikp8-May-08 11:08
sikp8-May-08 11:08 
Hi,
I need start IE in new window without addressbar, status bar but I cannot use kiosk mode (I need defined window size).
I need to know the processID of the IE process also.

Im using this code now:
System.Diagnostics.Process p = new System.Diagnostics.Process();
p.StartInfo.FileName = "C:\Program Files\Internet Explorer\IEXPLORE.EXE";
p.StartInfo.Arguments = "http://google.cz";
p.Start();
int pid = p.Id;

It starts the new IE window and returns its PID, but I don't know, howto hide address bar, status bar and so on..

Then I tried this approach:

System.Type oType = System.Type.GetTypeFromProgID("InternetExplorer.Application");
object o = System.Activator.CreateInstance(oType);
o.GetType().InvokeMember("menubar", System.Reflection.BindingFlags.SetProperty, null, o, new object[] { 0 });
o.GetType().InvokeMember("toolbar", System.Reflection.BindingFlags.SetProperty, null, o, new object[] { 0 });
o.GetType().InvokeMember("statusBar", System.Reflection.BindingFlags.SetProperty, null, o, new object[] { 0 });
o.GetType().InvokeMember("addressbar", System.Reflection.BindingFlags.SetProperty, null, o, new object[] { 0 });
o.GetType().InvokeMember("Visible", System.Reflection.BindingFlags.SetProperty, null, o, new object[] { true });

It starts IE window without address bar, status bar.. but I don't know, howto find processID of this instance..

Please help..

Regards,
Petr
AnswerRe: start IE without addressbar, status bar Pin
DanB19838-May-08 12:04
DanB19838-May-08 12:04 
GeneralRe: start IE without addressbar, status bar Pin
sikp8-May-08 12:36
sikp8-May-08 12:36 
GeneralRe: start IE without addressbar, status bar Pin
PIEBALDconsult8-May-08 13:57
mvePIEBALDconsult8-May-08 13:57 
GeneralRe: start IE without addressbar, status bar Pin
sikp8-May-08 14:12
sikp8-May-08 14:12 
GeneralRe: start IE without addressbar, status bar Pin
DanB19838-May-08 21:34
DanB19838-May-08 21:34 
GeneralRe: start IE without addressbar, status bar Pin
sikp8-May-08 21:57
sikp8-May-08 21:57 
GeneralRe: start IE without addressbar, status bar Pin
DanB19838-May-08 22:01
DanB19838-May-08 22:01 
QuestionWriting a raytracer to learn the language... hit a problem.... Pin
bobmitch8-May-08 11:00
bobmitch8-May-08 11:00 
AnswerRe: Writing a raytracer to learn the language... hit a problem.... Pin
Colin Angus Mackay8-May-08 11:05
Colin Angus Mackay8-May-08 11:05 
QuestionNEW operator Pin
AlexPizzano8-May-08 10:48
AlexPizzano8-May-08 10:48 
AnswerRe: NEW operator Pin
Colin Angus Mackay8-May-08 11:02
Colin Angus Mackay8-May-08 11:02 
QuestionHow to free up memory in C# applications? Pin
Noemi Katinka8-May-08 9:29
Noemi Katinka8-May-08 9:29 
AnswerRe: How to free up memory in C# applications? Pin
Gareth H8-May-08 9:43
Gareth H8-May-08 9:43 
AnswerRe: How to free up memory in C# applications? Pin
Christian Graus8-May-08 11:10
protectorChristian Graus8-May-08 11:10 
AnswerRe: How to free up memory in C# applications? Pin
tgrt8-May-08 11:14
tgrt8-May-08 11:14 
AnswerRe: How to free up memory in C# applications? Pin
stano8-May-08 11:54
stano8-May-08 11:54 
QuestionOleDB DataReader not working Pin
Cozmo238-May-08 9:22
Cozmo238-May-08 9:22 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.