• 窗体控件应用总结(1)


    1.如果想要通过点击菜单控件或工具栏控件达到是窗体变大变小的功能首先双击控件进入代码编写

    绑定事件

    this.Size = new Size(600, 400);//(int x,int y)设定窗体大小

    2.想要使状态栏呈现当前窗体是大还是小
    sta1.Text = "大窗体";//状态栏name.Text="......";写在与菜单控件或工具控件的事件中

    3.如果想要设定当前窗体的背景颜色

    this.BackColor = Color.Red;

    如果想让状态栏呈现当前窗体背景颜色参照第二条

    4.设定当前窗体前景色

    this.ForeColor = Color.Black;

    5.设定当前窗体左右位置

    label1.Location = new Point(10, 100);//(int x,int y)

    label1.Location = new Point(60, 100);//保持纵坐标不变让横坐标变化实现当前lable的左右移动

    6.设定挡墙窗体的上下移动

    label1.Location = new Point(10, 100);

    label1.Location = new Point(10, 200);//保持横坐标不变让纵坐标变化实现当前lable的左右移动

    7.设定当前字体的颜色背景

    label1.BackColor = Color.Red;

  • 相关阅读:
    WEB UI 整理
    RAT
    client 控制
    SiMay 远控
    SSH/SOCKS成为全局代理
    BypassAntiVirus
    QuasarRAT 使用
    从 Qt 的 delete 说开来
    Spectrum Analyzer test.cpp Example File
    windows下C/C++的内存泄露检测
  • 原文地址:https://www.cnblogs.com/YuJiaJia/p/7571811.html
Copyright © 2020-2023  润新知