how to insert image in listview?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • dezama14
    New Member
    • Jan 2013
    • 2

    how to insert image in listview?

    hi, i'm making a hotel reservation system for our final project in database management.. i'm having difficulty on how can i attach an image in a listview, if i insert a room category, the roomstatus will automatically insert a value of 1 on the table, and in the listview the data 1 in the column of status must be view as an image that indicates that the room is available... can somebody kindly help me...this is my first time in c# so please give me some suggestions... thank you,,:)
  • leecorp
    New Member
    • Jan 2013
    • 10

    #2
    Have a Look At this Link


    ASPX <asp:SqlDataSource ID="SqlDataSource5" runat="server" ConnectionString="<%$ ConnectionStrings:ConnectionString %>" SelectCommand="SELECT * FROM [Themes] WHERE ([Theme...



    I think this will help you

    Comment

    • dezama14
      New Member
      • Jan 2013
      • 2

      #3
      thank's a lot leecorp, but i'm not familiar with the coding on the link you give... i need a code for c#..kindly help me for this matter..

      Comment

      • PsychoCoder
        Recognized Expert Contributor
        • Jul 2010
        • 465

        #4
        Bytes.com isn't a code or homework service, we're a community of like minded people who come together to help those who are willing to help themselves.

        Show us what you've tried and we will do everything we can to nudge you in the right direction but we will not just do the work for you.

        Comment

        • Benedict LEE
          New Member
          • Mar 2013
          • 2

          #5
          Here is the you may wanted code
          Code:
          RasterEdgeImaging Image = new RasterEdgeImaging();
          int ResImg;
          ResImg = RasterEdgeImaging.CreateBitmapImage(75, 250, PixelFormat.Format24bppRgb, RasterEdgeImaging.ARGB
          (255, 0, 0, 0));
          Image.save(@"C:\1.bmp")
          And see more image inserting and creating sample ,see here
          I want to know how to add image in list view sub item. I am using this code to display text in the sub item. double Text = "2452"; ListViewItem lItem = new ListViewItem(); lItem.SubItems.Add(T...
          Last edited by Rabbit; Mar 25 '13, 03:50 PM. Reason: Please use code tags when posting code.

          Comment

          Working...