Formcontrols

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • C# Beginner

    Formcontrols

    Hi there,

    I'm trying to gain access to a listview via a dialogform, setting the
    listviews modifier property to Public, but it doesn't seem to work.

    I'm using the code:

    this.ParentForm .lvUsers.

    Can anybody help me out here?

    thnx


  • Dave Sexton

    #2
    Re: Formcontrols

    Hi,

    Try casting ParentForm to the Type that actually has lvUsers as a public
    property:

    ((YourDialogFor m) this.ParentForm ).lvUsers

    --
    Dave Sexton

    "C# Beginner" <def_daemon@ora nge.nlwrote in message
    news:4552422b$0 $34658$dbd43001 @news.wanadoo.n l...
    Hi there,
    >
    I'm trying to gain access to a listview via a dialogform, setting the
    listviews modifier property to Public, but it doesn't seem to work.
    >
    I'm using the code:
    >
    this.ParentForm .lvUsers.
    >
    Can anybody help me out here?
    >
    thnx
    >
    >

    Comment

    • C# Beginner

      #3
      Re: Formcontrols

      That did the trick...

      much thnx


      "Dave Sexton" <dave@jwa[remove.this]online.comschre ef in bericht
      news:us5QA73AHH A.3620@TK2MSFTN GP02.phx.gbl...
      Hi,
      >
      Try casting ParentForm to the Type that actually has lvUsers as a public
      property:
      >
      ((YourDialogFor m) this.ParentForm ).lvUsers
      >
      --
      Dave Sexton
      >
      "C# Beginner" <def_daemon@ora nge.nlwrote in message
      news:4552422b$0 $34658$dbd43001 @news.wanadoo.n l...
      >Hi there,
      >>
      >I'm trying to gain access to a listview via a dialogform, setting the
      >listviews modifier property to Public, but it doesn't seem to work.
      >>
      >I'm using the code:
      >>
      >this.ParentFor m.lvUsers.
      >>
      >Can anybody help me out here?
      >>
      >thnx
      >>
      >>
      >
      >

      Comment

      Working...