ThePentiumGuy Posted August 19, 2004 Posted August 19, 2004 Is there anyway i can access the name of the instance via the actual class. For example Dim ThePentiumGuy as dude public class dude Messagebox.Show("The instance name of the class is" & <something>) end class In my case, i want the <something> to be "ThePentiumGuy" is there any way I can do this? thanks pent (dunno why my text background is appearing white lol) 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
Administrators PlausiblyDamp Posted August 19, 2004 Administrators Posted August 19, 2004 If you compiled in debug mode you could possibly do this using some of the classes under System.Diagnostics but I imagine it could involve a lot of work. Possibly a better question is why do you need this? Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
ThePentiumGuy Posted August 19, 2004 Author Posted August 19, 2004 Ah nvm. No I was just wondering whether this was possible lol, cuz i've alwyas been wondering 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
Arch4ngel Posted August 19, 2004 Posted August 19, 2004 LOL There's no greater quest than the one in search of knowledge :p lol Quote "If someone say : "Die mortal !"... don't stay to see if he isn't." - Unknown "Learning to program is like going out with a new girl friend. There's always something that wasn't mentioned in the documentation..." - Me "A drunk girl is like an animal... it scream at everything like a cat and roll in the grass like a dog." - Me after seeing my girlfriend drunk and some of her drunk friend. C# TO VB TRANSLATOR
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.