PDA

View Full Version : Visual Basic.NET exercises.


CyberPirate
02-06-2009, 11:26 PM
I've been trying to learn VB.NET and many other computer programming languages, but I can't seem to grasp the concepts of computer programming. Of course I do understand how Functions, if statements, loops, arrays and etc works, but the fact that I know this, I still wouldn't know how to code a program that for example changes lots of keys in the Windows Register. Anyways, since I don't seem to know this stuff I would like some execises to play with in order to learn.

Thanks in advance :)

DELOCH
02-07-2009, 02:33 AM
that is because you are playing in a sandbox where the actual 'hardcore' programming requires direct calls to system API.

If you want to change keys in register, you need to learn Windows API and learn to call it.
Although there may be functions to do that.

*-- Learn directly what you want to learn, ignore the pre-requisites, in the process you will learn everything you need.

try http://visualbasic.about.com/od/usingvbnet/a/WinAPISet.htm

oracleguy
02-07-2009, 05:25 AM
that is because you are playing in a sandbox where the actual 'hardcore' programming requires direct calls to system API.

If you want to change keys in register, you need to learn Windows API and learn to call it.
Although there may be functions to do that.

There is no reason you should need to directly call the Windows API to manipulate the registry with VB.NET unless you are doing something really exotic. There are objects in the .NET framework for doing it already, they are in the Microsoft.Win32 namespace.

Here is a fairly OK introduction: http://www.codeproject.com/KB/vb/registry_with_vb.aspx