Homemade Browser / Java problem

A place to discuss development on the Microsoft .NET framework platform utilizing languages such as C#, Visual Basic, J# and Managed C++

Moderators: IRC Operators, Support Team

User avatar
Samoht
User
User
Posts: 139
Joined: Wed Nov 08, 2006 4:11 am
Location: Ontario, Canada
Contact:

Homemade Browser / Java problem

Postby Samoht » Wed Apr 16, 2008 1:48 am

Well first, I'm using VB 2005 express, but whatever.

So, I made a VERY simple program, it's just a web brower going to rs, I just wanted it as small as possible without back/forward, etc buttons or anything.

So ya, seems simple, and yea it was, only one problems I'm having with it.

Playing rs I click the applet and I can hit the arrow keys to change the direction of the camera like normal, but when I click again I can't, like the applets lost focus. Having to double click is kinda annoying, is there anything I can do to stop that from happening?

PS: I'm very beginner with VB, so be nice :)

Samoht
Image
User avatar
Bandet Ace
Newbie
Newbie
Posts: 5
Joined: Sat Jun 28, 2008 10:04 pm
Contact:

Postby Bandet Ace » Thu Jul 03, 2008 5:05 am

I really doubt it,if there was a way I'm sure Strider would have already done it to swiftkit.
VB.NET Programer and Zybez Radio DJ
User avatar
Nemo
User
User
Posts: 157
Joined: Sat Jul 22, 2006 1:56 am
Contact:

Postby Nemo » Thu Jul 03, 2008 6:56 pm

There is a way to do anything, you just have to find it
Image
Hardcore
User
User
Posts: 1115
Joined: Sat Nov 03, 2007 6:26 pm
Location: Somewhere Small
Contact:

Postby Hardcore » Thu Jul 03, 2008 7:08 pm

Nemo wrote:There is a way to do anything, you just have to find it


well thats what he asked....
User avatar
Couch
User
User
Posts: 29
Joined: Sat Jan 26, 2008 1:24 pm

Postby Couch » Sat Jul 05, 2008 1:21 am

This is a late post but if you're still here;

Add

Code: Select all

Me.WebBrowser1.Focus()

To your Form1_Load event.

It should work then. I havent used Focus() very much before so I'm not 100% sure.

Return to “.NET”

Who is online

Users browsing this forum: No registered users and 1 guest