
C#的学习过程
shofe的菜鸟人生
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
C#学习1
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; namespace _11 {原创 2013-12-20 11:32:24 · 478 阅读 · 0 评论 -
C#学习2
有边框的窗体很好实现移动。无边框的窗体的移动比较困难。。下面的代码将实现无边窗体的移动。 1.新建一个窗体Form1; 2.将Form1的 FormBorderStyle 属性设置为 None,此时窗体表现为无边状态。 3.在窗体的MouseDown,MouseMove, MouseUp的事件中下编写如下的代码 就行了。 using System; using System.Coll原创 2013-12-21 23:06:46 · 563 阅读 · 0 评论 -
C#学习3
使用ColorDialog调用Windows颜色对话框 用ColorDialog这个控件可以在窗体上改变窗体或者控件的颜色。 1.新建一个Form窗体. 2.添加一个Button按钮,还有添加ColorDialog控件。 using System; using System.Collections.Generic; using System.ComponentModel;原创 2013-12-22 19:44:43 · 535 阅读 · 0 评论 -
C#学习4
实现一些控件向上,下收缩的功能 1.新建窗体。 2.在窗体中添加两个panel控件作为其他控件的容器,其Dock值设为left和right. 3.在左panel容器中添加4个PictureBox控件,分别插入上下的箭头图片。在添加两个Panel作为label的容器。 以下是具体代码 using System; using System.Collections.Generic; u原创 2013-12-22 22:13:57 · 617 阅读 · 0 评论 -
C#学习5
根据鼠标的状态设置动态按钮 想实现一个按钮鼠标放上去之后,就会改变按钮字体的效果。 1.新建一个窗口Form1; 2.添加Button控件。 然后在其MouseMove,MouseLeave写代码就行了。 using System; using System.Collections.Generic; using System.ComponentModel; using Syste原创 2013-12-25 22:38:38 · 536 阅读 · 0 评论 -
C#学习6(动态更新状态栏信息)
实现状态栏的上述信息。 1.新建一个Form1窗体。 2.添加菜单栏menuStrip,工具栏toolStrip, 状态栏,statusStrip. 3.在statusStrip中添加toolStripStatusLable1-4; 4,.添加timer控件,设置Enabled的属性为true; 然后在timer控件中编写如下代码: private void timer1_Tic原创 2014-01-20 11:31:35 · 2001 阅读 · 1 评论