Latest Article Get our latest posts by subscribing this site

C# ListView selected index to text box and picture box

Hello all, now i can share to you about C# ListView Selected Index Event, and I using Microsoft visual Studio 2010, ok let’s start
First you can make new project, see the picture



You can make desain like this picture,  textbox ID = txtID, textbox Name = txtName, Picture box = pictureBox1, ListView = listView1





And you can make new void

string img;  //for image on listView Selected Index

void listViewItem()
        {
            //List View desain

            listView1.Items.Clear();
            listView1.Columns.Add("ID", 25, HorizontalAlignment.Right);
            listView1.Columns.Add("Name", 100, HorizontalAlignment.Center);
            listView1.Columns.Add("Picture Sources", 150, HorizontalAlignment.Left);

            listView1.GridLines = true;
            listView1.BackColor = Color.SkyBlue;
            listView1.FullRowSelect = true;
            listView1.Activation = ItemActivation.Standard;
            listView1.View = View.Details;

            //add item to listView1

            ListViewItem item = new ListViewItem("1");
            item.SubItems.Add("Nike Elastico");
            item.SubItems.Add(@"D:\Sepatu-Futsal-Nike-Elastico-Teal-Green.jpg");

            listView1.Items.Add(item);

            ListViewItem item1 = new ListViewItem("2");
            item1.SubItems.Add("Error Windows");
            item1.SubItems.Add(@"D:\Untitled.png");

            listView1.Items.Add(item1);
        }


And this code on Form1 Load

private void Form1_Load(object sender, EventArgs e)
        {
            // load void listViewItem
            listViewItem();
        }


And now this code on listView1 Selected Index Change Event

private void listView1_SelectedIndexChanged(object sender, EventArgs e)
        {
            try
            {
                if (listView1.SelectedItems.Count > 0)
                {
                    txtID.Text = listView1.SelectedItems[0].SubItems[0].Text;
                    txtName.Text = listView1.SelectedItems[0].SubItems[1].Text;
                    img = listView1.SelectedItems[0].SubItems[2].Text;  //Selected image
                    pictureBox1.Image = Image.FromFile(img);
                }
            }
            catch (Exception ex)
            {
                MessageBox.Show("Warning" + ex);
            }
        }  

Execute (f5)























And finish, good luck brother…..



Speccy 1.22 Show your Hardware Information

Hello..
Sobat Mau tau tentang Informasi Hardware trus pusing mau cari/ lihat di mana ? langsung aja download aplikasi ini nih, berguna banget untuk membantu kita menentukan driver yang cocok buat PC kita,


Download link:
Mediafire :Speccy 1.22.rar
4shared    :Speccy 1.22.rar

Enchance My 8 Pro Optimize your windows 8

Hello...
Kali ini saya akan share mengenai windows 8, sobat pakek windows 8 ? mau cari applikasi yang memiliki fitur lengkap untuk maintenance PC sobat ? 
nah Enchance My 8 solusinya, mungkin sobat bloger ada yang tau tentang Tune Up Utillities, applikasi yang lengkap menyediakan banyak features untuk maintenance PC sobat, nah sekarang untuk windows 8 sobat tidak perlu repot" lagi mengunakan Tune Up Utillities karena Enchance My 8 memiliki Features yang hampir mirip dengan Tune Up tersebut.





Features : 
  • Disk Cleaner. Automatically find and delete un-needed files and folders
  • Defragmenter. Reduce the amount of fragmentation in file systems and registry
  • System Info. Get maximum detailed information about your hardware and software
  • System Tools. a collection of system tools that you didn't even heard about
  • Security Tweaks. Easely configure the new security settings of Windows 8

Download Link:

Capten Commando PS1 For PC

Hello.....
Kali ini saya akan share tentang Game PS1 Capten Commando For PC, game ini di Request oleh salah satu sobat bloger, berikut adalah screenshot nya












Untuk ukuran File cukup berat yaitu 240Mb di sini saya bagi menjadi 3 part, untuk cara extract jadi satu tau kan ? hahaha tinggal extract part no 1 aja ^^

Link Download :

Aplikasi Format File FLV ke 3GP Format Factory 3.1.1.0

Selamat pagi sobat bloger, kali ini saya akan share mengenai aplikasi Gratisan lagi nih, aplikasi ini sangat berguna untuk mengubah format sebuah file utnuk lebih jelasnya bias di lihat di bawah ini,






Format Factory is a multifunctional media converter.

Provides functions below:
All to MP4/3GP/MPG/AVI/WMV/FLV/SWF.
All to MP3/WMA/AMR/OGG/AAC/WAV.
All to JPG/BMP/PNG/TIF/ICO/GIF/TGA.
Rip DVD to video file , Rip Music CD to audio file.
MP4 files support iPod/iPhone/PSP/BlackBerry format.
Supports RMVB,Watermark, AV Mux.

Format Factory's Feature:
1 support converting all popular video,audio,picture formats to others.
2 Repair damaged video and audio file.
3 Reducing Multimedia file size.
4 Support iphone,ipod multimedia file formats.
5 Picture converting supports Zoom,Rotate/Flip,tags.
6 DVD Ripper.
7 Supports 62 languages
OS requirements: All Windows OS


Link Download:

Mediafire      :FFSetup 3.1.1.0.rar

Search This Blog

Like This Yoo

 
Modify by : Antonio Francisco
Copyright © 2013. Relax - All Rights Reserved
Template Created by Creating Website Published by Mas Template
Proudly powered by Blogger