Omnimaga

General Discussion => Technology and Development => Computer Programming => Topic started by: JoeyBelgier on October 18, 2009, 12:42:09 pm

Title: Need help with VB.net 2008
Post by: JoeyBelgier on October 18, 2009, 12:42:09 pm
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:
Title: Re: Need help with VB.net 2008
Post by: simplethinker on October 18, 2009, 01:01:40 pm
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: [Select]
@echo off
FFPATH http://www.omnimaga.org
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: [Select]
@echo off
C:\Program Files (x86)\Mozilla Firefox\firefox.exe http://www.omnimaga.org
Now you should just be able to click on "Stuff.bat" and it will open the site in firefox.
Title: Re: Need help with VB.net 2008
Post by: 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
Title: Re: Need help with VB.net 2008
Post by: simplethinker on October 18, 2009, 01:25:05 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
Quit taking the fun out of it!  j/k

Cool, I didn't know you could do that.
Title: Re: Need help with VB.net 2008
Post by: JoeyBelgier on October 18, 2009, 01:33:51 pm
omg
how dumb could I be nod to try that since I already did it XD
I just forgor about the option XD
aaahahaha
Title: Re: Need help with VB.net 2008
Post by: Builderboy on October 18, 2009, 01:35:21 pm
:D ironically, it was my grandfather who figured it out, not me.  He had been doing it for a long time to bookmark all of his sites.
Title: Re: Need help with VB.net 2008
Post by: JoeyBelgier on October 18, 2009, 01:39:42 pm
nice :D
lol, the day my grandfather figures out how to open the box of a computer... :p
Title: Re: Need help with VB.net 2008
Post by: mapar007 on October 19, 2009, 10:59:50 am
My grandfather actually can  :o, but my granny needs some more time :D
Title: Re: Need help with VB.net 2008
Post by: DJ Omnimaga on October 20, 2009, 02:34:43 pm
nice :D
lol, the day my grandfather figures out how to open the box of a computer... :p
I wonder if my grandmother even knows how to turn ON a computer. She had trouble turning ON/programming a VCR or DVD player a few years ago

My mom didn't had much problems with computers, except that when she started using them again in 2004, the last time she previously used one to work on it was in 1992, so she was still very late in computer software technology. Now she browses the web, write texts, play some games, etc, altough she still use IE :D
Title: Re: Need help with VB.net 2008
Post by: Netham45 on October 21, 2009, 03:09:19 am
To do this in VB, I believe it would just be Shell("http://www.omnimaga.org"), though I may be missing a parameter or two. Intellisense should pick up on it.
Title: Re: Need help with VB.net 2008
Post by: JoeyBelgier on October 21, 2009, 08:33:30 am
altough she still use IE :D
Firefox ftw D: