|
Hey
I have recently started C# programming
and was wondering, when i create a button i can make it display a message box however i want to know how this same button can also open a website URL.
Thanks in advance
Benjamin Dodd
|
|
|
|
|
Benjamin Dodd wrote: how this same button can also open a website URL.
Create a new website url shortcut file. Open that file using Process.Start() method
|
|
|
|
|
Thanks for your help.
N a v a n e e t h wrote: Open that file using Process.Start() method
so, example - Process.Start(C:\Documents and Settings\stc12191\My Documents)
is that right :s
i saved a webpage in my documents, so if i use the code:
Process.Start(C:\Documents and Settings\stc12191\My Documents)
will that open the web page
thanks
Benjamin Dodd
|
|
|
|
|
You could look here[^] to get started with this.
|
|
|
|
|
Benjamin Dodd wrote: i saved a webpage in my documents, so if i use the code:
Process.Start(C:\Documents and Settings\stc12191\My Documents)
will that open the web page
No.
1 - you didn't put the string in quotes
2 - if you have 20 web pages in this folder, how would you expect windows to just pick one, or even know you wanted to open a web page ? Process.Start starts a program, and if you give it a file, it tries to open it with the default program. So, if you put the name of the htm file at the end of that path, that will work.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Christian Graus wrote: if you have 20 web pages in this folder, how would you expect windows to just pick one, or even know you wanted to open a web page ?
ooops i forgot that bit
thanks for your help
is this right then
("C:\Documents and Settings\stc12191\My Documents\google")
ps. i cannot check the code now as i am not on my laptop which has c# installed
Benjamin Dodd
|
|
|
|
|
So long as google is the name of a html file, and so long as IE can work that out without the file extension being present.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
yep, thanks alot mate for the help
i will try this now as i have just loaded up my laptop
thanks
Benjamin Dodd
|
|
|
|
|
N a v a n e e t h wrote: Create a new website url shortcut file. Open that file using Process.Start() method
This code didn't work
i am using Visual C# 2005 express edition
it said that ''Process' does not exist in the current context'
am i doing something wrong here?
i put this code under the 'button1_Click' area
Benjamin Dodd
|
|
|
|
|
Hello,
using System.Diagnostics;
All the best,
Martin
|
|
|
|
|
It says Process 'does not exist in the current context.
What am i doing wrong?
Benjamin Dodd
|
|
|
|
|
C# reversed the code for me....now it says 'System.Diagnoatics.Process'
and recognises this.
After this i put....'.("C:");'
now it says.....Identifier expected and higlights the '('
Benjamin Dodd
|
|
|
|
|
|
Hello,
The compiler doesn't know which Process class you mean.
You could set a using statement at the top of your class (under "using System;"),
or use the full qualified name instead (System.Diagnostics.Process)
All the best,
Martin
|
|
|
|
|
|
Hi,
I need to populate a Dev Express chart control at runtime using the datasets.
Can anyone help me in this regard.
|
|
|
|
|
I would guess that this[^] might help.
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
HI
i Like to know if any one an example of how to :
1. create a new odbc.
2. connecting, get info, set info.
if u don't have any example if there is an article or so....
THNKS
P.S ->
DO u know if there is an Object that act like a Device (cards like grapfic card, lan card and so....).
and how to read / write to a PCI card.
kobkob
|
|
|
|
|
kobibi wrote: i Like to know if any one an example of how to :
1. create a new odbc.
2. connecting, get info, set info.
if u don't have any example if there is an article or so....
The most important thing to get started with MS Acces is getting the Connection String which can be found Here. My advice is to use OleDB JET for MS Access. Try this maybe it will help you.
Do your best to be the best
|
|
|
|
|
THNKS
kobkob
|
|
|
|
|
Hello all,
I have to make a dynamic FAQ page for my website which allow a user to add a new faq or delete a faq .And languages that I am working with is C# and using .net 2.0 technology.
Could anyone help me with suggestions or give me some links as I coudl nto find anything about it on google.
PS:I dont wish to use a scripting language.
Many thanks in advance
Any help will be highly appreciated
Aditi
|
|
|
|
|
Just a quick addition to my previous email ->My application is written in ASP.NET so I need to use ASP.NET
|
|
|
|
|
Look on Google for examples of how to use the data-bound server controls e.g. GridView. It has select, sort and edit capabilities.
I don't think you're going to find any specific articles on managing FAQs. FAQs are just items of data that you would handle like any other.
Paul Marfleet
|
|
|
|
|
Well - you could always download DotNetNuke and take a look at how it manages it.
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
hi;
i'v a 2 questions:
1- how can i set group policy (gpedit.msc) on my (or client) computer,
2- how i list my (or client) computer information (CPU + RAM usege, Disc space, Name etc..)
|
|
|
|