Author Topic: Need help with VB.net 2008  (Read 7107 times)

0 Members and 1 Guest are viewing this topic.

Offline JoeyBelgier

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 545
  • Rating: +25/-21
  • Joey
    • View Profile
Need help with VB.net 2008
« 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:

Offline simplethinker

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 695
  • Rating: +16/-5
  • snjwffl
    • View Profile
Re: Need help with VB.net 2008
« Reply #1 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.
"We've all heard that a million monkeys banging on a million typewriters will eventually reproduce the entire works of Shakespeare. Now, thanks to the Internet, we know this is not true." -- Professor Robert Silensky



Chip's Challenge: ħ%

Offline Builderboy

  • Physics Guru
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5673
  • Rating: +613/-9
  • Would you kindly?
    • View Profile
Re: Need help with VB.net 2008
« Reply #2 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

Offline simplethinker

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 695
  • Rating: +16/-5
  • snjwffl
    • View Profile
Re: Need help with VB.net 2008
« Reply #3 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.
"We've all heard that a million monkeys banging on a million typewriters will eventually reproduce the entire works of Shakespeare. Now, thanks to the Internet, we know this is not true." -- Professor Robert Silensky



Chip's Challenge: ħ%

Offline JoeyBelgier

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 545
  • Rating: +25/-21
  • Joey
    • View Profile
Re: Need help with VB.net 2008
« Reply #4 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

Offline Builderboy

  • Physics Guru
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5673
  • Rating: +613/-9
  • Would you kindly?
    • View Profile
Re: Need help with VB.net 2008
« Reply #5 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.

Offline JoeyBelgier

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 545
  • Rating: +25/-21
  • Joey
    • View Profile
Re: Need help with VB.net 2008
« Reply #6 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

Offline mapar007

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 550
  • Rating: +28/-5
  • The Great Mata Mata
    • View Profile
Re: Need help with VB.net 2008
« Reply #7 on: October 19, 2009, 10:59:50 am »
My grandfather actually can  :o, but my granny needs some more time :D

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Need help with VB.net 2008
« Reply #8 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

Offline Netham45

  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2103
  • Rating: +213/-4
  • *explodes*
    • View Profile
Re: Need help with VB.net 2008
« Reply #9 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.
Omnimaga Admin

Offline JoeyBelgier

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 545
  • Rating: +25/-21
  • Joey
    • View Profile
Re: Need help with VB.net 2008
« Reply #10 on: October 21, 2009, 08:33:30 am »