Winform窗体的基本控件
一、窗体的事件
每一个窗体都有一个事件,这个窗体加载完成之后执行哪一段代码
位置:(1)右键属性→事件→load 双击进入。(2)双击窗体任意一个位置进入
- public partial class Form1 : Form//构造方法
- {
- public Form1()
{
InitializeComponent();
}
控件在工具箱里面找,找到之后双击即可添加进来,也可以点住拖进来
每个工具,控件,窗体都有一个name,相当于id,用来标识该对象的名称,name值不允许重复
六大常用控件
1、Label -- 文本显示工具
Text:需要显示的文字——属性
Label的取值赋值:
- private void Form1_Load(object sender, EventArgs e)
- {
- label1.Text = "请输入你需要购买的东西:";
- MessageBox.Show(label1.Text);
- }
2、TextBox -- 文本框
TextBox的取值赋值:
- private void Form1_Load(object sender, EventArgs e)
- {
- textBox1.Text = "请输入配菜";
- MessageBox.Show(textBox1.Text);
- }
3、radioButton -- 单选按钮
text:文字
Checked:是否选中
- //
- // radioButton1
- //
- this.radioButton1.AutoSize = true;
- this.radioButton1.BackColor = System.Drawing.Color.Transparent;
- this.radioButton1.Checked = true;//决定是否先选中其中一个
- this.radioButton1.Font = new System.Drawing.Font("微软雅黑", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)()));
- this.radioButton1.Location = new System.Drawing.Point(, );
- this.radioButton1.Name = "radioButton1";
- this.radioButton1.Size = new System.Drawing.Size(, );
- this.radioButton1.TabIndex = ;
- this.radioButton1.TabStop = true;
- this.radioButton1.Text = "薯条";
- this.radioButton1.UseVisualStyleBackColor = false;
4 combobox--下拉列表
用于制作下拉菜单
- //
- // comboBox1
- //
- this.comboBox1.BackColor = System.Drawing.SystemColors.Info;
- //决定着默认无法输入文字,为灰色区域DropDownList
- this.comboBox1.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
- this.comboBox1.Font = new System.Drawing.Font("微软雅黑", 8F);
- this.comboBox1.FormattingEnabled = true;
- this.comboBox1.Items.AddRange(new object[] {
- "香辣鸡腿堡",
- "半鸡半虾堡",
- "BBQ手撕猪肉堡",
- "老北京鸡肉卷",
- "黑椒牛柳饭",
- "日式咖喱饭"});
- this.comboBox1.Location = new System.Drawing.Point(, );
- this.comboBox1.Margin = new System.Windows.Forms.Padding();
- this.comboBox1.Name = "comboBox1";
- this.comboBox1.Size = new System.Drawing.Size(, );
- this.comboBox1.TabIndex = ;
5、checkbox -- 复选框组
Checked属性:是否选中
Tag属性:可以存储自定义数,用户自己定义
设置全选或者全都不选
- private void checkBox3_CheckedChanged(object sender, EventArgs e)
- {
- foreach (Control ctr in panel2.Controls)
- {
- if (ctr is CheckBox)
- {
- CheckBox ck = ctr as CheckBox;
- ck.Checked = checkBox3.Checked;
- }
- }
- }
6、Button 按钮
name:设置按钮名
Text:设置按钮显示的文字
双击进入设置按钮的事件(默认为点击事件)
练习:肯德基订餐
- namespace WindowsFormsApplication1
- {
- partial class Form1
- {
- /// <summary>
- /// 必需的设计器变量。
- /// </summary>
- private System.ComponentModel.IContainer components = null;
- /// <summary>
- /// 清理所有正在使用的资源。
- /// </summary>
- /// <param name="disposing">如果应释放托管资源,为 true;否则为 false。</param>
- protected override void Dispose(bool disposing)
- {
- if (disposing && (components != null))
- {
- components.Dispose();
- }
- base.Dispose(disposing);
- }
- #region Windows 窗体设计器生成的代码
- /// <summary>
- /// 设计器支持所需的方法 - 不要
- /// 使用代码编辑器修改此方法的内容。
- /// </summary>
- private void InitializeComponent()
- {
- System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Form1));
- this.label1 = new System.Windows.Forms.Label();
- this.label2 = new System.Windows.Forms.Label();
- this.comboBox1 = new System.Windows.Forms.ComboBox();
- this.label3 = new System.Windows.Forms.Label();
- this.radioButton1 = new System.Windows.Forms.RadioButton();
- this.radioButton2 = new System.Windows.Forms.RadioButton();
- this.radioButton3 = new System.Windows.Forms.RadioButton();
- this.label4 = new System.Windows.Forms.Label();
- this.checkBox1 = new System.Windows.Forms.CheckBox();
- this.checkBox2 = new System.Windows.Forms.CheckBox();
- this.checkBox3 = new System.Windows.Forms.CheckBox();
- this.checkBox4 = new System.Windows.Forms.CheckBox();
- this.checkBox5 = new System.Windows.Forms.CheckBox();
- this.checkBox6 = new System.Windows.Forms.CheckBox();
- this.label5 = new System.Windows.Forms.Label();
- this.label6 = new System.Windows.Forms.Label();
- this.textBox1 = new System.Windows.Forms.TextBox();
- this.textBox2 = new System.Windows.Forms.TextBox();
- this.button1 = new System.Windows.Forms.Button();
- this.SuspendLayout();
- //
- // label1
- //
- this.label1.AutoSize = true;
- this.label1.BackColor = System.Drawing.Color.Transparent;
- this.label1.Font = new System.Drawing.Font("微软雅黑", 20F);
- this.label1.ForeColor = System.Drawing.Color.Yellow;
- this.label1.Location = new System.Drawing.Point(, );
- this.label1.Margin = new System.Windows.Forms.Padding(, , , );
- this.label1.Name = "label1";
- this.label1.Size = new System.Drawing.Size(, );
- this.label1.TabIndex = ;
- this.label1.Text = "肯德基点餐系统";
- this.label1.Click += new System.EventHandler(this.label1_Click);
- //
- // label2
- //
- this.label2.AutoSize = true;
- this.label2.BackColor = System.Drawing.Color.Transparent;
- this.label2.Font = new System.Drawing.Font("微软雅黑", 10F);
- this.label2.ForeColor = System.Drawing.Color.White;
- this.label2.Location = new System.Drawing.Point(, );
- this.label2.Margin = new System.Windows.Forms.Padding(, , , );
- this.label2.Name = "label2";
- this.label2.Size = new System.Drawing.Size(, );
- this.label2.TabIndex = ;
- this.label2.Text = "请选择主食:";
- this.label2.Click += new System.EventHandler(this.label2_Click);
- //
- // comboBox1
- //
- this.comboBox1.BackColor = System.Drawing.SystemColors.Info;
- //决定着默认无法输入文字,为灰色区域DropDownList
- this.comboBox1.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
- this.comboBox1.Font = new System.Drawing.Font("微软雅黑", 8F);
- this.comboBox1.FormattingEnabled = true;
- this.comboBox1.Items.AddRange(new object[] {
- "香辣鸡腿堡",
- "半鸡半虾堡",
- "BBQ手撕猪肉堡",
- "老北京鸡肉卷",
- "黑椒牛柳饭",
- "日式咖喱饭"});
- this.comboBox1.Location = new System.Drawing.Point(, );
- this.comboBox1.Margin = new System.Windows.Forms.Padding();
- this.comboBox1.Name = "comboBox1";
- this.comboBox1.Size = new System.Drawing.Size(, );
- this.comboBox1.TabIndex = ;
- //
- // label3
- //
- this.label3.AutoSize = true;
- this.label3.BackColor = System.Drawing.Color.Transparent;
- this.label3.Font = new System.Drawing.Font("微软雅黑", 10F);
- this.label3.ForeColor = System.Drawing.Color.White;
- this.label3.Location = new System.Drawing.Point(, );
- this.label3.Name = "label3";
- this.label3.Size = new System.Drawing.Size(, );
- this.label3.TabIndex = ;
- this.label3.Text = "请选择配餐:";
- //
- // radioButton1
- //
- this.radioButton1.AutoSize = true;
- this.radioButton1.BackColor = System.Drawing.Color.Transparent;
- this.radioButton1.Checked = true;//决定是否先选中其中一个
- this.radioButton1.Font = new System.Drawing.Font("微软雅黑", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)()));
- this.radioButton1.Location = new System.Drawing.Point(, );
- this.radioButton1.Name = "radioButton1";
- this.radioButton1.Size = new System.Drawing.Size(, );
- this.radioButton1.TabIndex = ;
- this.radioButton1.TabStop = true;
- this.radioButton1.Text = "薯条";
- this.radioButton1.UseVisualStyleBackColor = false;
- //
- // radioButton2
- //
- this.radioButton2.AutoSize = true;
- this.radioButton2.BackColor = System.Drawing.Color.Transparent;
- this.radioButton2.Font = new System.Drawing.Font("微软雅黑", 10F);
- this.radioButton2.Location = new System.Drawing.Point(, );
- this.radioButton2.Name = "radioButton2";
- this.radioButton2.Size = new System.Drawing.Size(, );
- this.radioButton2.TabIndex = ;
- this.radioButton2.Text = "玉米棒";
- this.radioButton2.UseVisualStyleBackColor = false;
- this.radioButton2.CheckedChanged += new System.EventHandler(this.radioButton2_CheckedChanged);
- //
- // radioButton3
- //
- this.radioButton3.AutoSize = true;
- this.radioButton3.BackColor = System.Drawing.Color.Transparent;
- this.radioButton3.Font = new System.Drawing.Font("微软雅黑", 10F);
- this.radioButton3.Location = new System.Drawing.Point(, );
- this.radioButton3.Name = "radioButton3";
- this.radioButton3.Size = new System.Drawing.Size(, );
- this.radioButton3.TabIndex = ;
- this.radioButton3.Text = "鸡米花";
- this.radioButton3.UseVisualStyleBackColor = false;
- this.radioButton3.CheckedChanged += new System.EventHandler(this.radioButton3_CheckedChanged);
- //
- // label4
- //
- this.label4.AutoSize = true;
- this.label4.BackColor = System.Drawing.Color.Transparent;
- this.label4.Font = new System.Drawing.Font("微软雅黑", 10F);
- this.label4.ForeColor = System.Drawing.Color.White;
- this.label4.Location = new System.Drawing.Point(, );
- this.label4.Name = "label4";
- this.label4.Size = new System.Drawing.Size(, );
- this.label4.TabIndex = ;
- this.label4.Text = "请选择饮品:";
- this.label4.Click += new System.EventHandler(this.label4_Click);
- //
- // checkBox1
- //
- this.checkBox1.AutoSize = true;
- this.checkBox1.BackColor = System.Drawing.Color.Transparent;
- this.checkBox1.Font = new System.Drawing.Font("微软雅黑", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)()));
- this.checkBox1.ForeColor = System.Drawing.Color.Black;
- this.checkBox1.Location = new System.Drawing.Point(, );
- this.checkBox1.Name = "checkBox1";
- this.checkBox1.Size = new System.Drawing.Size(, );
- this.checkBox1.TabIndex = ;
- this.checkBox1.Text = "奶茶";
- this.checkBox1.UseVisualStyleBackColor = false;
- //
- // checkBox2
- //
- this.checkBox2.AutoSize = true;
- this.checkBox2.BackColor = System.Drawing.Color.Transparent;
- this.checkBox2.Font = new System.Drawing.Font("微软雅黑", 10F);
- this.checkBox2.ForeColor = System.Drawing.Color.Black;
- this.checkBox2.Location = new System.Drawing.Point(, );
- this.checkBox2.Name = "checkBox2";
- this.checkBox2.Size = new System.Drawing.Size(, );
- this.checkBox2.TabIndex = ;
- this.checkBox2.Text = "可乐";
- this.checkBox2.UseVisualStyleBackColor = false;
- //
- // checkBox3
- //
- this.checkBox3.AutoSize = true;
- this.checkBox3.BackColor = System.Drawing.Color.Transparent;
- this.checkBox3.Font = new System.Drawing.Font("微软雅黑", 10F);
- this.checkBox3.Location = new System.Drawing.Point(, );
- this.checkBox3.Name = "checkBox3";
- this.checkBox3.Size = new System.Drawing.Size(, );
- this.checkBox3.TabIndex = ;
- this.checkBox3.Text = "豆浆";
- this.checkBox3.UseVisualStyleBackColor = false;
- //
- // checkBox4
- //
- this.checkBox4.AutoSize = true;
- this.checkBox4.BackColor = System.Drawing.Color.Transparent;
- this.checkBox4.Font = new System.Drawing.Font("微软雅黑", 10F);
- this.checkBox4.Location = new System.Drawing.Point(, );
- this.checkBox4.Name = "checkBox4";
- this.checkBox4.Size = new System.Drawing.Size(, );
- this.checkBox4.TabIndex = ;
- this.checkBox4.Text = "圣代";
- this.checkBox4.UseVisualStyleBackColor = false;
- this.checkBox4.CheckedChanged += new System.EventHandler(this.checkBox4_CheckedChanged);
- //
- // checkBox5
- //
- this.checkBox5.AutoSize = true;
- this.checkBox5.BackColor = System.Drawing.Color.Transparent;
- this.checkBox5.Font = new System.Drawing.Font("微软雅黑", 10F);
- this.checkBox5.Location = new System.Drawing.Point(, );
- this.checkBox5.Name = "checkBox5";
- this.checkBox5.Size = new System.Drawing.Size(, );
- this.checkBox5.TabIndex = ;
- this.checkBox5.Text = "蔬菜汤";
- this.checkBox5.UseVisualStyleBackColor = false;
- //
- // checkBox6
- //
- this.checkBox6.AutoSize = true;
- this.checkBox6.BackColor = System.Drawing.Color.Transparent;
- this.checkBox6.Font = new System.Drawing.Font("微软雅黑", 10F);
- this.checkBox6.Location = new System.Drawing.Point(, );
- this.checkBox6.Name = "checkBox6";
- this.checkBox6.Size = new System.Drawing.Size(, );
- this.checkBox6.TabIndex = ;
- this.checkBox6.Text = "牛奶";
- this.checkBox6.UseVisualStyleBackColor = false;
- //
- // label5
- //
- this.label5.AutoSize = true;
- this.label5.BackColor = System.Drawing.Color.Transparent;
- this.label5.Font = new System.Drawing.Font("微软雅黑", 10F);
- this.label5.ForeColor = System.Drawing.Color.White;
- this.label5.Location = new System.Drawing.Point(, );
- this.label5.Name = "label5";
- this.label5.Size = new System.Drawing.Size(, );
- this.label5.TabIndex = ;
- this.label5.Text = "请输入地址:";
- //
- // label6
- //
- this.label6.AutoSize = true;
- this.label6.BackColor = System.Drawing.Color.Transparent;
- this.label6.Font = new System.Drawing.Font("微软雅黑", 10F);
- this.label6.ForeColor = System.Drawing.Color.White;
- this.label6.Location = new System.Drawing.Point(, );
- this.label6.Name = "label6";
- this.label6.Size = new System.Drawing.Size(, );
- this.label6.TabIndex = ;
- this.label6.Text = "请输入电话:";
- this.label6.Click += new System.EventHandler(this.label6_Click);
- //
- // textBox1
- //
- this.textBox1.Font = new System.Drawing.Font("微软雅黑", 10F);
- this.textBox1.Location = new System.Drawing.Point(, );
- this.textBox1.Multiline = true;
- this.textBox1.Name = "textBox1";
- this.textBox1.Size = new System.Drawing.Size(, );
- this.textBox1.TabIndex = ;
- //
- // textBox2
- //
- this.textBox2.Font = new System.Drawing.Font("微软雅黑", 10F);
- this.textBox2.Location = new System.Drawing.Point(, );
- this.textBox2.Multiline = true;
- this.textBox2.Name = "textBox2";
- this.textBox2.Size = new System.Drawing.Size(, );
- this.textBox2.TabIndex = ;
- //
- // button1
- //
- this.button1.BackColor = System.Drawing.Color.Transparent;
- this.button1.Font = new System.Drawing.Font("微软雅黑", 15F);
- this.button1.Location = new System.Drawing.Point(, );
- this.button1.Name = "button1";
- this.button1.Size = new System.Drawing.Size(, );
- this.button1.TabIndex = ;
- this.button1.Text = "提交";
- this.button1.UseVisualStyleBackColor = false;
- this.button1.Click += new System.EventHandler(this.button1_Click);
- //
- // Form1
- //
- this.AutoScaleDimensions = new System.Drawing.SizeF(16F, 35F);
- this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
- this.BackgroundImage = global::WindowsFormsApplication1.Properties.Resources._81093c0c839ca9eff9a92b5c38ad3686;
- this.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
- this.ClientSize = new System.Drawing.Size(, );
- this.Controls.Add(this.button1);
- this.Controls.Add(this.textBox2);
- this.Controls.Add(this.textBox1);
- this.Controls.Add(this.label6);
- this.Controls.Add(this.label5);
- this.Controls.Add(this.checkBox6);
- this.Controls.Add(this.checkBox5);
- this.Controls.Add(this.checkBox4);
- this.Controls.Add(this.checkBox3);
- this.Controls.Add(this.checkBox2);
- this.Controls.Add(this.checkBox1);
- this.Controls.Add(this.label4);
- this.Controls.Add(this.radioButton3);
- this.Controls.Add(this.radioButton2);
- this.Controls.Add(this.radioButton1);
- this.Controls.Add(this.label3);
- this.Controls.Add(this.comboBox1);
- this.Controls.Add(this.label2);
- this.Controls.Add(this.label1);
- this.Font = new System.Drawing.Font("微软雅黑", 20F);
- this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
- this.Margin = new System.Windows.Forms.Padding(, , , );
- this.Name = "Form1";
- this.Text = "KFC";
- this.ResumeLayout(false);
- this.PerformLayout();
- }
- #endregion
- private System.Windows.Forms.Label label1;
- private System.Windows.Forms.Label label2;
- private System.Windows.Forms.ComboBox comboBox1;
- private System.Windows.Forms.Label label3;
- private System.Windows.Forms.RadioButton radioButton1;
- private System.Windows.Forms.RadioButton radioButton2;
- private System.Windows.Forms.RadioButton radioButton3;
- private System.Windows.Forms.Label label4;
- private System.Windows.Forms.CheckBox checkBox1;
- private System.Windows.Forms.CheckBox checkBox2;
- private System.Windows.Forms.CheckBox checkBox3;
- private System.Windows.Forms.CheckBox checkBox4;
- private System.Windows.Forms.CheckBox checkBox5;
- private System.Windows.Forms.CheckBox checkBox6;
- private System.Windows.Forms.Label label5;
- private System.Windows.Forms.Label label6;
- private System.Windows.Forms.TextBox textBox1;
- private System.Windows.Forms.TextBox textBox2;
- private System.Windows.Forms.Button button1;
- }
- }
- using System;
- using System.Collections.Generic;
- using System.ComponentModel;
- using System.Data;
- using System.Drawing;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- using System.Windows.Forms;
- namespace WindowsFormsApplication1
- {
- public partial class Form1 : Form
- {
- public Form1()
- {
- InitializeComponent();
- comboBox1.SelectedIndex = ;//设置下拉框的默认值为第一行数据而不是为空;
- }
- private void label1_Click(object sender, EventArgs e)
- {
- }
- private void radioButton3_CheckedChanged(object sender, EventArgs e)
- {
- }
- private void radioButton2_CheckedChanged(object sender, EventArgs e)
- {
- }
- private void label4_Click(object sender, EventArgs e)
- {
- }
- private void checkBox4_CheckedChanged(object sender, EventArgs e)
- {
- }
- private void label6_Click(object sender, EventArgs e)
- {
- }
- private void button1_Click(object sender, EventArgs e)
- {
- //主食
- string zs = comboBox1.SelectedItem.ToString();
- //配餐
- string pc = "";
- if (radioButton1.Checked)//判断是否选中
- pc = radioButton1.Text;
- else if (radioButton2.Checked)
- pc = radioButton2.Text;
- else
- pc = radioButton3.Text;
- //饮品
- string yp = "";
- if (checkBox1.Checked)//判断饮品1是否选中
- yp += checkBox1.Text;
- if (checkBox2.Checked)
- {
- if (yp != "")//如果前面已经有选择过的饮品就加逗号
- {
- yp += ",";
- }
- yp += checkBox2.Text;
- }
- if (checkBox3.Checked)
- {
- if (yp != "")
- {
- yp += ",";
- }
- yp += checkBox3.Text;
- }
- if (checkBox4.Checked)
- {
- if (yp != "")
- {
- yp += ",";
- }
- yp += checkBox4.Text;
- }
- if (checkBox5.Checked)
- {
- if (yp != "")
- {
- yp += ",";
- }
- yp += checkBox5.Text;
- if (checkBox6.Checked)
- {
- if (yp != "")
- {
- yp += ",";
- }
- yp += checkBox6.Text;
- }
- }
- //地址
- string dz = textBox1.Text;
- //电话
- string tel = textBox2.Text;
- MessageBox.Show("您选的的主食是:" + zs + "\r您选择的配餐是:" + pc + "\r您选择的饮品是:" + yp + "\r配送地址:" + dz + "\r联系电话:" + tel);
- }
- private void label2_Click(object sender, EventArgs e)
- {
- }
- }
- }
Button控制操作
Winform窗体的基本控件的更多相关文章
- C# 中对WinForm窗体中的控件快速设置TableIndex次序
点击“视图”--“Tab键顺序”,然后便可设置.
- winform 窗体中 Time 控件的用法
作用: 用于背景进程中.通过引发Timer事件,Timer控件可以有规律的隔一段时间执行一次代码.也就是,你可以根据你自己的需要,给Timer控件设置时间,Timer每隔这段时间,就执行一次代码. 属 ...
- WinForm窗体中窗口控件的生成
1:button控件的生成方式 Button button = new Button(); button.Size = new Size(80, 80); button.Location = new ...
- winform窗体中查找控件
private RichTextBox FindControl() { RichTextBox ret = null; try { ...
- WPF中不规则窗体与WindowsFormsHost控件的兼容问题完美解决方案
首先先得瑟一下,有关WPF中不规则窗体与WindowsFormsHost控件不兼容的问题,网上给出的解决方案不能满足所有的情况,是有特定条件的,比如 WPF中不规则窗体与WebBrowser控件的兼 ...
- WPF中不规则窗体与WebBrowser控件的兼容问题解决办法
原文:WPF中不规则窗体与WebBrowser控件的兼容问题解决办法 引言 这几天受委托开发一个网络电视项目,要求初步先使用内嵌网页形式实现视频播放和选单,以后再考虑将网页中的所有功能整合进桌面程序. ...
- WPF中嵌入WinForm中的webbrowser控件
原文:WPF中嵌入WinForm中的webbrowser控件 使用VS2008创建WPF应用程序,需使用webbrowser.从工具箱中添加WPF组件中的webbrowser发现其中有很多属性事件不能 ...
- winform 自定义控件:半透明Loading控件
winform 自定义控件:半透明Loading控件 by wgscd date:2015-05-05 效果: using System;using System.Drawing;using Sys ...
- 富客户端 wpf, Winform 多线程更新UI控件
前言 在富客户端的app中,如果在主线程中运行一些长时间的任务,那么应用程序的UI就不能正常相应.因为主线程要负责消息循环,相应鼠标等事件还有展现UI. 因此我们可以开启一个线程来格外处理需要长时间的 ...
随机推荐
- SSRF安全威胁在JAVA代码中的应用
如上图所示代码,在进行外部url调用的时候,引入了SSRF检测:ssrfChecker.checkUrlWithoutConnection(url)机制. SSRF安全威胁: 很多web应用都提供 ...
- Java关于Properties用法(二)——替换配置文件中的参数
上一章讲了配置文件的基本用法,虽然上一章已经可以解决一些需求,但还不些不足之处.假如,配置文件里面的字符串有一部分需要经常变动,另外一些不需要,上一章的方法就不方便了,所以这章主要讲如何在配置文件中使 ...
- 解决WIN7与虚拟机CentOS的文件夹共享问题
一.系统与软件 WIN7 64bit.VirtualBox 5.0.14.CentOS 6.5.SecureCRT 7.2.3 二.使用文件夹共享需要安装增强功能,但是安装时无法读取光盘iso文件 三 ...
- ABP导航源码分析
按步骤看: 1,在Global.asax中执行: base.Application_Start(sender, e); 2,在AbpWebApplication类的Application_Start( ...
- 如何用ORM支持SQL语句的CASE WHEN?
OQL如何支持CASE WHEN? 今天,一个朋友问我,OQL可否支持CASE WHEN语句?他给的示例SQL如下: then '启用' else '停用' from tb_User OQL是SOD框 ...
- jQuery获取Table-Input控件值封装
- 获取OpenFileDialog的文件名和文件路径
得到文件名 string fileName = ofd.SafeFileName; 得到路径 string filePath = System.IO.Path.GetDirectoryName(ofd ...
- 基本排序算法——基数排序java实现
基数排序 package basic.sort; import java.util.Arrays; import java.util.Random; public class RadixSort { ...
- SharePoint Permission Extension
SharePoint Permission Extension 项目很久没维护了,也没有迁移到sp2013上(貌似只要把2013的Form的RenderMode设置为Server后也是可以用的). 在 ...
- JSON解析和XML解析对比
JSON解析和XML解析是较为普遍的两种解析方式,其中JSON解析的市场分额更大.本文系统的分析两种解析方式的区别,为更好地处理数据作准备.由于目前阶段主要是做移动开发,所以本文所描述的JSON解析和 ...