Results 1 to 17 of 17

Thread: [RESOLVED] Passing value to property

Threaded View

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Jul 2006
    Posts
    135

    [RESOLVED] Passing value to property

    Hi All,

    I am trying to pass a value to a public property when I double click a row in a datagrid.

    The grid is on a form and my property is in a separate class, here is my double click code:

    VB Code:
    1. Private Sub grdCli_DoubleClick(ByVal value As Object, ByVal e As System.EventArgs) Handles grdCli.DoubleClick
    2.         value = grdCli.Item(grdCli.CurrentCell.RowNumber, grdCli.CurrentCell.ColumnNumber)
    3.     End Sub

    and here is the property I am trying to set:

    VB Code:
    1. Public Property CliID() As Integer
    2.         Get
    3.             Return Me._cliid
    4.         End Get
    5.         Set(ByVal Value As Integer)
    6.             Me._cliid = Value
    7.         End Set
    8.     End Property

    The value is being selected fine but I am not sure how to set the property within the class.

    any ideas appreciated.
    Last edited by CodeKiller; Nov 9th, 2006 at 09:38 AM. Reason: Resolved
    ---------------------------------------------------
    VB 2003
    SQL Server 2000

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