zoukankan      html  css  js  c++  java
  • winForm的布局

    工具箱布局:

    panel   区域,相当于网页里面的div

    FlowLayoutPanel 流式布局的panel,往里面添加工具会向左流

    TableLayoutPanel 网格布局,相当于网页里面的表格

    TabControl 卡片布局,默认有两个选项卡

    SplitContainer 分页布局

    1.MenuStrip:菜单工具  加热键:(&F)  加快捷键:先选中要加快捷键的项,右键属性,ShortCutKey:设置快捷键  加分割线:在输入状态输入一个减号  属性Image:菜单项前加图片

    2.NotifyIcon:托盘图标工具  属性Icon:设置托盘图标  属性Text:设置显示的文字  属性ContextMenuStrip:设置关联的快捷菜单

    3.ContextMenuStrip:快捷菜单

    4.RichTextBox:多行文本输入框

    5.DateTimePicker:日期选择工具  取值:value;

    6.ImageList:图片集合  先添加图片,设置图片大小  取图片:用name.Images[0];根据索引取图片

    7.Timer:定时器工具,每隔多长时间触发某个事件  属性Enabled:是否可用  属性Interval:时间间隔  事件Tick:去触发的事件

    8.DataGridView 获取数据

  • 相关阅读:
    php多态
    ssl certificate problem: self signed certificate in certificate chain
    test plugin
    open specific port on ubuntu
    junit vs testng
    jersey rest service
    toast master
    use curl to test java webservice
    update folder access
    elk
  • 原文地址:https://www.cnblogs.com/hansonglin/p/4815573.html
Copyright © 2011-2022 走看看