Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27348

Basic confusion over using classes...

$
0
0
Sigh... VB newbie here.

I have a form that successfully uses a class I made (AddLabel) that created label objects on that form. It is launched by a button on THAT form.

Works great.

However, I have a code module where I need to use that same class to place a label on the form.



Essentially, the code module doesn't "see" the form at all... it has no idea what I'm talking about

I don't understand how to make this form "known" to the code module... such that I can invoke the class to add a label to it.

Any explanation, especially with code example, appreciated!

This OOP stuff is really painful :/

R

Viewing all articles
Browse latest Browse all 27348

Trending Articles



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