Adblock breaks this site

"Webbrowser1.Navigate" Problem

Discussion in 'Programming General' started by legosap, Jul 17, 2008.

  1. legosap

    legosap Member

    Joined:
    Jul 16, 2006
    Posts:
    30
    Referrals:
    0
    Sythe Gold:
    0
    "Webbrowser1.Navigate" Problem

    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:
    [​IMG]

    I think it has something to do with IE7. Any ideas?
     
  2. Covey

    Covey Creator of EliteSwitch
    Retired Sectional Moderator Visual Basic Programmers

    Joined:
    Sep 9, 2005
    Posts:
    4,510
    Referrals:
    9
    Sythe Gold:
    9
    Discord Unique ID:
    807246764155338833
    Discord Username:
    Covey#1816
    "Webbrowser1.Navigate" Problem

    Remove the brackets.
     
  3. legosap

    legosap Member

    Joined:
    Jul 16, 2006
    Posts:
    30
    Referrals:
    0
    Sythe Gold:
    0
    "Webbrowser1.Navigate" Problem

    No luck =\. Again, that same exact code is running perfectly in the .exe I had created before this, I haven't changed any of that code.
     
  4. jdsfighter

    jdsfighter Forum Addict
    Visual Basic Programmers

    Joined:
    Jan 21, 2007
    Posts:
    603
    Referrals:
    0
    Sythe Gold:
    0
    "Webbrowser1.Navigate" Problem

    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.
     
  5. legosap

    legosap Member

    Joined:
    Jul 16, 2006
    Posts:
    30
    Referrals:
    0
    Sythe Gold:
    0
    "Webbrowser1.Navigate" Problem

    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!
     
  6. Covey

    Covey Creator of EliteSwitch
    Retired Sectional Moderator Visual Basic Programmers

    Joined:
    Sep 9, 2005
    Posts:
    4,510
    Referrals:
    9
    Sythe Gold:
    9
    Discord Unique ID:
    807246764155338833
    Discord Username:
    Covey#1816
    "Webbrowser1.Navigate" Problem

    You using Vista?
    Sometimes i get highlighted (perfectly fine) code when i try to run the debugger. ( I use Vista)
     
  7. legosap

    legosap Member

    Joined:
    Jul 16, 2006
    Posts:
    30
    Referrals:
    0
    Sythe Gold:
    0
    "Webbrowser1.Navigate" Problem

    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
     
  8. Nullware

    Nullware Guru

    Joined:
    Jan 30, 2007
    Posts:
    1,761
    Referrals:
    4
    Sythe Gold:
    0
    "Webbrowser1.Navigate" Problem

    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
     
< Browse after a file | DirectX vs. XNA >


 
 
Adblock breaks this site