______________________________________________________________________________________________

Latest Article Get our latest posts by subscribing this site

Rumah Pohon Karangasem Kubu - Bali, Indonesia



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 :

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