In Windows Forms (Vb.net) how can I access the properties without instance (new) ?
Form1.Property = “” ??? the property deceleration is not static? what is called this way of deceleration?
While you can’t access Class1.Property!
Thanks
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
VB.Net does some magic to allow you to pretend that forms don’t have instances.
It creates a hidden shared instance, and converts static calls to instance methods (eg,
Form1.Show()) into instance calls on this shared instance.This is done for VB6 compatibility and should be avoided.