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


