Results 1 to 1 of 1

Thread: [RESOLVED] Form Inheritance controls

Threaded View

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jul 2009
    Posts
    123

    Resolved [RESOLVED] Form Inheritance controls

    I've been learning more about class's and form inheritance. So as a way of learning this ive created a class called master designed a form called FrmMaster.

    Second ive created a second project, imported the master class to this. And created an inherited Form called FrmInherited. that inherits FrmMaster.

    So far so good...however.

    When i try to over ride controls on this form i get "is not accessible in this context because it is 'Friend'"

    so on FrmInherited_load i have for example..

    LabHeader.text = "I am a inherited form"

    Could someone point me towards where i'm going wrong?

    EDIT:: I found it, i needed to set the modifier in the master class control to public
    Last edited by addntox; Nov 29th, 2010 at 02:26 PM.

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