ThePentiumGuy Posted June 4, 2003 Posted June 4, 2003 why do you have to write the NEW keyword after dimming some object dim blah as label blah = new label or something like that Quote My VB.NET Game Programming Tutorial Site (GDI+, Direct3D, Tetris [coming soon], a full RPG.... you name it!) vbprogramming.8k.com My Project (Need VB.NET Programmers) http://workspaces.gotdotnet.com/ResolutionRPG
*Experts* mutant Posted June 4, 2003 *Experts* Posted June 4, 2003 If you type: Dim blah as Label You will not actually create a new object, you will be able to assign a label that already exist to that variable. Most of the classes require New keyword, but some classes are static and they dont require a new instance of the object and you can use their methods without a new instance. If you want to create a new object of whatever kind you wish you must use New keyword. Quote
*Gurus* divil Posted June 4, 2003 *Gurus* Posted June 4, 2003 I suggest reading the language reference in the documentation. Quote MVP, Visual Developer - .NET Now you see why evil will always triumph - because good is dumb. My free .NET Windows Forms Controls and Articles
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.