Class call not recognized

5 pts.
Tags:
VB
Visual Basic
Windows Forms
I have created a class TMT2PropertiesCollection as a separate file. I have a second class (TMT2Layers) and from within Layers I can make a call to Properties (e.g. properties.xxx and back comes a value). But In In my main form I call TMT2properties.xxx and it comes back empty! I am new to class use -- have I forgotten to somehow initialize the lass? I can see no dfference in the calls. Can someone clue me in a bit?

The code looks sort of like this:

Namespace

 

TMT2  



Public Class TMTmain  



Inherits System.Windows.Forms.Form  



Private TMT2properties As New TMT2properties  



Private TMT2propertiesCollection As New TMT2propertiesCollection 'New TMT2propertiesCollection

 

Private TMT2LayerManager As New TMT2LayerManager 'New TMT2propertiesCollection

 

so on we go to a loop in the main form were I ask for TMT2properties.count and no mater how many items are in the collection, all I get back is zero! But in the routines that run in TMT2Layers I get back explicitly the number of items in the collection at all times!

 

Can anyone help?

 

Thanks

 

TFR

ASKED: August 24, 2010  5:50 PM
UPDATED: August 24, 2010  5:59 PM

Answer Wiki

Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Discuss This Question:  

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following