A few questions..

Discussion in 'Programming General' started by Harlem9191, Nov 22, 2009.

A few questions..
  1. Unread #1 - Nov 22, 2009 at 3:59 PM
  2. Harlem9191
    Joined:
    Mar 10, 2009
    Posts:
    81
    Referrals:
    0
    Sythe Gold:
    0

    Harlem9191 Member

    A few questions..

    Hi
    You may have seen me leaching around these forums before (and cruels) and I have recently learned a lot of VB.Net myself so I don't usually leach anymore. But learn things myself and try to build my own code. I have recently began to re-program Covey's EliteSwitch and convert it into the more recent code used in VS 2008 (professional). All is going very well and I am learning a lot from it (thanks to Covey, it is helping me a lot on my Computing course). However there are a few problems which I am unable to learn and fix myself as i'm only really a beginner. First up:

    Java/Flash sniffer
    I don't know whether it's my computer as a lot of tutorials have confused me on the web which have been leading me to set up Java environment variables. Although I don't think it is that which is the problem. Other people seem to have the same problem when trying out my client. Runescape doesn't load into the WebBrowser window and a 'Java is undetected' message appears. It is not only Java that is undetected, it is also Flash (I have tried various websites with Java and Flash). If anyone can point me in the right direction as to how my problem will be solved then it will be highly appreciated.



    Second problem:

    Saving textbox text when program is closed
    This has turned out to be a rather small but very frustrating problem. When EliteSwitch was in VB6 code the textbox save event worked fine. Now in VS 2008 it tends to be a pain in the ass. I use the following code:
    Code:
    Private Sub frmMain_FormClosing(ByVal eventSender As System.Object, ByVal e As System.Windows.Forms.FormClosingEventArgs) Handles Me.FormClosing      
    	If MsgBox("Are you sure you want to quit?", MessageBoxButtons.YesNo) = DialogResult.No Then
                Call SaveToDoList()
                Call SaveNotepad()
                e.Cancel = True
            Else
                Call SaveToDoList()
                Call SaveNotepad()
                e.Cancel = False
            End If
    End Sub
    I receive no errors from the Error List but when I debug the program it fails when trying to close. When I click 'No' the prompt message vanishes as normal. When I click 'Yes' the prompt message vanishes when it shouldn't. The program is supposed to save both the notepad and to do list and then close. If anyone could spot out a problem with my code I would appreciate that also. :)

    Thanks
     
  3. Unread #2 - Nov 25, 2009 at 9:47 PM
  4. Blupig
    Joined:
    Nov 23, 2006
    Posts:
    7,145
    Referrals:
    16
    Sythe Gold:
    1,609
    Discord Unique ID:
    178533992981594112
    Valentine's Singing Competition Winner Member of the Month Winner MushyMuncher Gohan has AIDS Extreme Homosex World War 3 I'm LAAAAAAAME
    Off Topic Participant

    Blupig BEEF TOILET
    $5 USD Donor

    A few questions..

    First problem: Install Java and Flash for Internet Explorer (that is the browser control used in VS)

    Second problem: Save to the registry
    Code:
    GetSetting()
    SaveSetting()
    
     
  5. Unread #3 - Nov 26, 2009 at 11:39 AM
  6. hiway_2_hell
    Joined:
    Nov 26, 2009
    Posts:
    230
    Referrals:
    0
    Sythe Gold:
    0

    hiway_2_hell Active Member
    Banned

    A few questions..

    do u still need help with this?
     
  7. Unread #4 - Nov 26, 2009 at 1:13 PM
  8. Harlem9191
    Joined:
    Mar 10, 2009
    Posts:
    81
    Referrals:
    0
    Sythe Gold:
    0

    Harlem9191 Member

    A few questions..

    Blupig. As an Internet Explorer user I definately have the most up to date Java for it as I downloaded it the other day. I definately has nothing to do with the Java that i've downloaded. It's only VS 2008 that I have this problem with. My mates have also installed EliteSwitch (one i'm editing) and they get the very same problem but are able to load flash/java in Mozilla or Internet Explorer. The WebBrowser control can't detect java or flash at all. I'm pretty sure there is a sniffing script as Covey were telling me that Flaming Idiots is very good at VB.Net and that he has solved this problem for someone else before.

    As for the second problem, I solved that. :)

    Thankyou for the reply anyway
     
  9. Unread #5 - Nov 29, 2009 at 5:04 PM
  10. Blupig
    Joined:
    Nov 23, 2006
    Posts:
    7,145
    Referrals:
    16
    Sythe Gold:
    1,609
    Discord Unique ID:
    178533992981594112
    Valentine's Singing Competition Winner Member of the Month Winner MushyMuncher Gohan has AIDS Extreme Homosex World War 3 I'm LAAAAAAAME
    Off Topic Participant

    Blupig BEEF TOILET
    $5 USD Donor

    A few questions..


    What is the filename of the control you're using? Also, if you're on Vista, trying changing the permissions around a little bit when running VS and ES. Another possible fix would be to find the control online and download it, or find another webbrowser control. If you know what you're doing, you can compile the Firefox one and have a very good application :)
     
  11. Unread #6 - Nov 30, 2009 at 9:19 AM
  12. Harlem9191
    Joined:
    Mar 10, 2009
    Posts:
    81
    Referrals:
    0
    Sythe Gold:
    0

    Harlem9191 Member

    A few questions..

    Now there's an idea Blupig ;)
    I'm actually quite dumb to have not thought of this.
    Cheers
     
  13. Unread #7 - Dec 1, 2009 at 6:31 PM
  14. Harlem9191
    Joined:
    Mar 10, 2009
    Posts:
    81
    Referrals:
    0
    Sythe Gold:
    0

    Harlem9191 Member

    A few questions..

    Erm.. I decided to scrap the Firefox one as that was worse :p
    The webbrowser control i'm using is the bog standard one you usually get in the toolbox. Like I say it is definately that control which is the problem. It just seems to disable the plugins and doesn't provide a prompt although I dint expect it to. I'm ust desperate to talk to Flaming Idiots now lol.. He's disabled his PM on here and cruels still isn't uploaded fully (where my posts would get more noticed by him) which is frustrating. Covey said he knows a sniffer code for it so i'll just have to see. But hey.. Whats the point in a client that doesn't even run Runescape in it hehe :p (why i'm now desperate)
     
< Blank Line | Seperating items within a string >

Users viewing this thread
1 guest


 
 
Adblock breaks this site