473,387 Members | 1,641 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

How to access the web from windows form?

RA
Hi

I have a c# windows form and when the user click a button I need to open IE
with a specified url and some arguments I need to pass with the url using
the POST method so that the arguments won't show with the url address. How
can I do this?

Thanks
Nov 15 '05 #1
3 1477
RA,

To do something like this, it is going to be a little complicated. What
you probably want to do is create an instance of Internet Explorer to
automate. Once you have that, you can get the IWebBrowser2 interface and
then call the Navigate or Navigate2 method, allowing you to pass parameters
in a POST.

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

"RA" <ro****@hotmail.com> wrote in message
news:uK**************@TK2MSFTNGP10.phx.gbl...
Hi

I have a c# windows form and when the user click a button I need to open IE with a specified url and some arguments I need to pass with the url using
the POST method so that the arguments won't show with the url address. How
can I do this?

Thanks

Nov 15 '05 #2
"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard.caspershouse.com> wrote in message news:<#S**************@TK2MSFTNGP11.phx.gbl>...
RA,

To do something like this, it is going to be a little complicated. What
you probably want to do is create an instance of Internet Explorer to
automate. Once you have that, you can get the IWebBrowser2 interface and
then call the Navigate or Navigate2 method, allowing you to pass parameters
in a POST.

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

"RA" <ro****@hotmail.com> wrote in message
news:uK**************@TK2MSFTNGP10.phx.gbl...
Hi

I have a c# windows form and when the user click a button I need to open

IE
with a specified url and some arguments I need to pass with the url using
the POST method so that the arguments won't show with the url address. How
can I do this?

Thanks


Try adding a link label to your form; it will look just like a link on
a web page. Then add the following to "LinkClicked":

System.Diagnostics.Process.Start("http://www.yourpage.com")

Hope this helps.
Paul
Nov 15 '05 #3
Unfortunately, this will not allow the application launching it to
specify parameters in a POST to that URL.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"PDench" <pd****@denchconsulting.com> wrote in message
news:c2**************************@posting.google.c om...
"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard.caspershouse.com> wrote

in message news:<#S**************@TK2MSFTNGP11.phx.gbl>...
RA,

To do something like this, it is going to be a little complicated. What you probably want to do is create an instance of Internet Explorer to
automate. Once you have that, you can get the IWebBrowser2 interface and then call the Navigate or Navigate2 method, allowing you to pass parameters in a POST.

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

"RA" <ro****@hotmail.com> wrote in message
news:uK**************@TK2MSFTNGP10.phx.gbl...
Hi

I have a c# windows form and when the user click a button I need to open
IE
with a specified url and some arguments I need to pass with the url

using the POST method so that the arguments won't show with the url address. How can I do this?

Thanks


Try adding a link label to your form; it will look just like a link on
a web page. Then add the following to "LinkClicked":

System.Diagnostics.Process.Start("http://www.yourpage.com")

Hope this helps.
Paul

Nov 15 '05 #4

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

Similar topics

6
by: Hamed | last post by:
Hello I have employed as a developer in a software company that its team uses FoxPro / VB 6.0 / VC++ 6.0 as the developing tools and newly is going to migrate to VS.NET. There is a project...
7
by: Ryan Park | last post by:
Hi, //SITUATION I got a panel control that hold a certain position on a form. Every controls or UIs are on this panel. At certain situation, I called dispose() method of this panel control...
6
by: Peter Frost | last post by:
Please help I don't know if this is possible but what I would really like to do is to use On Error Goto to capture the code that is being executed when an error occurs. Any help would be much...
29
by: Patrick | last post by:
I have the following code, which regardless which works fine and logs to the EventViewer regardless of whether <processModel/> section of machine.config is set to username="SYSTEM" or "machine" ...
13
by: Al the programmer | last post by:
I need to access the serial ports on my webserver from an asp.net page. I have no problem accessing the serial ports from a windows form application, but the code doesn't work in asp.net. I have...
11
by: CM Manager via DotNetMonster.com | last post by:
I am very frustrated due to this exception error I am receiving. I've tried searching numerous user support groups, Microsoft Support Net, Google, etc. and haven't found exactly my situation....
6
by: dbuchanan | last post by:
I have a Windows Forms application that accesses SQL Server 2k from a small local network. The application has been used for weeks on other systmes but a new install on a new machine retruns...
16
by: John | last post by:
I am looking for VBA code that will work with Access 2003 to enable dragging and dropping a file/folder name from Windows XP Explorer into an Access form's text box. This is a common functionality...
6
by: Wesley Peace | last post by:
I hate to cross post, but I've gotten no answer yet on a problem I'm having with visual studio 2008. I've created a series of forms with controls to access a Access database tables. The...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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...

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.