• Log in or sign up for an account here: https://www.sythe.org/login

"Webbrowser1.Navigate" Problem

legosap

Member
Joined
Jul 16, 2006
Sythe Gold
0
Messages
30
I have a personal RS client that has been working flawlessly since I made it. Today I went in to make some changes and I was having trouble with Microsoft Internet Controls. I assigned MIC to shdocvw.dll so that I could actually load my project. Now every time I try to compile, I get this message:
53128725kr7.png


I think it has something to do with IE7. Any ideas?
 
That means you don't have a control by that name. Or you aren't using a webbrowser as that control. This is rare, but sometimes it is turned into a picture box. You might want to check that out.
 
That means you don't have a control by that name. Or you aren't using a webbrowser as that control. This is rare, but sometimes it is turned into a picture box. You might want to check that out.
It did indeed turn itself into a picture box. Probably somewhere in the change from ieframe.dll to shdocvw.dll? Anyway, its fixed and working, thanks alot!
 
You using Vista?
Sometimes i get highlighted (perfectly fine) code when i try to run the debugger. ( I use Vista)
Nope, Window Xp Media Center Edition. Probably gonna upgrade to Vista in a year or so though.

Btw, how can I get the Enter button, once pressed, to click a button? Im trying the following and its not working:
Code:
Private Sub firstcalc_KeyPress(KeyAscii As Integer)
If KeyAscii = Asc("13") Then
KeyAscii = 0
equal_Click
End If
End Sub

Although the = button works:
Code:
Private Sub firstcalc_KeyPress(KeyAscii As Integer)
If KeyAscii = Asc("=") Then
KeyAscii = 0
equal_Click
End If
End Sub
 
Basically your variable KeyAscii is assigned the ASCII value of the character that was pressed so when checking its value with an if statement you are checking it against an integer value. Your second piece of code works because 'Asc("=")' simply returns the integer 61 which is the ASCII value for the equals sign.

The first section doesn't work because 'Asc("13")' returns an irrelevant answer because '13' is not a valid character to be checked against the ASCII tables. You'll want to simply check KeyAscii against the integer 13.
Code:
If KeyAscii = 13 Then
 
Runescape Gamblingrunescape gambling
Back
Top