FarPoint Forums

The FarPoint Message Boards
Welcome to FarPoint Forums Sign in | Join | Help
in Search

Image button cell type

Last post 08-29-2008, 1:21 AM by koustubh. 2 replies.
Sort Posts: Previous Next
  •  08-28-2008, 7:08 AM 68359

    Image button cell type

    Hello sir , I am using farpoints spread control for windows application in dot net 2.0 with C#. I want to set some cell on the spread as a image button cell type. I have read help file but the example given for gettting images are hard code images(system path is given). I want to retrive image from imagelist control and give it to button cell type how can i do this?

     

  •  08-28-2008, 7:22 AM 68361 in reply to 68359

    Re: Image button cell type

    Are you wanting an ImageCellType or the picture for a ButtonCellType?  You should be able to set either one to the index of the image in the ImageList.  If you can post some code you are using we can see what it is you are trying to do and point you in the right direction.  Here's an example for an ImageCellType...

    Dim img As New FarPoint.Win.Spread.CellType.ImageCellType
    Dim image As System.Drawing.Image = ImageList1.Images(2)
    FpSpread1.ActiveSheet.Cells(0, 0).CellType = img
    FpSpread1.ActiveSheet.Cells(0, 0).Value = image
     


    Bob M.
    FarPoint Technologies, Inc.
  •  08-29-2008, 1:21 AM 68409 in reply to 68361

    Re: Image button cell type

    It is working fine Thanks.
View as RSS news feed in XML
     FarPoint Forums Home