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

A few questions..

Harlem9191

Member
Joined
Mar 10, 2009
Sythe Gold
0
Messages
81
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
 
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()
 
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
 
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


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 :)
 
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)
 
Runescape Gamblingrunescape gambling
Back
Top