zoukankan      html  css  js  c++  java
  • 3单元C#练习(重复太多,差别着写)

    3_1.

    重要点:1.改变大小主要在click和size。size要new。

    2.窗体大小显示是在toolStripStatusLable 的text。

    3.新老版本的控件名称差异ToolBarButton——ToolStripMenu,ToolBarPanel——toolStripStatusLable。

    4.窗体的大小也要设置。

    Test3_2

    Backcolor=Color.Blue;    toolStripStatusLabel1.Text = "蓝色";

    Test3_4

     private void toolStripLabel2_Click(object sender, EventArgs e)
            {
                label1.Location = new Point(50, 100);//改变控件Label的位置
               // this.Size = new Size(300, 200);
                //this.toolStripStatusLabel1.Text = "中";
                toolStripStatusLabel1.Text = "中";
            }


     

    test3_9

    private void toolStripLabel1_Click(object sender, EventArgs e)
            {
                this.BackgroundImage = Image.FromFile(@"D:a.jpg");
               // label1.Location = new Point(10, 100);
                //this.Location = new Point(10,100);
                //this.toolStripStatusLabel1.Text = "大";
                toolStripStatusLabel1.Text = "A";
            }

    附加:1.改变鼠标显示    this.Cursor = Cursors.Default;(默认)/WaitCursor;(等待)/Cross;(十字)

    2.右键快捷键:private void Form1_Load(object sender, EventArgs e)
        { 

           this.ContextMenuStrip = this.contextMenuStrip1;

        }

                                    

  • 相关阅读:
    loadrunner压测java请求
    Omnitty的使用
    软件工程之感想
    《人月神话》读后感
    my idea之NSBC分析
    电梯调度 总结稿 刘博&徐梦迪
    敏捷开发综述
    数组最大子数组和(续)之动态规划
    求二维数组最大子数组和 刘博&徐梦迪
    数组中的最大子数组的和 刘博&徐梦迪
  • 原文地址:https://www.cnblogs.com/7-58843117/p/7594678.html
Copyright © 2011-2022 走看看