本文介绍了Windows后退按钮上的事件处理的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

限时删除!!

嗨!!!
谁能帮我,我不熟悉c夏普...
如何在Windows后退按钮和向上按钮上进行事件处理...在C#中是否有用于此目的的任何方法..... !!!
谢谢.

关于Ame ..

hi !!!
can anyone help me i am new to c sharp...
how to do event handling on windows back button and up button...is there any method available in c# for this purpose.....!!!
thanks.

Regards Ame..

推荐答案


using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.IO;



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



        private void Form1_Load(object sender, EventArgs e)
        {
            System.IO.DirectoryInfo dir = new System.IO.DirectoryInfo(@"\\MyDocuments\pictures");
            foreach (System.IO.FileInfo f in dir.GetFiles("*.*"))
            {
                //LOAD FILES
                ListViewItem lSingleItem = listView1.Items.Add(f.Name);
                //SUB ITEMS
                lSingleItem.SubItems.Add(Convert.ToString(f.Length));
                lSingleItem.SubItems.Add(f.Extension);
            }
            foreach (System.IO.DirectoryInfo d in dir.GetDirectories())
            {
                ListViewItem s = listView1.Items.Add(d.FullName + "\n");

                s.SubItems.Add(d.Extension);

            }

        }

        private void toolStripButton1_Click(object sender, EventArgs e)
        {

        }






    }
}



这是我的设计,我想对其按钮进行事件处理.



this is my design i want to do event handling over its buttons.



这篇关于Windows后退按钮上的事件处理的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

1403页,肝出来的..

09-06 18:59