Results 1 to 2 of 2

Thread: [RESOLVED] Property pages

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Jul 2009
    Posts
    30

    Resolved [RESOLVED] Property pages

    I've never used a property page before. I have a class defined in the UserControl, and a copy of that in the property page.

    When the property page loads, I need to fill in the current values. And when it closes, I need to update the class defined in the UserControl. ex:

    MyControl.ctl
    vb Code:
    1. Option Explicit
    2.  
    3. Private m_MyClass As MyClass
    4.  
    5. Public Property Get UCMyClass() As MyClass
    6.     Set UCMyClass = m_MyClass
    7. End Property

    I need to be able to access and modify the m_MyClass from the property page.

    Would I use SelectedControls(Index).Item(0).UCMyClass ? Or SelectedControls(Index).UCMyClass?

  2. #2

    Thread Starter
    Junior Member
    Join Date
    Jul 2009
    Posts
    30

    Re: Property pages

    I got it... I had the code in the Initialize() event instead of the SelectionChanged() event.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width