Flexgrid and CellPicture

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • sweevil

    Flexgrid and CellPicture

    I'm converting a VB6 project to .Net2005. One of the items encountered
    was setting the cellpicture onto a flexgrid from an imagelist. The
    image background doesn't appear to render correctly.

    I put the same image (icon) into the flexgrid and onto a command
    button. The icon in the flexgrid has a Blue background - not
    transparent. The same icon on the command button has the correct areas
    transparent.

    I've messed with the TransparentColo r of the imagelist, but to no
    avail. I've also messed with exporting the Icon into different formats
    - bmp, gif, png. None of which seemed to have an effect.

    I'm not really keen on changing the control due to the amount of code
    behind it.

    Any suggestions?
  • Cor Ligthert[MVP]

    #2
    Re: Flexgrid and CellPicture

    Sweevil,

    About 4 years ago I have asked very often in this newsgroup if somebody had
    a real good working solution with the FlexGrid in VB.Net to show it to us.

    Until now I have seen nothing.

    You can try the datagridview for this, which has standard solution for what
    you are doing.

    Cor

    Comment

    • Jan Hyde (VB MVP)

      #3
      Re: Flexgrid and CellPicture

      sweevil <sweevil@gmail. com>'s wild thoughts were released on
      Mon, 4 Feb 2008 06:25:47 -0800 (PST) bearing the following
      fruit:
      >I'm converting a VB6 project to .Net2005. One of the items encountered
      >was setting the cellpicture onto a flexgrid from an imagelist. The
      >image background doesn't appear to render correctly.
      >
      >I put the same image (icon) into the flexgrid and onto a command
      >button. The icon in the flexgrid has a Blue background - not
      >transparent. The same icon on the command button has the correct areas
      >transparent.
      >
      >I've messed with the TransparentColo r of the imagelist, but to no
      >avail. I've also messed with exporting the Icon into different formats
      >- bmp, gif, png. None of which seemed to have an effect.
      >
      >I'm not really keen on changing the control due to the amount of code
      >behind it.
      >
      >Any suggestions?
      I really would consider using a grid control other than the
      flexgrid. If your budget allows I would suggest a third
      party grid, some of them are simply excelent.

      I realise you may not be keen, but ask yourself how much
      time you are spending trying to get the flexgrid to work as
      it did in VB6?




      --
      Jan Hyde


      Comment

      • sweevil

        #4
        Re: Flexgrid and CellPicture

        On Feb 4, 12:39 pm, "Cor Ligthert[MVP]" <notmyfirstn... @planet.nl>
        wrote:
        Sweevil,
        >
        About 4 years ago I have asked very often in this newsgroup if somebody had
        a real good working solution with the FlexGrid in VB.Net to show it to us.
        >
        Until now I have seen nothing.
        >
        You can try the datagridview for this, which has standard solution for what
        you are doing.
        >
        Cor
        Thanks for the responses.

        We're using flexgrid extensively in our vb6 apps. Actually the
        conversion in vb2005 totally blew away the conversion of vb2003 or
        original .net.

        The Axhierarchicalf lexgrid that our vb6 grids converted to supports
        all of the functionality we wanted -- except for the cellpicture.
        I've spent very very little time tweaking the code after the
        conversion, so I'm very happy with that. I can even get that to work
        if I set the cell background to white and edit the icons transparent
        areas to white. Hokey I know.

        I understand it's a com component that they retrofitted for backwards
        compatibility. The datagridview might do as a replacement where
        we're doing the cellpicture thing or maybe a listview. We may have to
        go with one of those options.

        Unfortunately, 3rd party products aren't in the picture - not due to
        budget - rather due to client philosophy. If it's not included in the
        framework or include with standard tools, they're not using it.

        Anyway, thanks again for the replies.

        -sweeve


        Comment

        Working...