473,403 Members | 2,071 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,403 software developers and data experts.

Using LinkLabel to open a linked project html file

To all,

Thanks for the help in advance, to what is likely an utterly foolish
question.

I have a form with a linklabel control, that I want to open a web
browser and load a single html page when selected.

The html page I've loaded into the project, set BuildAction=Content,
and CopyToOutputDirectory=Always
I can see that on build it's being copied into the output directory.

What I can't seem to find for the life of me is the syntax to open the
file relative to the output directory.

private void linkA_LinkClicked(object sender,
LinkLabelLinkClickedEventArgs e)
{
System.Diagnostics.Process.Start(_____"ExpectedExc elFormats.htm");
}

Can someone help me fill in the _____ for this?

Thanks again,

Greg

Oct 7 '07 #1
2 3809

Hi Jacore,

you can use iexplore.exe.
System.Diagnostics.Process.Start( iexplore.exe
ExpectedExcelFormats.htm);

}

Best regards,
Hakan Fatih YILDIRIM
MCP

Oct 7 '07 #2
On Oct 7, 7:12 am, Hakan Fatih YILDIRIM <hfysilis...@gmail.comwrote:
Hi Jacore,

you can use iexplore.exe.
System.Diagnostics.Process.Start( iexplore.exe
ExpectedExcelFormats.htm);

}

Best regards,
Hakan Fatih YILDIRIM
MCP
Hakan, thanks for the reply, but when I run it, I get an error that i
can't find the file. I can't seem to get the directory path correct
for it. What am i missing?

Oct 7 '07 #3

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

Similar topics

1
by: Nick P | last post by:
Is it possible to use javascript within a link label link in C#? I want to call up a web page from a link label but without any scroll bars and have it a certain size. I am trying to use the...
5
by: Marcel Gelijk | last post by:
Hi, I am trying to create a User Control that is located in a seperate class library. The User Control contains a textbox and a button. The page generates an exception when it tries to access...
15
by: Nathan | last post by:
I have an aspx page with a data grid, some textboxes, and an update button. This page also has one html input element with type=file (not inside the data grid and runat=server). The update...
1
by: gabe | last post by:
I am looking for a way to mimic some of the functionality of a web page without writing html (or I am looking to someone to point out something really obvious that I am over looking) Currently I...
3
by: vince | last post by:
Hello, I have a ListBox filled with many lines of simply text I want to make few lines be a LinkLabel How can I do this Thanks
2
by: Terrance | last post by:
Can someone please help with a problem that I'm having? I'm trying to create a linklabel in VB.NET 2003 at runtime when a user clicks a button. The app looks in a path for .doc and .pdf files and...
21
by: Al Christoph | last post by:
I posted this last week end in the MSDN forums. No luck there. Let's see what the experts here have to say:-)))) I have a rather convoluted project. The distributable will come in eight...
1
by: Rinaldo | last post by:
Hi, I've added a linklabel in my project, but if I click om it nothing happened. Must I make a event, and how to open the bowser? Rinaldo
5
by: Mel | last post by:
Anyone know how to display a .mpp file in Asp.net? We use Microsoft Project to create Gantt charts and we want the customer to be able to view their their Gantt chart(s) online. (using Asp.net...
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
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
Oralloy
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,...
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
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
agi2029
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,...

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.