General Discussion > Computer Programming

Need help with VB.net 2008

(1/3) > >>

JoeyBelgier:
Ehrmm, mah question is: how can you make a prgm with VB that when you want to open it, it opens your standard browser and opens a specific sit in it

Example: A program that opens Omnimaga
a desktop icon of it
and when u click that icon, Omnimaga opens in yr browser

anyone know this is possible/how to do this?

I use Microsoft Visual Basic 2008 Express Edition btw, but I just started to learn to program in it D:

simplethinker:
I'm not sure about doing this in VB, but here's a way to do it with a Vista batch file:
1) Find the location of "firefox.exe" on your computer (on my sister's Vista laptop, it was "C:\Program Files (x86)\Mozilla Firefox\firefox.exe".  From now on I'm going to use "FFPATH" for this location (including the "firefox.exe"), since it's probably different for you and I'm lazy.
2) Now, create a batch file (I think the extension is .bat), which I'll call "Stuff.bat" for now.

--- Code: ---@echo off
FFPATH http://www.omnimaga.org

--- End code ---
You can put whatever address you want where the "...omnimaga.org" is (the "@echo off" is just so that it doesn't show the command line).

So on my sister's laptop it would be

--- Code: ---@echo off
C:\Program Files (x86)\Mozilla Firefox\firefox.exe http://www.omnimaga.org

--- End code ---
Now you should just be able to click on "Stuff.bat" and it will open the site in firefox.

Builderboy:
There is an even easier way to do it with bookmarks!  Just resize your browser window so you can see both the desktop and the omnimaga homepage at the same time, and then drag the [Home] button onto your desktop.  A shortcut should be created! :D

simplethinker:

--- Quote from: Builderboy on October 18, 2009, 01:21:29 pm ---There is an even easier way to do it with bookmarks!  Just resize your browser window so you can see both the desktop and the omnimaga homepage at the same time, and then drag the [Home] button onto your desktop.  A shortcut should be created! :D

--- End quote ---
Quit taking the fun out of it!  j/k

Cool, I didn't know you could do that.

JoeyBelgier:
omg
how dumb could I be nod to try that since I already did it XD
I just forgor about the option XD
aaahahaha

Navigation

[0] Message Index

[#] Next page

Go to full version