Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
I was wondering if there was a way to include a hyperlink on my app that users could click to send them to my website, i've seen many people do it, i can't figure it out.
Also, I want to be able to generate a html file when certain code is executed. My question is: Is it possible to specify the exact size i want to use? I don't just want to use the size attrib 1-7. I'de rather use 12-48 like in word (for example) Thanks!

Yes you can do the link thing.
you need to use ShellExecute (it is an API)
Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" (ByVal hwnd As Long, ByVal lpOperation As String, ByVal lpFile As String, ByVal lpParameters As String, ByVal lpDirectory As String, ByVal nShowCmd As Long) As Long
Const SW_SHOW = 5
private sub ExecuteWebpage()
dim handle as long
ShellExecute handle, "OPEN", "http://www.computing.net/programming", "", "", SW_SHOW
end sub
Private Sub Label1_Click()
call ExecuteWebpage
End Sub
its that easy.
now onto the second part of your question:
the exact size of the font?well yes. in HTML there is something called StyleSheets. they are easy to use they look like this:
<html>
<head>
<title></title>
<style>
TD.NORMAL {background-color:#FFFFFF;font-family:arial,san-serif;font-size:8pt;color:#000000}
TD.REVERSE {background-color:#000000;font-family:arial,san-serif;font-size:8pt;color:#FFFFFF}
</style>
<body>
<table>
<tr>
<td class="NORMAL">Normal Style</td>
<td class="REVERSE">Reverse Style</td>
</tr>
</table>
Hope this helps,
Chi

That did help. My only reply is that i want to be able to specify the font size from my VB app that will render an HTML page.

![]() |
![]() |
![]() |

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |