C# WinForm GUI之控件
C# WinForm GUI之控件
- Button控件
- Label控件与LinkLabel控件
- TextBox控件
- PictureBox控件
- Timer控件
- 容器类控件
- RadioButton控件
- CheckBox控件
- MenuStrip控件
- 对话框设计
Button控件
派生于ButtonBase,单击或Enter键触发Click事件。
常用属性:
- Text标题、
- Name名称、
- Image图片、
- Location位置。
Label控件与LinkLabel控件
- Label控件即标签控件,显示描述性文字和信息。
常用属性与事件:
Text显示文字;
- TextAlign文本在控件中位置(需设置AutoSize为true);
- AutoSize是否根据文本自动调整控件大小,默认true;
- BorderStyle边框样式,0-Name无边框,1-FixeSingle单线边框,2-Fixed3D表示3D样式边框;
- Click、DoubleClick事件;
- MouseHover鼠标悬停事件。
- LinkLabel为带链接的标签,可创建Web样式的链接,可将部分文本指向某个对象或Web页链接。
常用属性与事件:
- LinkArea获取或设置超链接文本区域;
- LinkColor设置未访问超链接前默认颜色;
- LinkVisited链接是否显示为如同被访问过;
- LinkVisitedColor,LinkVisited为true时设置超链接颜色;
- ActiveLinkColor单击时超链接颜色;
- LinkClicked单击时触发事件。
TextBox控件
用于可编辑文本(可设置只读),可显示多行,可对文本换行使其符合控件大小。其中所有文本使用一种格式。
常用属性与事件:
- Text文本内容,textBox1.Text = “文本内容”;
- MaxLength最大长度,默认0受系统内存限制,textBox1.MaxLength= 1024;
- MultiLine是否多行,默认false;
- ScollBars是否有垂直或水平滚动条,0-None无滚动条,1-Horizontal水平滚动条,2-Vertical垂直滚动条,3-Both都有;
- PasswordChar密码字符显示,textBox1.PasswordChar= “*”;
- SelectedText返回文本框选择的文本;
- ReadOnly是否只读;
- TextChanged事件,文本框内容改变触发;
- KeyPress,用户按键和松开键时触发;
- KeyUp,松开键时触发。
PictureBox控件
显示图形(来自位图、图标、元文件、增强元文件、jpeg、gif等),图像大会裁剪显示。
Image设置显示图片的图片框。
pictureBox1.Image = System.Drawing.Bitmap.FormFile("C:/bj.jpg");
Timer控件
时钟控件,计时器控件,主要用于计时。
常用属性与事件:
- Enable是否启用;
- Interval计时间隔,0~64767ms;
- Tick事件,Enable为true,Interval间隔定时触发Tick事件。
容器类控件
GoupBox(框架控件)常用属性Text,Visible。
Panel(面板控件)派生于ScrollableControl,常用属性:
- AutoScroll,默认true可滚动容器中控件。
- BorderStyle是否显示边框,默认None无边框,FixedSingle单实线,Fixed3D为3D边框
RadioButton控件
单选按钮,从多个选项中选择一项。
常用属性与事件:
- Checked是否选中;
- CheckedChanged选择触发事件。
Form1.Designer.cs
namespace test7_3
{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(){this.label1 = new System.Windows.Forms.Label();this.label2 = new System.Windows.Forms.Label();this.label3 = new System.Windows.Forms.Label();this.groupBox1 = new System.Windows.Forms.GroupBox();this.groupBox2 = new System.Windows.Forms.GroupBox();this.radioButton1 = new System.Windows.Forms.RadioButton();this.radioButton2 = new System.Windows.Forms.RadioButton();this.radioButton3 = new System.Windows.Forms.RadioButton();this.radioButton4 = new System.Windows.Forms.RadioButton();this.radioButton5 = new System.Windows.Forms.RadioButton();this.radioButton6 = new System.Windows.Forms.RadioButton();this.groupBox1.SuspendLayout();this.groupBox2.SuspendLayout();this.SuspendLayout();// // label1// this.label1.AutoSize = true;this.label1.Location = new System.Drawing.Point(260, 87);this.label1.Name = "label1";this.label1.Size = new System.Drawing.Size(337, 15);this.label1.TabIndex = 0;this.label1.Text = "说明:中午选菜单程序,荤素搭配,吃吃更健康。";// // label2// this.label2.AutoSize = true;this.label2.Location = new System.Drawing.Point(168, 364);this.label2.Name = "label2";this.label2.Size = new System.Drawing.Size(55, 15);this.label2.TabIndex = 1;this.label2.Text = "label2";// // label3// this.label3.AutoSize = true;this.label3.Location = new System.Drawing.Point(554, 374);this.label3.Name = "label3";this.label3.Size = new System.Drawing.Size(55, 15);this.label3.TabIndex = 2;this.label3.Text = "label3";// // groupBox1// this.groupBox1.Controls.Add(this.radioButton3);this.groupBox1.Controls.Add(this.radioButton2);this.groupBox1.Controls.Add(this.radioButton1);this.groupBox1.Location = new System.Drawing.Point(148, 138);this.groupBox1.Name = "groupBox1";this.groupBox1.Size = new System.Drawing.Size(217, 179);this.groupBox1.TabIndex = 3;this.groupBox1.TabStop = false;this.groupBox1.Text = "素菜";// // groupBox2// this.groupBox2.Controls.Add(this.radioButton6);this.groupBox2.Controls.Add(this.radioButton5);this.groupBox2.Controls.Add(this.radioButton4);this.groupBox2.Location = new System.Drawing.Point(486, 147);this.groupBox2.Name = "groupBox2";this.groupBox2.Size = new System.Drawing.Size(225, 170);this.groupBox2.TabIndex = 4;this.groupBox2.TabStop = false;this.groupBox2.Text = "荤菜";// // radioButton1// this.radioButton1.AutoSize = true;this.radioButton1.Location = new System.Drawing.Point(23, 36);this.radioButton1.Name = "radioButton1";this.radioButton1.Size = new System.Drawing.Size(73, 19);this.radioButton1.TabIndex = 0;this.radioButton1.TabStop = true;this.radioButton1.Text = "大白菜";this.radioButton1.UseVisualStyleBackColor = true;this.radioButton1.CheckedChanged += new System.EventHandler(this.gb1_CheckedChanged);// // radioButton2// this.radioButton2.AutoSize = true;this.radioButton2.Location = new System.Drawing.Point(23, 72);this.radioButton2.Name = "radioButton2";this.radioButton2.Size = new System.Drawing.Size(103, 19);this.radioButton2.TabIndex = 1;this.radioButton2.TabStop = true;this.radioButton2.Text = "小葱拌豆腐";this.radioButton2.UseVisualStyleBackColor = true;this.radioButton2.CheckedChanged += new System.EventHandler(this.gb1_CheckedChanged);// // radioButton3// this.radioButton3.AutoSize = true;this.radioButton3.Location = new System.Drawing.Point(23, 109);this.radioButton3.Name = "radioButton3";this.radioButton3.Size = new System.Drawing.Size(88, 19);this.radioButton3.TabIndex = 2;this.radioButton3.TabStop = true;this.radioButton3.Text = "清水白菜";this.radioButton3.UseVisualStyleBackColor = true;this.radioButton3.CheckedChanged += new System.EventHandler(this.gb1_CheckedChanged);// // radioButton4// this.radioButton4.AutoSize = true;this.radioButton4.Location = new System.Drawing.Point(49, 27);this.radioButton4.Name = "radioButton4";this.radioButton4.Size = new System.Drawing.Size(73, 19);this.radioButton4.TabIndex = 0;this.radioButton4.TabStop = true;this.radioButton4.Text = "白切鸡";this.radioButton4.UseVisualStyleBackColor = true;this.radioButton4.CheckedChanged += new System.EventHandler(this.gb2_CheckedChanged);// // radioButton5// this.radioButton5.AutoSize = true;this.radioButton5.Location = new System.Drawing.Point(49, 62);this.radioButton5.Name = "radioButton5";this.radioButton5.Size = new System.Drawing.Size(73, 19);this.radioButton5.TabIndex = 1;this.radioButton5.TabStop = true;this.radioButton5.Text = "焖猪蹄";this.radioButton5.UseVisualStyleBackColor = true;this.radioButton5.CheckedChanged += new System.EventHandler(this.gb2_CheckedChanged);// // radioButton6// this.radioButton6.AutoSize = true;this.radioButton6.Location = new System.Drawing.Point(49, 100);this.radioButton6.Name = "radioButton6";this.radioButton6.Size = new System.Drawing.Size(73, 19);this.radioButton6.TabIndex = 2;this.radioButton6.TabStop = true;this.radioButton6.Text = "蒸排骨";this.radioButton6.UseVisualStyleBackColor = true;this.radioButton6.CheckedChanged += new System.EventHandler(this.gb2_CheckedChanged);// // Form1// this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 15F);this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;this.ClientSize = new System.Drawing.Size(800, 450);this.Controls.Add(this.groupBox2);this.Controls.Add(this.groupBox1);this.Controls.Add(this.label3);this.Controls.Add(this.label2);this.Controls.Add(this.label1);this.Name = "Form1";this.Text = "Form1";this.groupBox1.ResumeLayout(false);this.groupBox1.PerformLayout();this.groupBox2.ResumeLayout(false);this.groupBox2.PerformLayout();this.ResumeLayout(false);this.PerformLayout();}#endregionprivate System.Windows.Forms.Label label1;private System.Windows.Forms.Label label2;private System.Windows.Forms.Label label3;private System.Windows.Forms.GroupBox groupBox1;private System.Windows.Forms.RadioButton radioButton3;private System.Windows.Forms.RadioButton radioButton2;private System.Windows.Forms.RadioButton radioButton1;private System.Windows.Forms.GroupBox groupBox2;private System.Windows.Forms.RadioButton radioButton6;private System.Windows.Forms.RadioButton radioButton5;private System.Windows.Forms.RadioButton radioButton4;}
}
Form1.cs
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 test7_3
{public partial class Form1 : Form{public Form1(){InitializeComponent();}private void gb1_CheckedChanged(object sender, EventArgs e){RadioButton rb = (RadioButton)sender;if (rb.Checked)label2.Text = "你选择的素菜是:" + rb.Text;}private void gb2_CheckedChanged(object sender, EventArgs e){RadioButton rb = (RadioButton)sender;if (rb.Checked)label3.Text = "你选择的荤菜是:" + rb.Text;}}
}
Program.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using System.Windows.Forms;namespace test7_3
{static class Program{/// <summary>/// 应用程序的主入口点。/// </summary>[STAThread]static void Main(){Application.EnableVisualStyles();Application.SetCompatibleTextRenderingDefault(false);Application.Run(new Form1());}}
}
csc *.cs -t:winexe
CheckBox控件
复选框控件,选择一项或多项。
Form1.Designer.cs
namespace test7_4
{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(){this.label1 = new System.Windows.Forms.Label();this.button1 = new System.Windows.Forms.Button();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.SuspendLayout();// // label1// this.label1.AutoSize = true;this.label1.Location = new System.Drawing.Point(237, 73);this.label1.Name = "label1";this.label1.Size = new System.Drawing.Size(142, 15);this.label1.TabIndex = 0;this.label1.Text = "选择你感兴趣的板块";// // button1// this.button1.Location = new System.Drawing.Point(289, 318);this.button1.Name = "button1";this.button1.Size = new System.Drawing.Size(75, 23);this.button1.TabIndex = 1;this.button1.Text = "确定";this.button1.UseVisualStyleBackColor = true;this.button1.Click += new System.EventHandler(this.button1_Click);// // checkBox1// this.checkBox1.AutoSize = true;this.checkBox1.Location = new System.Drawing.Point(230, 142);this.checkBox1.Name = "checkBox1";this.checkBox1.Size = new System.Drawing.Size(59, 19);this.checkBox1.TabIndex = 2;this.checkBox1.Text = "要闻";this.checkBox1.UseVisualStyleBackColor = true;// // checkBox2// this.checkBox2.AutoSize = true;this.checkBox2.Location = new System.Drawing.Point(230, 180);this.checkBox2.Name = "checkBox2";this.checkBox2.Size = new System.Drawing.Size(59, 19);this.checkBox2.TabIndex = 3;this.checkBox2.Text = "体育";this.checkBox2.UseVisualStyleBackColor = true;// // checkBox3// this.checkBox3.AutoSize = true;this.checkBox3.Location = new System.Drawing.Point(230, 234);this.checkBox3.Name = "checkBox3";this.checkBox3.Size = new System.Drawing.Size(59, 19);this.checkBox3.TabIndex = 4;this.checkBox3.Text = "娱乐";this.checkBox3.UseVisualStyleBackColor = true;// // checkBox4// this.checkBox4.AutoSize = true;this.checkBox4.Location = new System.Drawing.Point(351, 142);this.checkBox4.Name = "checkBox4";this.checkBox4.Size = new System.Drawing.Size(59, 19);this.checkBox4.TabIndex = 5;this.checkBox4.Text = "教育";this.checkBox4.UseVisualStyleBackColor = true;// // checkBox5// this.checkBox5.AutoSize = true;this.checkBox5.Location = new System.Drawing.Point(351, 180);this.checkBox5.Name = "checkBox5";this.checkBox5.Size = new System.Drawing.Size(59, 19);this.checkBox5.TabIndex = 6;this.checkBox5.Text = "军事";this.checkBox5.UseVisualStyleBackColor = true;// // checkBox6// this.checkBox6.AutoSize = true;this.checkBox6.Location = new System.Drawing.Point(351, 234);this.checkBox6.Name = "checkBox6";this.checkBox6.Size = new System.Drawing.Size(59, 19);this.checkBox6.TabIndex = 7;this.checkBox6.Text = "汽车";this.checkBox6.UseVisualStyleBackColor = true;// // Form1// this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 15F);this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;this.ClientSize = new System.Drawing.Size(800, 450);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.button1);this.Controls.Add(this.label1);this.Name = "Form1";this.Text = "Form1";this.ResumeLayout(false);this.PerformLayout();}#endregionprivate System.Windows.Forms.Label label1;private System.Windows.Forms.Button button1;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;}
}
Form1.cs
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 test7_4
{public partial class Form1 : Form{public Form1(){InitializeComponent();}private void button1_Click(object sender, EventArgs e){string mk = "";CheckBox[] array = { checkBox1,checkBox2,checkBox3,checkBox4,checkBox5,checkBox6};for(int i = 0; i < array.Length; i++){if(array[i].Checked)mk += array[i].Text+",";}MessageBox.Show("选择你感兴趣的板块:" + mk);}}
}
Program.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using System.Windows.Forms;namespace test7_4
{static class Program{/// <summary>/// 应用程序的主入口点。/// </summary>[STAThread]static void Main(){Application.EnableVisualStyles();Application.SetCompatibleTextRenderingDefault(false);Application.Run(new Form1());}}
}
csc *.cs -t:winexe
MenuStrip控件
菜单基本作用:
- 人机对话接口,方便用户选择应用程序的各种功能;
- 管理应用程序,操作各种功能模块。
-
MenuStrip
下拉式菜单,单击菜单下拉出子菜单,选择命令执行相关操作。 -
ContextMenuStrip
右键菜单或弹出式菜单。
常用属性与事件:
- ShortCutKeys快捷键;
- ShowShortcutKeys是否显示菜单项快捷键;
- Checked判断返回菜单是否被选中;
- Click单击事件。
菜单栏单击鼠标右键,选择“编辑DropDownItems…”命令,弹出“项集合编辑器”对话框,可设置菜单项快捷键等属性。
RichTextBox控件,设置Dock属性为Fill,可填满整个窗体。
ContextMenuStrip菜单的Click事件属性可选择MenuStrip菜单的事件,实现复用。
对话框设计
通用预定义对话框:
- OpenFileDialog
- SaveFileDialog
- ColorDialog
- FontDialog
- PageSetupDialog打印页面设置
- PrintDialog打印机设置
- PrintPreviewDialog打印预览
- OpenFileDialog
从磁盘打开一个或多个文件。
常用属性与方法:
- Title对话框标题,默认“打开”;
- FileName获取或设置第一个对话框显示文件或用户选择的最后一个文件,OpenFileDialog.FileName = “test.txt”;
- Filter文件格式筛选器,限定文件类型,数显隔开,OpenFileDialog.Filter= “doc文档|*.doc|所有文档|*.*”;
- IntiaDirectiory初始目录,OpenFileDialog.IntiaDirectiory= “d:\”;
- MultiseLect是否多选文件;
- ShowDialog显示对话框,OpenFileDialog.ShowDialog()。
- SaveFileDialog
常用属性:
- CreatePrompt保存文件不存在时,询问是否创建;
- OverwritePromptt保存文件存在时,询问是否覆盖。
- FontDialog
常用属性:
- Font字体
- Color字体颜色
Form1.Designer.cs
namespace _5test
{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(){this.components = new System.ComponentModel.Container();this.menuStrip1 = new System.Windows.Forms.MenuStrip();this.文件ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();this.新建ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();this.打开ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();this.保存ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();this.toolStripSeparator1 = new System.Windows.Forms.ToolStripSeparator();this.打印ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();this.toolStripSeparator2 = new System.Windows.Forms.ToolStripSeparator();this.退出ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();this.编辑ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();this.复制ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();this.剪切ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();this.粘贴ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();this.toolStripSeparator3 = new System.Windows.Forms.ToolStripSeparator();this.字体ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();this.帮助ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();this.版本ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();this.richTextBox1 = new System.Windows.Forms.RichTextBox();this.contextMenuStrip1 = new System.Windows.Forms.ContextMenuStrip(this.components);this.复制ToolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem();this.剪切ToolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem();this.粘贴ToolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem();this.退出ToolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem();this.printDocument1 = new System.Drawing.Printing.PrintDocument();this.menuStrip1.SuspendLayout();this.contextMenuStrip1.SuspendLayout();this.SuspendLayout();// // menuStrip1// this.menuStrip1.ImageScalingSize = new System.Drawing.Size(20, 20);this.menuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {this.文件ToolStripMenuItem,this.编辑ToolStripMenuItem,this.帮助ToolStripMenuItem});this.menuStrip1.Location = new System.Drawing.Point(0, 0);this.menuStrip1.Name = "menuStrip1";this.menuStrip1.Size = new System.Drawing.Size(582, 28);this.menuStrip1.TabIndex = 0;this.menuStrip1.Text = "menuStrip1";// // 文件ToolStripMenuItem// this.文件ToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {this.新建ToolStripMenuItem,this.打开ToolStripMenuItem,this.保存ToolStripMenuItem,this.toolStripSeparator1,this.打印ToolStripMenuItem,this.toolStripSeparator2,this.退出ToolStripMenuItem});this.文件ToolStripMenuItem.Name = "文件ToolStripMenuItem";this.文件ToolStripMenuItem.Size = new System.Drawing.Size(53, 24);this.文件ToolStripMenuItem.Text = "文件";// // 新建ToolStripMenuItem// this.新建ToolStripMenuItem.Name = "新建ToolStripMenuItem";this.新建ToolStripMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.N)));this.新建ToolStripMenuItem.Size = new System.Drawing.Size(224, 26);this.新建ToolStripMenuItem.Text = "新建";this.新建ToolStripMenuItem.Click += new System.EventHandler(this.新建ToolStripMenuItem_Click);// // 打开ToolStripMenuItem// this.打开ToolStripMenuItem.Name = "打开ToolStripMenuItem";this.打开ToolStripMenuItem.Size = new System.Drawing.Size(224, 26);this.打开ToolStripMenuItem.Text = "打开";this.打开ToolStripMenuItem.Click += new System.EventHandler(this.打开ToolStripMenuItem_Click);// // 保存ToolStripMenuItem// this.保存ToolStripMenuItem.Name = "保存ToolStripMenuItem";this.保存ToolStripMenuItem.Size = new System.Drawing.Size(224, 26);this.保存ToolStripMenuItem.Text = "保存";this.保存ToolStripMenuItem.Click += new System.EventHandler(this.保存ToolStripMenuItem_Click);// // toolStripSeparator1// this.toolStripSeparator1.Name = "toolStripSeparator1";this.toolStripSeparator1.Size = new System.Drawing.Size(221, 6);// // 打印ToolStripMenuItem// this.打印ToolStripMenuItem.Name = "打印ToolStripMenuItem";this.打印ToolStripMenuItem.Size = new System.Drawing.Size(224, 26);this.打印ToolStripMenuItem.Text = "打印";this.打印ToolStripMenuItem.Click += new System.EventHandler(this.打印ToolStripMenuItem_Click);// // toolStripSeparator2// this.toolStripSeparator2.Name = "toolStripSeparator2";this.toolStripSeparator2.Size = new System.Drawing.Size(221, 6);// // 退出ToolStripMenuItem// this.退出ToolStripMenuItem.Name = "退出ToolStripMenuItem";this.退出ToolStripMenuItem.Size = new System.Drawing.Size(224, 26);this.退出ToolStripMenuItem.Text = "退出";this.退出ToolStripMenuItem.Click += new System.EventHandler(this.退出ToolStripMenuItem_Click);// // 编辑ToolStripMenuItem// this.编辑ToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {this.复制ToolStripMenuItem,this.剪切ToolStripMenuItem,this.粘贴ToolStripMenuItem,this.toolStripSeparator3,this.字体ToolStripMenuItem});this.编辑ToolStripMenuItem.Name = "编辑ToolStripMenuItem";this.编辑ToolStripMenuItem.Size = new System.Drawing.Size(53, 24);this.编辑ToolStripMenuItem.Text = "编辑";// // 复制ToolStripMenuItem// this.复制ToolStripMenuItem.Name = "复制ToolStripMenuItem";this.复制ToolStripMenuItem.Size = new System.Drawing.Size(224, 26);this.复制ToolStripMenuItem.Text = "复制";this.复制ToolStripMenuItem.Click += new System.EventHandler(this.复制ToolStripMenuItem_Click);// // 剪切ToolStripMenuItem// this.剪切ToolStripMenuItem.Name = "剪切ToolStripMenuItem";this.剪切ToolStripMenuItem.Size = new System.Drawing.Size(224, 26);this.剪切ToolStripMenuItem.Text = "剪切";this.剪切ToolStripMenuItem.Click += new System.EventHandler(this.剪切ToolStripMenuItem_Click);// // 粘贴ToolStripMenuItem// this.粘贴ToolStripMenuItem.Name = "粘贴ToolStripMenuItem";this.粘贴ToolStripMenuItem.Size = new System.Drawing.Size(224, 26);this.粘贴ToolStripMenuItem.Text = "粘贴";this.粘贴ToolStripMenuItem.Click += new System.EventHandler(this.粘贴ToolStripMenuItem_Click);// // toolStripSeparator3// this.toolStripSeparator3.Name = "toolStripSeparator3";this.toolStripSeparator3.Size = new System.Drawing.Size(221, 6);// // 字体ToolStripMenuItem// this.字体ToolStripMenuItem.Name = "字体ToolStripMenuItem";this.字体ToolStripMenuItem.Size = new System.Drawing.Size(224, 26);this.字体ToolStripMenuItem.Text = "字体";this.字体ToolStripMenuItem.Click += new System.EventHandler(this.字体ToolStripMenuItem_Click);// // 帮助ToolStripMenuItem// this.帮助ToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {this.版本ToolStripMenuItem});this.帮助ToolStripMenuItem.Name = "帮助ToolStripMenuItem";this.帮助ToolStripMenuItem.Size = new System.Drawing.Size(53, 24);this.帮助ToolStripMenuItem.Text = "帮助";// // 版本ToolStripMenuItem// this.版本ToolStripMenuItem.Name = "版本ToolStripMenuItem";this.版本ToolStripMenuItem.Size = new System.Drawing.Size(224, 26);this.版本ToolStripMenuItem.Text = "版本";this.版本ToolStripMenuItem.Click += new System.EventHandler(this.版本ToolStripMenuItem_Click);// // richTextBox1// this.richTextBox1.ContextMenuStrip = this.contextMenuStrip1;this.richTextBox1.Dock = System.Windows.Forms.DockStyle.Fill;this.richTextBox1.Location = new System.Drawing.Point(0, 28);this.richTextBox1.Name = "richTextBox1";this.richTextBox1.Size = new System.Drawing.Size(582, 405);this.richTextBox1.TabIndex = 1;this.richTextBox1.Text = "";// // contextMenuStrip1// this.contextMenuStrip1.ImageScalingSize = new System.Drawing.Size(20, 20);this.contextMenuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {this.复制ToolStripMenuItem1,this.剪切ToolStripMenuItem1,this.粘贴ToolStripMenuItem1,this.退出ToolStripMenuItem1});this.contextMenuStrip1.Name = "contextMenuStrip1";this.contextMenuStrip1.Size = new System.Drawing.Size(109, 100);// // 复制ToolStripMenuItem1// this.复制ToolStripMenuItem1.Name = "复制ToolStripMenuItem1";this.复制ToolStripMenuItem1.Size = new System.Drawing.Size(210, 24);this.复制ToolStripMenuItem1.Text = "复制";this.复制ToolStripMenuItem1.Click += new System.EventHandler(this.复制ToolStripMenuItem_Click);// // 剪切ToolStripMenuItem1// this.剪切ToolStripMenuItem1.Name = "剪切ToolStripMenuItem1";this.剪切ToolStripMenuItem1.Size = new System.Drawing.Size(210, 24);this.剪切ToolStripMenuItem1.Text = "剪切";this.剪切ToolStripMenuItem1.Click += new System.EventHandler(this.剪切ToolStripMenuItem_Click);// // 粘贴ToolStripMenuItem1// this.粘贴ToolStripMenuItem1.Name = "粘贴ToolStripMenuItem1";this.粘贴ToolStripMenuItem1.Size = new System.Drawing.Size(210, 24);this.粘贴ToolStripMenuItem1.Text = "粘贴";this.粘贴ToolStripMenuItem1.Click += new System.EventHandler(this.粘贴ToolStripMenuItem_Click);// // 退出ToolStripMenuItem1// this.退出ToolStripMenuItem1.Name = "退出ToolStripMenuItem1";this.退出ToolStripMenuItem1.Size = new System.Drawing.Size(210, 24);this.退出ToolStripMenuItem1.Text = "退出";this.退出ToolStripMenuItem1.Click += new System.EventHandler(this.退出ToolStripMenuItem_Click);// // Form1// this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 15F);this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;this.ClientSize = new System.Drawing.Size(582, 433);this.Controls.Add(this.richTextBox1);this.Controls.Add(this.menuStrip1);this.MainMenuStrip = this.menuStrip1;this.Name = "Form1";this.Text = "Form1";this.menuStrip1.ResumeLayout(false);this.menuStrip1.PerformLayout();this.contextMenuStrip1.ResumeLayout(false);this.ResumeLayout(false);this.PerformLayout();}#endregionprivate System.Windows.Forms.MenuStrip menuStrip1;private System.Windows.Forms.ToolStripMenuItem 文件ToolStripMenuItem;private System.Windows.Forms.ToolStripMenuItem 新建ToolStripMenuItem;private System.Windows.Forms.ToolStripMenuItem 打开ToolStripMenuItem;private System.Windows.Forms.ToolStripMenuItem 保存ToolStripMenuItem;private System.Windows.Forms.ToolStripSeparator toolStripSeparator1;private System.Windows.Forms.ToolStripMenuItem 打印ToolStripMenuItem;private System.Windows.Forms.ToolStripSeparator toolStripSeparator2;private System.Windows.Forms.ToolStripMenuItem 退出ToolStripMenuItem;private System.Windows.Forms.ToolStripMenuItem 编辑ToolStripMenuItem;private System.Windows.Forms.ToolStripMenuItem 复制ToolStripMenuItem;private System.Windows.Forms.ToolStripMenuItem 剪切ToolStripMenuItem;private System.Windows.Forms.ToolStripMenuItem 粘贴ToolStripMenuItem;private System.Windows.Forms.ToolStripSeparator toolStripSeparator3;private System.Windows.Forms.ToolStripMenuItem 字体ToolStripMenuItem;private System.Windows.Forms.ToolStripMenuItem 帮助ToolStripMenuItem;private System.Windows.Forms.ToolStripMenuItem 版本ToolStripMenuItem;private System.Windows.Forms.RichTextBox richTextBox1;private System.Windows.Forms.ContextMenuStrip contextMenuStrip1;private System.Windows.Forms.ToolStripMenuItem 复制ToolStripMenuItem1;private System.Windows.Forms.ToolStripMenuItem 剪切ToolStripMenuItem1;private System.Windows.Forms.ToolStripMenuItem 粘贴ToolStripMenuItem1;private System.Windows.Forms.ToolStripMenuItem 退出ToolStripMenuItem1;private System.Drawing.Printing.PrintDocument printDocument1;}
}
Form1.cs
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 _5test
{public partial class Form1 : Form{public Form1(){InitializeComponent();}private void 新建ToolStripMenuItem_Click(object sender, EventArgs e){DialogResult result = MessageBox.Show("确定要新建吗", "新建提示", MessageBoxButtons.YesNo);if (result == DialogResult.Yes){richTextBox1.Clear();this.Text = "新建文本";}}private void 复制ToolStripMenuItem_Click(object sender, EventArgs e){richTextBox1.Copy();}private void 剪切ToolStripMenuItem_Click(object sender, EventArgs e){richTextBox1.Cut();}private void 粘贴ToolStripMenuItem_Click(object sender, EventArgs e){richTextBox1.Paste();}private void 退出ToolStripMenuItem_Click(object sender, EventArgs e){DialogResult result = MessageBox.Show("确定要退出吗","退出操作",MessageBoxButtons.YesNo);if (result == DialogResult.Yes){Application.Exit();}}private void 打开ToolStripMenuItem_Click(object sender, EventArgs e){OpenFileDialog openFileDialog = new OpenFileDialog();openFileDialog.InitialDirectory = "C:\\";openFileDialog.Filter = "rtf(*.rtf)|*.rtf|txt(*.txt)|*.txt|doc(*.doc)|*.doc";openFileDialog.FilterIndex = 1;openFileDialog.RestoreDirectory = true;if(openFileDialog.ShowDialog() == DialogResult.OK){try{richTextBox1.LoadFile(openFileDialog.FileName);}catch(Exception ex){MessageBox.Show(openFileDialog.FileName+ex.Message);}}}private void 保存ToolStripMenuItem_Click(object sender, EventArgs e){SaveFileDialog saveFileDialog = new SaveFileDialog();saveFileDialog.InitialDirectory = "C:\\";saveFileDialog.Filter = "rtf(*.rtf)|*.rtf|txt(*.txt)|*.txt|doc(*.doc)|*.doc";saveFileDialog.RestoreDirectory = true;if (saveFileDialog.ShowDialog() == DialogResult.OK){richTextBox1.SaveFile(saveFileDialog.FileName);}}private void 打印ToolStripMenuItem_Click(object sender, EventArgs e){PrintDialog printDialog = new PrintDialog();printDialog.Document = printDocument1;if (printDialog.ShowDialog() == DialogResult.OK){printDocument1.Print();}}private void 字体ToolStripMenuItem_Click(object sender, EventArgs e){FontDialog fontDialog = new FontDialog();fontDialog.ShowColor = true;fontDialog.Font = richTextBox1.SelectionFont;fontDialog.Color = richTextBox1.SelectionColor;if (fontDialog.ShowDialog() == DialogResult.OK){richTextBox1.SelectionFont = fontDialog.Font ;richTextBox1.SelectionColor = fontDialog.Color ;}}private void 版本ToolStripMenuItem_Click(object sender, EventArgs e){MessageBox.Show("version1.0,版权所有:作者","版本及版权信息");}}
}
Program.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using System.Windows.Forms;namespace _5test
{static class Program{/// <summary>/// 应用程序的主入口点。/// </summary>[STAThread]static void Main(){Application.EnableVisualStyles();Application.SetCompatibleTextRenderingDefault(false);Application.Run(new Form1());}}
}
csc *.cs -t:winexe
如若内容造成侵权/违法违规/事实不符,请联系编程学习网邮箱:809451989@qq.com进行投诉反馈,一经查实,立即删除!
相关文章
- 2022年安全员-B证报名考试及安全员-B证模拟考试题库
题库来源:安全生产模拟考试一点通公众号小程序 安全生产模拟考试一点通:安全员-B证报名考试是安全生产模拟考试一点通生成的,安全员-B证证模拟考试题库是根据安全员-B证最新版教材汇编出安全员-B证仿真模拟考试。2022年安全员-B证报名考试及…...
2024/4/13 6:08:43 - 1. node_命令行窗口
1.命令行窗口(小黑屏)、CMD窗口、终端、shell - 开始菜单 --> 运行 --> CMD --> 回车 - 常用的指令:dir 列出当前目录下的所有文件cd 目录名 进入到指定的目录md 目录名 创建一个文件夹rd 目录名 删除一个文件夹 直接输入文件名打开当前目录里的文件- 目录…...
2024/4/13 16:14:07 - 10-gorm-06-更新
1. 简单示例 从一个示例开始说明 以有表格如下 mysql> select * from xi_shu; ---------------------- | id | name | age | ---------------------- | 1 | LiuBei | 28 | | 2 | GuanYu | 22 | | 3 | ZhangFei | 20 | | 4 | ZhaoYun | 18 …...
2024/4/13 6:08:28 - Java八大算法:插入排序
基本原理 插入排序(英语:Insertion Sort)是一种简单直观的排序算法。它的工作原理是通过构建有序序列,对于未排序数据,在已排序序列中从后向前扫描,找到相应位置并插入。插入排序在实现上,在从…...
2024/4/13 6:08:23 - Leetcode_175_组合两个表_SQL
left join是以左表为主 select FirstName, LastName, City, state from Person left join Address on Person.PersonId Address.PersonId...
2024/4/13 16:14:48 - 门子程序S7-1200小车配料 品牌型号 西门子S7-1200和昆仑通态触摸屏 功能:配料、USS变频器通讯。
门子程序S7-1200小车配料 品牌型号 西门子S7-1200和昆仑通态触摸屏 功能:配料、USS变频器通讯。编号:4140658903114423大爆米花...
2024/4/13 6:08:18 - Unity 通过www请求发送Form表单,Node服务器post接收数据并返回值
Node端: var express=require(express); var fs=require(fs); var url=require(url); var bodyParser=require(body-parser); var app=express(); app.use(bodyParser.urlencoded({extended:false})) //这句很重要 //接收用户id,并去数据库查询 app.post(/SkierCamInf…...
2024/4/20 7:29:05 - 最强招式之函数与程序结构
1.写在前面 前面我们学了对数据进行处理,学会了简单的流程的管理,但是程序不能只有一个方法吧,这样程序就比较混乱,所以我们需要将程序的结构的进行相应的拆分和组合起来,这样就比较易于维护。 2.函数的基本知识 我…...
2024/4/13 6:08:48 - OPENCV总结
特别提醒: opencv的版本问题:建议使用cv2的 3.4.2的版本 因为在3.4版本之后,因为sift的算法申请专利,如无法使用该函数 sift cv2.xfeatures2d.SIFT_create() 基础知识部分 1.图像的组成与读取 import cv2 #opencv读取的格式…...
2024/4/13 6:08:33 - 乱序报文可以完成TCP三次握手吗
如下TCP握手时序: 问加粗的那个报文可以完成TCP握手吗?server端的accept会返回吗? 答案是肯定的: 只要到达server报文的ack字段等于server syn1,即可完成握手。 TCP协议属全双工,3rd ack实属server到cli…...
2024/4/13 6:08:28 - 看动画,学JavaIO教程11:字符编码
看动画,学JavaIO教程11:字符编码 观看视频 视频全集 看动画,学JavaIO 其他教程 看动画,学Java集合 看动画,学Java同步器 看动画,学Java线程池 看动画,学Java多线程 代码 Github地址【全…...
2024/4/18 6:38:55 - 【剑指 offer】10- I. 斐波那契数列(研究更本质的一些东西 耗时三小时)
本节目录刷前点说题目介绍(LINK)思路/想法1. 初始思路/最终思路迭代递归2. 注意点迭代实现递归的代码实现(不推荐的,面试不要写这样的代码!)递归不重复计算(推荐的写法 是微软的面试题)感谢语刷前点说 以后…...
2024/4/15 1:21:19 - 【字符串】1447. 最简分数
题目 给你一个整数 n ,请你返回所有 0 到 1 之间(不包括 0 和 1)满足分母小于等于 n 的 最简 分数 。分数可以以 任意 顺序返回。 示例 1:输入:n 2 输出:["1/2"] 解释:"1/2&q…...
2024/4/8 19:02:16 - 南京金龙上位机,开沃整车上位机,南京金龙电池,上位机
南京金龙上位机,开沃整车上位机,南京金龙电池,上位机,开沃D07/10实车测试可用 全新 编号:8529658558342228新能源汽车专修...
2024/4/13 6:08:38 - ds1302.c(80): error C141: syntax error near ‘,‘
C141,这个错误通常是指出你在这个地方附近有错误,在打错符号的时候通常会出现。 我这里定义了函数但是没有填入数据,系统判定为“,”附近有错误。 将数据填入后错误就能解除。...
2024/4/15 22:50:32 - Java注解原理讲解
Java注解是在Java程序员开发中十分重要的一个技术,但是如果不了解注解的工作原理是无法很好的运用注解进行问题解决 可以看一下我的博客文章:注解详解...
2024/4/13 8:05:55 - 【Java之基础】简述hashcode和equals的区别
简述hashcode和equals的区别 如果在hashmap当中来说的话,作用分别如下: hashcode是定位当前元素,需要找到某个元素在当前数组(桶)当中的下标equals是需要在hashcode定位的某个下标(桶)中遍历链表,比较哪个key是相同的。 举个例子…...
2024/4/13 6:08:38 - ElasticJob‐Lite:Dataflow作业
Dataflow作业用于处理数据流,需要实现DataflowJob接口。该接口提供2个方法,分别用于抓取 (fetchData)和处理 (processData) 数据。 package com.kaven.job;import org.apache.shardingsphere.elasticjob.a…...
2024/4/17 7:38:06 - 记录Sql语句的学习过程
sum(if)语句的使用: sum (column ) : 把一列的值全部相加 sum( if ( 条件 , 2 , 0 ) ) : 满足“条件”,加2,不满足条件,加0 如果有查询数量的话,则查询的列必须出现在聚合函数group by中否则会…...
2024/4/23 14:59:14 - linux 系统键盘响应事件
/* 本代码是由linux系统捕获w,a,s,d键盘抬起放下 的c代码由于本人是初学者,里面注释可能误 导大家对学术的认知不要见怪,这些api我也找了 一晚才写出来---------最后如果大家打不开的 话换要打开的文件把event1到event4都试以下 在此希望能帮助大家爱------作者&…...
2024/4/19 1:36:43
最新文章
- VMR,一款支持40多种编程语言和工具的跨平台SDK版本管理器。
支持40编程语言和工具。支持对每个项目锁定SDK版本。支持MacOS/Windows/Linux。无需插件,开箱即用。更快,更简单。 VMR是一款简单,跨平台,且经过良好测试的版本管理器,用于管理多种SDK以及其他工具。它完全是为了通用…...
2024/5/4 9:53:54 - 梯度消失和梯度爆炸的一些处理方法
在这里是记录一下梯度消失或梯度爆炸的一些处理技巧。全当学习总结了如有错误还请留言,在此感激不尽。 权重和梯度的更新公式如下: w w − η ⋅ ∇ w w w - \eta \cdot \nabla w ww−η⋅∇w 个人通俗的理解梯度消失就是网络模型在反向求导的时候出…...
2024/3/20 10:50:27 - 字符串匹配算法之BF与KMP算法
目录 BF算法(暴力匹配算法) KMP算法 核心思想: next数组 next数组的优化 BF算法(暴力匹配算法) #include <assert.h> int BF(const char* str, const char* sub) {assert(str ! NULL && sub ! NULL);if (str NULL || sub NULL){return -1;}int…...
2024/5/4 9:41:01 - WebAR开发简介
WebAR 开发使企业能够以独特且高度有趣的方式向客户和员工提供信息。 它提供增强现实 (AR) 内容,人们在智能手机上将其视为视觉叠加。 然而,WebAR 可在手机的普通网络浏览器上运行,无需下载任何应用程序。 WebAR 的多种用途包括帮助零售和在…...
2024/5/1 6:56:00 - 【外汇早评】美通胀数据走低,美元调整
原标题:【外汇早评】美通胀数据走低,美元调整昨日美国方面公布了新一期的核心PCE物价指数数据,同比增长1.6%,低于前值和预期值的1.7%,距离美联储的通胀目标2%继续走低,通胀压力较低,且此前美国一季度GDP初值中的消费部分下滑明显,因此市场对美联储后续更可能降息的政策…...
2024/5/1 17:30:59 - 【原油贵金属周评】原油多头拥挤,价格调整
原标题:【原油贵金属周评】原油多头拥挤,价格调整本周国际劳动节,我们喜迎四天假期,但是整个金融市场确实流动性充沛,大事频发,各个商品波动剧烈。美国方面,在本周四凌晨公布5月份的利率决议和新闻发布会,维持联邦基金利率在2.25%-2.50%不变,符合市场预期。同时美联储…...
2024/5/2 16:16:39 - 【外汇周评】靓丽非农不及疲软通胀影响
原标题:【外汇周评】靓丽非农不及疲软通胀影响在刚结束的周五,美国方面公布了新一期的非农就业数据,大幅好于前值和预期,新增就业重新回到20万以上。具体数据: 美国4月非农就业人口变动 26.3万人,预期 19万人,前值 19.6万人。 美国4月失业率 3.6%,预期 3.8%,前值 3…...
2024/4/29 2:29:43 - 【原油贵金属早评】库存继续增加,油价收跌
原标题:【原油贵金属早评】库存继续增加,油价收跌周三清晨公布美国当周API原油库存数据,上周原油库存增加281万桶至4.692亿桶,增幅超过预期的74.4万桶。且有消息人士称,沙特阿美据悉将于6月向亚洲炼油厂额外出售更多原油,印度炼油商预计将每日获得至多20万桶的额外原油供…...
2024/5/3 23:10:03 - 【外汇早评】日本央行会议纪要不改日元强势
原标题:【外汇早评】日本央行会议纪要不改日元强势近两日日元大幅走强与近期市场风险情绪上升,避险资金回流日元有关,也与前一段时间的美日贸易谈判给日本缓冲期,日本方面对汇率问题也避免继续贬值有关。虽然今日早间日本央行公布的利率会议纪要仍然是支持宽松政策,但这符…...
2024/4/27 17:58:04 - 【原油贵金属早评】欧佩克稳定市场,填补伊朗问题的影响
原标题:【原油贵金属早评】欧佩克稳定市场,填补伊朗问题的影响近日伊朗局势升温,导致市场担忧影响原油供给,油价试图反弹。此时OPEC表态稳定市场。据消息人士透露,沙特6月石油出口料将低于700万桶/日,沙特已经收到石油消费国提出的6月份扩大出口的“适度要求”,沙特将满…...
2024/4/27 14:22:49 - 【外汇早评】美欲与伊朗重谈协议
原标题:【外汇早评】美欲与伊朗重谈协议美国对伊朗的制裁遭到伊朗的抗议,昨日伊朗方面提出将部分退出伊核协议。而此行为又遭到欧洲方面对伊朗的谴责和警告,伊朗外长昨日回应称,欧洲国家履行它们的义务,伊核协议就能保证存续。据传闻伊朗的导弹已经对准了以色列和美国的航…...
2024/4/28 1:28:33 - 【原油贵金属早评】波动率飙升,市场情绪动荡
原标题:【原油贵金属早评】波动率飙升,市场情绪动荡因中美贸易谈判不安情绪影响,金融市场各资产品种出现明显的波动。随着美国与中方开启第十一轮谈判之际,美国按照既定计划向中国2000亿商品征收25%的关税,市场情绪有所平复,已经开始接受这一事实。虽然波动率-恐慌指数VI…...
2024/4/30 9:43:09 - 【原油贵金属周评】伊朗局势升温,黄金多头跃跃欲试
原标题:【原油贵金属周评】伊朗局势升温,黄金多头跃跃欲试美国和伊朗的局势继续升温,市场风险情绪上升,避险黄金有向上突破阻力的迹象。原油方面稍显平稳,近期美国和OPEC加大供给及市场需求回落的影响,伊朗局势并未推升油价走强。近期中美贸易谈判摩擦再度升级,美国对中…...
2024/4/27 17:59:30 - 【原油贵金属早评】市场情绪继续恶化,黄金上破
原标题:【原油贵金属早评】市场情绪继续恶化,黄金上破周初中国针对于美国加征关税的进行的反制措施引发市场情绪的大幅波动,人民币汇率出现大幅的贬值动能,金融市场受到非常明显的冲击。尤其是波动率起来之后,对于股市的表现尤其不安。隔夜美国股市出现明显的下行走势,这…...
2024/5/2 15:04:34 - 【外汇早评】美伊僵持,风险情绪继续升温
原标题:【外汇早评】美伊僵持,风险情绪继续升温昨日沙特两艘油轮再次发生爆炸事件,导致波斯湾局势进一步恶化,市场担忧美伊可能会出现摩擦生火,避险品种获得支撑,黄金和日元大幅走强。美指受中美贸易问题影响而在低位震荡。继5月12日,四艘商船在阿联酋领海附近的阿曼湾、…...
2024/4/28 1:34:08 - 【原油贵金属早评】贸易冲突导致需求低迷,油价弱势
原标题:【原油贵金属早评】贸易冲突导致需求低迷,油价弱势近日虽然伊朗局势升温,中东地区几起油船被袭击事件影响,但油价并未走高,而是出于调整结构中。由于市场预期局势失控的可能性较低,而中美贸易问题导致的全球经济衰退风险更大,需求会持续低迷,因此油价调整压力较…...
2024/4/26 19:03:37 - 氧生福地 玩美北湖(上)——为时光守候两千年
原标题:氧生福地 玩美北湖(上)——为时光守候两千年一次说走就走的旅行,只有一张高铁票的距离~ 所以,湖南郴州,我来了~ 从广州南站出发,一个半小时就到达郴州西站了。在动车上,同时改票的南风兄和我居然被分到了一个车厢,所以一路非常愉快地聊了过来。 挺好,最起…...
2024/4/29 20:46:55 - 氧生福地 玩美北湖(中)——永春梯田里的美与鲜
原标题:氧生福地 玩美北湖(中)——永春梯田里的美与鲜一觉醒来,因为大家太爱“美”照,在柳毅山庄去寻找龙女而错过了早餐时间。近十点,向导坏坏还是带着饥肠辘辘的我们去吃郴州最富有盛名的“鱼头粉”。说这是“十二分推荐”,到郴州必吃的美食之一。 哇塞!那个味美香甜…...
2024/4/30 22:21:04 - 氧生福地 玩美北湖(下)——奔跑吧骚年!
原标题:氧生福地 玩美北湖(下)——奔跑吧骚年!让我们红尘做伴 活得潇潇洒洒 策马奔腾共享人世繁华 对酒当歌唱出心中喜悦 轰轰烈烈把握青春年华 让我们红尘做伴 活得潇潇洒洒 策马奔腾共享人世繁华 对酒当歌唱出心中喜悦 轰轰烈烈把握青春年华 啊……啊……啊 两…...
2024/5/1 4:32:01 - 扒开伪装医用面膜,翻六倍价格宰客,小姐姐注意了!
原标题:扒开伪装医用面膜,翻六倍价格宰客,小姐姐注意了!扒开伪装医用面膜,翻六倍价格宰客!当行业里的某一品项火爆了,就会有很多商家蹭热度,装逼忽悠,最近火爆朋友圈的医用面膜,被沾上了污点,到底怎么回事呢? “比普通面膜安全、效果好!痘痘、痘印、敏感肌都能用…...
2024/5/4 2:59:34 - 「发现」铁皮石斛仙草之神奇功效用于医用面膜
原标题:「发现」铁皮石斛仙草之神奇功效用于医用面膜丽彦妆铁皮石斛医用面膜|石斛多糖无菌修护补水贴19大优势: 1、铁皮石斛:自唐宋以来,一直被列为皇室贡品,铁皮石斛生于海拔1600米的悬崖峭壁之上,繁殖力差,产量极低,所以古代仅供皇室、贵族享用 2、铁皮石斛自古民间…...
2024/4/28 5:48:52 - 丽彦妆\医用面膜\冷敷贴轻奢医学护肤引导者
原标题:丽彦妆\医用面膜\冷敷贴轻奢医学护肤引导者【公司简介】 广州华彬企业隶属香港华彬集团有限公司,专注美业21年,其旗下品牌: 「圣茵美」私密荷尔蒙抗衰,产后修复 「圣仪轩」私密荷尔蒙抗衰,产后修复 「花茵莳」私密荷尔蒙抗衰,产后修复 「丽彦妆」专注医学护…...
2024/4/30 9:42:22 - 广州械字号面膜生产厂家OEM/ODM4项须知!
原标题:广州械字号面膜生产厂家OEM/ODM4项须知!广州械字号面膜生产厂家OEM/ODM流程及注意事项解读: 械字号医用面膜,其实在我国并没有严格的定义,通常我们说的医美面膜指的应该是一种「医用敷料」,也就是说,医用面膜其实算作「医疗器械」的一种,又称「医用冷敷贴」。 …...
2024/5/2 9:07:46 - 械字号医用眼膜缓解用眼过度到底有无作用?
原标题:械字号医用眼膜缓解用眼过度到底有无作用?医用眼膜/械字号眼膜/医用冷敷眼贴 凝胶层为亲水高分子材料,含70%以上的水分。体表皮肤温度传导到本产品的凝胶层,热量被凝胶内水分子吸收,通过水分的蒸发带走大量的热量,可迅速地降低体表皮肤局部温度,减轻局部皮肤的灼…...
2024/4/30 9:42:49 - 配置失败还原请勿关闭计算机,电脑开机屏幕上面显示,配置失败还原更改 请勿关闭计算机 开不了机 这个问题怎么办...
解析如下:1、长按电脑电源键直至关机,然后再按一次电源健重启电脑,按F8健进入安全模式2、安全模式下进入Windows系统桌面后,按住“winR”打开运行窗口,输入“services.msc”打开服务设置3、在服务界面,选中…...
2022/11/19 21:17:18 - 错误使用 reshape要执行 RESHAPE,请勿更改元素数目。
%读入6幅图像(每一幅图像的大小是564*564) f1 imread(WashingtonDC_Band1_564.tif); subplot(3,2,1),imshow(f1); f2 imread(WashingtonDC_Band2_564.tif); subplot(3,2,2),imshow(f2); f3 imread(WashingtonDC_Band3_564.tif); subplot(3,2,3),imsho…...
2022/11/19 21:17:16 - 配置 已完成 请勿关闭计算机,win7系统关机提示“配置Windows Update已完成30%请勿关闭计算机...
win7系统关机提示“配置Windows Update已完成30%请勿关闭计算机”问题的解决方法在win7系统关机时如果有升级系统的或者其他需要会直接进入一个 等待界面,在等待界面中我们需要等待操作结束才能关机,虽然这比较麻烦,但是对系统进行配置和升级…...
2022/11/19 21:17:15 - 台式电脑显示配置100%请勿关闭计算机,“准备配置windows 请勿关闭计算机”的解决方法...
有不少用户在重装Win7系统或更新系统后会遇到“准备配置windows,请勿关闭计算机”的提示,要过很久才能进入系统,有的用户甚至几个小时也无法进入,下面就教大家这个问题的解决方法。第一种方法:我们首先在左下角的“开始…...
2022/11/19 21:17:14 - win7 正在配置 请勿关闭计算机,怎么办Win7开机显示正在配置Windows Update请勿关机...
置信有很多用户都跟小编一样遇到过这样的问题,电脑时发现开机屏幕显现“正在配置Windows Update,请勿关机”(如下图所示),而且还需求等大约5分钟才干进入系统。这是怎样回事呢?一切都是正常操作的,为什么开时机呈现“正…...
2022/11/19 21:17:13 - 准备配置windows 请勿关闭计算机 蓝屏,Win7开机总是出现提示“配置Windows请勿关机”...
Win7系统开机启动时总是出现“配置Windows请勿关机”的提示,没过几秒后电脑自动重启,每次开机都这样无法进入系统,此时碰到这种现象的用户就可以使用以下5种方法解决问题。方法一:开机按下F8,在出现的Windows高级启动选…...
2022/11/19 21:17:12 - 准备windows请勿关闭计算机要多久,windows10系统提示正在准备windows请勿关闭计算机怎么办...
有不少windows10系统用户反映说碰到这样一个情况,就是电脑提示正在准备windows请勿关闭计算机,碰到这样的问题该怎么解决呢,现在小编就给大家分享一下windows10系统提示正在准备windows请勿关闭计算机的具体第一种方法:1、2、依次…...
2022/11/19 21:17:11 - 配置 已完成 请勿关闭计算机,win7系统关机提示“配置Windows Update已完成30%请勿关闭计算机”的解决方法...
今天和大家分享一下win7系统重装了Win7旗舰版系统后,每次关机的时候桌面上都会显示一个“配置Windows Update的界面,提示请勿关闭计算机”,每次停留好几分钟才能正常关机,导致什么情况引起的呢?出现配置Windows Update…...
2022/11/19 21:17:10 - 电脑桌面一直是清理请关闭计算机,windows7一直卡在清理 请勿关闭计算机-win7清理请勿关机,win7配置更新35%不动...
只能是等着,别无他法。说是卡着如果你看硬盘灯应该在读写。如果从 Win 10 无法正常回滚,只能是考虑备份数据后重装系统了。解决来方案一:管理员运行cmd:net stop WuAuServcd %windir%ren SoftwareDistribution SDoldnet start WuA…...
2022/11/19 21:17:09 - 计算机配置更新不起,电脑提示“配置Windows Update请勿关闭计算机”怎么办?
原标题:电脑提示“配置Windows Update请勿关闭计算机”怎么办?win7系统中在开机与关闭的时候总是显示“配置windows update请勿关闭计算机”相信有不少朋友都曾遇到过一次两次还能忍但经常遇到就叫人感到心烦了遇到这种问题怎么办呢?一般的方…...
2022/11/19 21:17:08 - 计算机正在配置无法关机,关机提示 windows7 正在配置windows 请勿关闭计算机 ,然后等了一晚上也没有关掉。现在电脑无法正常关机...
关机提示 windows7 正在配置windows 请勿关闭计算机 ,然后等了一晚上也没有关掉。现在电脑无法正常关机以下文字资料是由(历史新知网www.lishixinzhi.com)小编为大家搜集整理后发布的内容,让我们赶快一起来看一下吧!关机提示 windows7 正在配…...
2022/11/19 21:17:05 - 钉钉提示请勿通过开发者调试模式_钉钉请勿通过开发者调试模式是真的吗好不好用...
钉钉请勿通过开发者调试模式是真的吗好不好用 更新时间:2020-04-20 22:24:19 浏览次数:729次 区域: 南阳 > 卧龙 列举网提醒您:为保障您的权益,请不要提前支付任何费用! 虚拟位置外设器!!轨迹模拟&虚拟位置外设神器 专业用于:钉钉,外勤365,红圈通,企业微信和…...
2022/11/19 21:17:05 - 配置失败还原请勿关闭计算机怎么办,win7系统出现“配置windows update失败 还原更改 请勿关闭计算机”,长时间没反应,无法进入系统的解决方案...
前几天班里有位学生电脑(windows 7系统)出问题了,具体表现是开机时一直停留在“配置windows update失败 还原更改 请勿关闭计算机”这个界面,长时间没反应,无法进入系统。这个问题原来帮其他同学也解决过,网上搜了不少资料&#x…...
2022/11/19 21:17:04 - 一个电脑无法关闭计算机你应该怎么办,电脑显示“清理请勿关闭计算机”怎么办?...
本文为你提供了3个有效解决电脑显示“清理请勿关闭计算机”问题的方法,并在最后教给你1种保护系统安全的好方法,一起来看看!电脑出现“清理请勿关闭计算机”在Windows 7(SP1)和Windows Server 2008 R2 SP1中,添加了1个新功能在“磁…...
2022/11/19 21:17:03 - 请勿关闭计算机还原更改要多久,电脑显示:配置windows更新失败,正在还原更改,请勿关闭计算机怎么办...
许多用户在长期不使用电脑的时候,开启电脑发现电脑显示:配置windows更新失败,正在还原更改,请勿关闭计算机。。.这要怎么办呢?下面小编就带着大家一起看看吧!如果能够正常进入系统,建议您暂时移…...
2022/11/19 21:17:02 - 还原更改请勿关闭计算机 要多久,配置windows update失败 还原更改 请勿关闭计算机,电脑开机后一直显示以...
配置windows update失败 还原更改 请勿关闭计算机,电脑开机后一直显示以以下文字资料是由(历史新知网www.lishixinzhi.com)小编为大家搜集整理后发布的内容,让我们赶快一起来看一下吧!配置windows update失败 还原更改 请勿关闭计算机&#x…...
2022/11/19 21:17:01 - 电脑配置中请勿关闭计算机怎么办,准备配置windows请勿关闭计算机一直显示怎么办【图解】...
不知道大家有没有遇到过这样的一个问题,就是我们的win7系统在关机的时候,总是喜欢显示“准备配置windows,请勿关机”这样的一个页面,没有什么大碍,但是如果一直等着的话就要两个小时甚至更久都关不了机,非常…...
2022/11/19 21:17:00 - 正在准备配置请勿关闭计算机,正在准备配置windows请勿关闭计算机时间长了解决教程...
当电脑出现正在准备配置windows请勿关闭计算机时,一般是您正对windows进行升级,但是这个要是长时间没有反应,我们不能再傻等下去了。可能是电脑出了别的问题了,来看看教程的说法。正在准备配置windows请勿关闭计算机时间长了方法一…...
2022/11/19 21:16:59 - 配置失败还原请勿关闭计算机,配置Windows Update失败,还原更改请勿关闭计算机...
我们使用电脑的过程中有时会遇到这种情况,当我们打开电脑之后,发现一直停留在一个界面:“配置Windows Update失败,还原更改请勿关闭计算机”,等了许久还是无法进入系统。如果我们遇到此类问题应该如何解决呢࿰…...
2022/11/19 21:16:58 - 如何在iPhone上关闭“请勿打扰”
Apple’s “Do Not Disturb While Driving” is a potentially lifesaving iPhone feature, but it doesn’t always turn on automatically at the appropriate time. For example, you might be a passenger in a moving car, but your iPhone may think you’re the one dri…...
2022/11/19 21:16:57