Hello,
I have a class in Visual Basic 2008 that is used in two ways.
The first way it can be used is if you use it to create an instance. In this case, I want it to be able to access certain methods that I have defined. These can be methods such as, new obviously, and SetRange.
The second way it can be used, is as a way to use general functions in it. Because this is a light, such a function might be SetAmbient etc...
Is there a way that I can hide the SetAmbient function when it is being called by an instance, but show it when it is simply been called as a general command.
And then, show all the other methods that are available to be called from an instance:
Thanks,
Bozzy
I have a class in Visual Basic 2008 that is used in two ways.
The first way it can be used is if you use it to create an instance. In this case, I want it to be able to access certain methods that I have defined. These can be methods such as, new obviously, and SetRange.
The second way it can be used, is as a way to use general functions in it. Because this is a light, such a function might be SetAmbient etc...
Is there a way that I can hide the SetAmbient function when it is being called by an instance, but show it when it is simply been called as a general command.
VB.NET:
Light.SetAmbient
And then, show all the other methods that are available to be called from an instance:
VB.NET:
Dim Light1 as New Light
Light1.SetRange
Thanks,
Bozzy