dragon4spy Posted February 29, 2004 Posted February 29, 2004 Do you think that it is like a jungle or not? I always lost the ways to find the correct class. What is it with System namespace in mscorlib assembly and System namespace in System assembly? How come there are 2 namespaces that have the same name existed by default? And it seems that some other namespaces (only name) are duplicated too. How to recognize classes that require "New" statement with "Dim"? And how to recognize what classes that don't require "New"? :confused: :D Quote Don't judge a man by his look. Don't judge a book by its cover. :D
*Experts* mutant Posted February 29, 2004 *Experts* Posted February 29, 2004 There are no two namespaces with the name System. The classes and such from both assemblies were simply included in the System namespace. For example you could create a DLL that would have all its classes in the Windows.Forms namespace. To use shared methods, properties etc. of the class you don't need to use the New keyword. Quote
Leaders Iceplug Posted March 1, 2004 Leaders Posted March 1, 2004 How to recognize classes that require "New" statement with "Dim"? And how to recognize what classes that don't require "New"? To be safe, you can just declare all of your variables and then initialize them to be New. Dim R As Anything = New Anything. But, usually a Class and a Delegate are the only things that need to be initialized with New... I think. In the picture I circled the class... a delegate has a purple box in front of a gray suitcase. Those are what you have to initialize with New. :) Quote Iceplug, USN One of my coworkers thinks that I believe that drawing bullets is the most efficient way of drawing bullets. Whatever!!! :-(
dragon4spy Posted March 1, 2004 Author Posted March 1, 2004 :D Ok thanks. I have another question. Is there a way to distinguish between a class that takes parameter and a class doesn't? I mean by looking at Object Browser. :rolleyes: Example for the class that takes parameter. Dim s As DirectoryInfo = New DirectoryInfo("c:\test\") Quote Don't judge a man by his look. Don't judge a book by its cover. :D
Leaders Iceplug Posted March 1, 2004 Leaders Posted March 1, 2004 In the Object Browser, the parameters for the New event (constructor) will be listed... You do have to click on the name of the class that you are looking at. :) Quote Iceplug, USN One of my coworkers thinks that I believe that drawing bullets is the most efficient way of drawing bullets. Whatever!!! :-(
dragon4spy Posted March 1, 2004 Author Posted March 1, 2004 Oh! Thanks. That's short and easy. :D Quote Don't judge a man by his look. Don't judge a book by its cover. :D
samsmithnz Posted March 1, 2004 Posted March 1, 2004 If you're still confused. I recommend downloading and printing these posters, or buying them at the MS store. They are very useful, look cool hanging in your cube/ room/ office, and really do help as a reference. http://msdn.microsoft.com/vstudio/productinfo/posters/download.aspx Quote Thanks Sam http://www.samsmith.co.nz
ThePentiumGuy Posted March 7, 2004 Posted March 7, 2004 woaho! Ms offers posters for vs.net? sweeet.. 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* Volte Posted March 7, 2004 *Experts* Posted March 7, 2004 MS has always had posters for all kinds of object models. I must have a whole box of them by now... Quote
Denaes Posted March 7, 2004 Posted March 7, 2004 MS has always had posters for all kinds of object models. I must have a whole box of them by now... my VB.Net came with nothing. It's like they laughed at me and said "Its discounted, what do you expext?" Then I got VS.Net and got 7 cds, books and posters... damn, after I opened the box, I couldn't get it all back in :) Quote
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.