窗体拖动事件
摘要:窗体拖动不闪 private void Panel_MouseDown(object sender, MouseEventArgs e) { mousePoint = new Point(e.X,e.Y); } private void Panel_MouseMove(object sender, MouseEventArgs e) { if (e.Button == MouseButtons.Left) { //this.SetBounds(...
阅读全文
posted @
2013-12-22 22:58
lingfeng95
阅读(336)
推荐(0) 编辑
读写文件
摘要:using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.IO;namespace FileStreamRead{ class StreamReadDemo01 { public StreamReadDemo01() { } /// /// 一个字节一个字节的读 /// public void ReadFile() { FileStream f...
阅读全文
posted @
2013-12-15 10:24
lingfeng95
阅读(253)
推荐(0) 编辑
数组的用法
摘要:int[] a = new int[3]; a[0] = 5; int[] a1 = { 1, 2, 3 }; int[] a2 = new int[] { 1, 2 }; int[] a3 = new int[3] { 1, 2,3 }; int[] a5; a5=new int[5]; //多维数组,数组两个数不能为空 int [,] b=new int[3,4]; int[,] b4; ...
阅读全文
posted @
2013-12-14 18:46
lingfeng95
阅读(262)
推荐(0) 编辑
虚拟局域网VLAN
摘要:6.5.1配置路由器广域网端口的PPP封装(1)配置路由器A:Router>enableRouter#configRouter_config#hostname Router-ARouter-A_config#interface s0/2Router-A_config_s0/2#ip address 192.168.1.1 255.255.255.0Router-A_config_s0/2#physical-layer speed 64000Router-A_config_s0/2#encapsulation pppRouter-A_config_s0/2#no shutdownRoute
阅读全文
posted @
2013-12-08 10:16
lingfeng95
阅读(331)
推荐(0) 编辑
交换机基本配置
摘要:config 命令:config [terminal] 功能:从特权用户配置模式进入到全局配置模式。参数:[terminal]表示进行终端配置。命令模式:特权用户配置模式举例:Switch#configenable 命令:enable 功能:用户使用enable 命令,从普通用户配置模式进入特权用户配置模式。命令模式:一般用户配置模式使用指南:为了防止非特权用户的非法访问,在从普通用户配置模式进入到特权用户配置模式时,要进行用户身份验证,即需要输入特权用户口令,输入正确的口令,则进入特权用户配置模式,否则保持普通用户配置模式不变。特权用户口令的设置为全局配置模式下的命令enable passw
阅读全文
posted @
2013-12-08 09:39
lingfeng95
阅读(802)
推荐(0) 编辑