Quantcast
Channel: Windows Forms General forum
Viewing all articles
Browse latest Browse all 12583

What Form is it, even when it is null?

$
0
0

Is this possible in some way?  Can I tell that this variable is the Preferences form in this variable while it is still null?

 Preferences dontknowwhatitis = null;

            if (dontknowwhatitis is Preferences)
            {
                MessageBox.Show("is there any way to tell that it is the Preferences form before creating it?");
            }



Viewing all articles
Browse latest Browse all 12583

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>