|
-
Jan 11th, 2008, 11:23 AM
#1
Thread Starter
New Member
-
Jan 11th, 2008, 11:36 AM
#2
Re: How to get file name of class file?
When debugging, you will get the error in which it mentions to you the offending property, method, class, etc. If it is a reference to a member of class1 from class2, right click and go to definition, it should take you there. Aside from that, knowing the type of the object you are dealing with should tell you enough to know that it is a class (which you placed in class1.vb)
-
Jan 11th, 2008, 04:58 PM
#3
Thread Starter
New Member
-
Jan 11th, 2008, 05:44 PM
#4
Hyperactive Member
Re: How to get file name of class file?
look up reflection
--"Tap Dancing On The Brittle Edge Of Sanity"--
-
Jan 12th, 2008, 07:03 AM
#5
Re: How to get file name of class file?
When you run a compiled application the class1.vb file doesn't exist, so how can you get its name? class1.vb is a source file containing VB code. When you build your project all your source files get compiled into a single EXE file. That's the only file there is. When you deploy your app you deploy only the EXE. How can anything in that EXE give you the name of the class1.vb file?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|