473,473 Members | 1,555 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

VB.NET Process

5 New Member
Hi,

Can someone tell me a way to get around this issue. When I run the following code using the "ProcessWindowStyle.Hidden" NO "MainWindowTitle" will show. If I use any other Windowstyle it shows. Any ideas would be appreciated. Using VB.NET 2.0.

Dim myProcess As New Process
Dim myProcessInfo As ProcessStartInfo
myProcessInfo = New ProcessStartInfo("iexplore", "www.google.com")
myProcessInfo.WindowStyle = ProcessWindowStyle.Hidden
myProcess.StartInfo = myProcessInfo
myProcess.Start()
myProcess.WaitForExit(1000)
txtrmsg.Text = myProcess.MainWindowTitle
myProcess.Kill()
myProcess.Dispose()


Thanks,
dock
Aug 27 '07 #1
5 1511
Plater
7,872 Recognized Expert Expert
What exactly are you looking for?
What is the problem?

Are you trying to have the window not show at all?
Aug 27 '07 #2
dock
5 New Member
I was trying to get the title of the webpage.
Aug 27 '07 #3
dock
5 New Member
Sorry, I should explain this better.

I use www.google.com just as an example.

What I'm trying to accomplish I have a VBNET windows application that will run on any client. It will run a process "www.mysite.com?id=111" that will simply process this url on my server and update SQL. I then would like to send some return code or something back to the client? I thought of just using the windows title to relay that back. Do you know of another way?

Thanks,
Aug 27 '07 #4
Plater
7,872 Recognized Expert Expert
Try out the HttpWebRequest object.
It allows you to send a web request like you mentioned and receive the response back. All without opening up any windows or anything.
From what you described I would think this would solve your problem.
Aug 27 '07 #5
dock
5 New Member
Thank you very much!

Have a nice day.
Aug 27 '07 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Peter Åstrand | last post by:
There's a new PEP available: PEP 324: popen5 - New POSIX process module A copy is included below. Comments are appreciated. ---- PEP: 324 Title: popen5 - New POSIX process module
11
by: Mike M | last post by:
Is it possible? In the parent process, I have a socket that binds, listens and then accepts new connections (which creates new sockets in the process). I want to be able to pass some of these new...
6
by: Michael J. Moore | last post by:
Is it the listener process, or some other Oracle process. Also, on a UNIX system, when you do "ps -ef" to see your processes, the PPID points back to a process named "init". Why does the PPID not...
12
by: serge calderara | last post by:
Dear all, I have an application which is suppose to start another executable process. As soon as that process is running, I need to retrive its handle. The problem of the particular process I am...
77
by: Charles Law | last post by:
Hi guys I have a time critical process, running on a worker thread. By "time critical", I mean that certain parts of the process must be completed in a specific time frame. The time when the...
6
by: Dmitri Shvetsov | last post by:
Hi, Can I start an external process from the Web Service? I'm using a code, compiler keeps silence, compiles ok and starts the project. When I trace in Debugger it doesn't start an external...
10
by: Sorin Dolha [MCSD .NET] | last post by:
I would like to start a process from C# code as another user. The C# code is executed as the ASPNET user because it relies in a Web Page class, and I would like that the process will run as another...
5
by: GTS | last post by:
Hi All, I am spawning a process from a service. The spawned process hungs for various reasons, (corrupted data, deadlock). I am expecting the process has to complete the task with in the...
11
by: Jon Davis | last post by:
Does anyone know why using System.Diagnostics.Process to "wrap" a console application does not always transmit the I/O, depending on what processes you're trying to "consume"? PowerShell, for...
4
by: =?Utf-8?B?U3Jhag==?= | last post by:
There is a process A that launches process B as a COM object. If the User tries to end process A, process B should also end. But vice versa is not true. Process A can run independant of process. It...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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
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...
0
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...
0
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...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
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 ...

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.