Cool, I DLed vb.net a few days ago, was going to see if I could possibly learn something, and this has helped tremendously, at least now I have a place to start.
I know I've said it before, but great tutorial. absolutely super. Just one thing, and imo a pretty big thing... I think the login procedure has changed. For anyone wanting to make a program I think it is now a 1 line login in the form of Request("POST", "http://www.neopets.com/login.phtml?destination=%252Findex.phtml&username=" + user + "&password=" + pass, "http://www.neopets.com") can anyone tell me if this is how they do it now? thanks note: I know the old method does still work but would it be better to login in the most obvious fashion?
Yes Chelsea - that is the new way to log in. My method with my own wrapper looks like this: Code (Text): lblStatus.Text = "Visiting Neopets homepage..."; w.GetRequest("http://www.neopets.com/"); lblStatus.Text = "Typing credentials..."; m.Wait(750, 1500); lblStatus.Text = "Logging in..."; strHTML = w.PostRequest("http://www.neopets.com/login.phtml", "destination=%252Findex.phtml&username=" + strUser + "&password=" + strPass, "http://www.neopets.com/");
perfect, thanks lightning. can I ask how important threading is in vb.net programming? just having a play around with stuff and thinking I need it if I want to be able to do stuff like play with the gui while other processes are running
Threading is very important, especially because without it, normal events can cause the UI to freeze when you are making a web request because the event is running on the same thread that is managing the application's GUI. When you are using threading, however, the knowledge of delegates is important so that you can update controls as work is being done on your threads. The nice thing about the .NET Framework is that they have implemented the BackgroundWorker class, which is essentially threading with some delegates wrapped around it. You might want to look into as another alternative if you are just beginning programs - some people find it much less confusing. If you need any help with threading, feel free to ask me.
Well, besides a BackgroundWorker, there really isn't one. I'll PM you something that might help though.