Click here to Skip to main content
15,888,527 members
Home / Discussions / C#
   

C#

 
QuestionHow to activate the Keyboard direction key "up key" to zoom the chart Pin
Member 120434382-May-16 2:57
Member 120434382-May-16 2:57 
AnswerRe: How to activate the Keyboard direction key "up key" to zoom the chart Pin
Dave Kreskowiak2-May-16 5:33
mveDave Kreskowiak2-May-16 5:33 
AnswerRe: How to activate the Keyboard direction key "up key" to zoom the chart Pin
Bernhard Hiller2-May-16 21:00
Bernhard Hiller2-May-16 21:00 
Questionfeature extraction methods in image quality assessment Pin
Safaeian30-Apr-16 22:28
Safaeian30-Apr-16 22:28 
AnswerRe: feature extraction methods in image quality assessment Pin
OriginalGriff30-Apr-16 23:02
mveOriginalGriff30-Apr-16 23:02 
Questionimage structural information Pin
Safaeian30-Apr-16 21:39
Safaeian30-Apr-16 21:39 
AnswerRe: image structural information Pin
Richard MacCutchan1-May-16 1:13
mveRichard MacCutchan1-May-16 1:13 
QuestionHello how to display images with the title from a file (in ListVeiw C #)? helpe please Pin
Member 1249073930-Apr-16 7:21
Member 1249073930-Apr-16 7:21 
C#
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace listeimagetest2
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void Form1_Load(object sender, EventArgs e)
        {
            DirectoryInfo dir = new DirectoryInfo(@"C:\Users\Pictures\Images");
            


            foreach (FileInfo file in dir.GetFiles())
                
            {

                try
                {
                    this.imageList1.Images.Add(Image.FromFile(file.FullName));
                    this.imageList1.ImageStream.Add(Image.FromFile(file.FullName));
                }

                catch
                {
                    Console.WriteLine("Ce n'est pas un fichier image");
                }

          
          }
            this.listView1.View = View.LargeIcon;
           

            this.imageList1.ImageSize = new Size(103, 147);

            this.listView1.LargeImageList = this.imageList1;
           
            //or

            //this.listView1.View = View.SmallIcon;

            //this.listView1.SmallImageList = this.imageList1;



            for (int j = 0; j < this.imageList1.Images.Count; j++)
            {

                ListViewItem item = new ListViewItem();
                

                item.ImageIndex = j;

                //this.listView1.Items.Add(item);
                this.listView1.Items.Add(item);
                
                //this.listView1.View = View.Tile;
            }
           
            
            

            
        
    
            }
        }
    }

C#


QuestionRe: Hello how to display images with the title from a file (in ListVeiw C #)? helpe please Pin
Richard MacCutchan30-Apr-16 20:47
mveRichard MacCutchan30-Apr-16 20:47 
AnswerRe: Hello how to display images with the title from a file (in ListVeiw C #)? helpe please Pin
OriginalGriff30-Apr-16 20:51
mveOriginalGriff30-Apr-16 20:51 
QuestionUse report Wizard or FastReport to generate report from outcome Pin
wilcoten29-Apr-16 9:29
wilcoten29-Apr-16 9:29 
QuestionGet Instance Of Class By Name Pin
Kevin Marois29-Apr-16 7:50
professionalKevin Marois29-Apr-16 7:50 
AnswerRe: Get Instance Of Class By Name Pin
Gerry Schmitz29-Apr-16 13:02
mveGerry Schmitz29-Apr-16 13:02 
AnswerRe: Get Instance Of Class By Name Pin
Afzaal Ahmad Zeeshan30-Apr-16 10:08
professionalAfzaal Ahmad Zeeshan30-Apr-16 10:08 
AnswerRe: Get Instance Of Class By Name Pin
Richard Deeming4-May-16 2:08
mveRichard Deeming4-May-16 2:08 
QuestionHelp please, I have a error in this script, when I follow the suggestion their are more errors Pin
wilcoten29-Apr-16 3:51
wilcoten29-Apr-16 3:51 
AnswerRe: Help please, I have a error in this script, when I follow the suggestion their are more errors Pin
OriginalGriff29-Apr-16 3:57
mveOriginalGriff29-Apr-16 3:57 
AnswerRe: Help please, I have a error in this script, when I follow the suggestion their are more errors Pin
ZurdoDev29-Apr-16 4:35
professionalZurdoDev29-Apr-16 4:35 
GeneralRe: Help please, I have a error in this script, when I follow the suggestion their are more errors Pin
wilcoten29-Apr-16 6:10
wilcoten29-Apr-16 6:10 
GeneralRe: Help please, I have a error in this script, when I follow the suggestion their are more errors Pin
OriginalGriff29-Apr-16 6:20
mveOriginalGriff29-Apr-16 6:20 
GeneralRe: Help please, I have a error in this script, when I follow the suggestion their are more errors Pin
wilcoten29-Apr-16 20:36
wilcoten29-Apr-16 20:36 
GeneralRe: Help please, I have a error in this script, when I follow the suggestion their are more errors Pin
OriginalGriff29-Apr-16 21:15
mveOriginalGriff29-Apr-16 21:15 
GeneralRe: Help please, I have a error in this script, when I follow the suggestion their are more errors Pin
wilcoten29-Apr-16 23:17
wilcoten29-Apr-16 23:17 
GeneralRe: Help please, I have a error in this script, when I follow the suggestion their are more errors Pin
OriginalGriff29-Apr-16 23:50
mveOriginalGriff29-Apr-16 23:50 
GeneralRe: Help please, I have a error in this script, when I follow the suggestion their are more errors Pin
wilcoten30-Apr-16 4:05
wilcoten30-Apr-16 4:05 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.