Results 1 to 4 of 4

Thread: Picture Load from Datagrid

  1. #1

    Thread Starter
    Member
    Join Date
    Dec 2011
    Posts
    39

    Question Picture Load from Datagrid

    Good Day,

    Please help me with my project,

    Example:

    I have datagrid with field "Picture", and i have also picturebox "Picture1".
    If im going to click my datagrid field "Picture", the picture must be
    loaded to my picturebox "Picture1".
    Im trying this code:
    .Picture1.Picture = DataGrid1.Columns("Picture")
    But i receive error "type mismatch".
    Please help me...

    Thank you.

  2. #2
    Lively Member Lidya212's Avatar
    Join Date
    Jul 2011
    Location
    Manado City
    Posts
    73

    Re: Picture Load from Datagrid

    Hi, is Datagrid1.Columns("Picture") contain the path of a picture file?
    if so then you can use
    Code:
    Picture1.Picture = Loadpicture(Datagrid1.Columns("Picture"))
    Hope it help
    Dont forget to rate post that you think useful and close the thread or mark it as [RESOLVED]

  3. #3
    New Member
    Join Date
    Sep 2018
    Posts
    2

    Re: Picture Load from Datagrid

    It's Working.
    Thanks for this code.

  4. #4
    New Member
    Join Date
    Sep 2018
    Posts
    2

    Re: Picture Load from Datagrid

    It's Working.
    Thanks for this code.

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