导航:首页 > 文档加密 > windowsforms程序设计pdf

windowsforms程序设计pdf

发布时间:2023-05-30 12:28:39

1. windows程序设计 王艳平 pdf

有个FTP里面有:

61.132.59.166
用户名:csdn
密码:csdn
路径是:计算机类/王艳平 Windows程序设侍败计 电子书/
用FLASHFXP打开,可以看到察谈岁文件目录,注意,速度有点慢,但绝对能下载。

在第计算机内/C++/王艳平 Windows程败睁序设计 电子书

2. windows 游戏编程大师技巧第二版 PDF

http://www.verycd.com/topics/2780526/你打开这个网站 可以用迅雷下载
你看看这个
本书是着名游戏程序设计类书籍作者André LaMothe的两卷本《Windows游戏编程大师技巧》中的第一卷的第二版。和作者撰写的其他畅销书一样,在书中随处可见许多有趣但又有一定难度的源程序。作者循循善诱地从程序设计的角度介绍了在Windows环境下进行游戏开发所需的全部知识,包括Win32编程以及DirectX中所有主要组件(包括DirectDraw、DirectSound、DirectInput和DirectMusic)。书中还用单独的章节详细讲授了2D图形学和光栅化技术、游戏算法、多线程编程、文本游戏和解析、人工智能(包括模糊逻辑、神经网络和遗传算法)、物理建模(完全碰撞反应、动量传递和正反向运动学)及实时模拟等游戏程序开发中的关键技术。光盘上带有两套完整的在线电子版书籍,内容涉及General 3D图形和算法以及Direct3D直接模式;此外,还有大量其他特约作者所着的关于游戏编程内容的文章。
光盘内容:
·本书中所有程序的代码,还包括一个新的16位引擎
·关于Direct3D和General 3D的文章和在线书籍
·通用游戏编程工具以及3D引擎的评定版本
·免费素材
·完整的Microsoft DirectX SDK
·Microsoft Visual C++入门版

300多m的是本书带的光盘内容。网上只找到第一版书的中文pdf,第二版是英文chm格式

3. C# WinForms

花了几分钟写的,没有进行饥郑代码逗搜优化,不过你说的功能都实现了。`
请先在数据库中添加一个名字为test的数据库,一个test的表
表中的字段为山肢历:id,name,address
数据库的用户名为sa,密码为sa
Form1.cs的代码:

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.Data.SqlClient;
namespace WindowsApplication4
{

public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}

private void 数据增删改查_Load(object sender, EventArgs e)
{
//this.dataGridView1.SelectionMode = DataGridViewSelectionMode.FullColumnSelect;
//this.textBox1.Text = "Provider=SQLOLEDB.1;Password=sa;Persist Security Info=True;User ID=sa;Initial Catalog=test;Data Source=.";
this.textBox1.Text = "Server=.;pwd=sa;uid=sa;database=test";

}

private void button5_Click(object sender, EventArgs e)
{
SqlConnection con = new SqlConnection(this.textBox1.Text);
con.Open();
SqlDataAdapter sqlda = new SqlDataAdapter("select * from test", con);
DataTable dt = new DataTable();
sqlda.Fill(dt);

this.dataGridView1.DataSource = dt;

}

private void dataGridView1_CellEndEdit(object sender, DataGridViewCellEventArgs e)
{
//if (MessageBox.Show("你是否要更新数据?", "x", MessageBoxButtons.OKCancel) == DialogResult.OK)
//{
// MessageBox.Show("OK");
// SqlConnection con = new SqlConnection(this.textBox1.Text);
// con.Open();
// SqlCommand com = new SqlCommand("update test set address = , con);
// com.ExecuteNonQuery();
// //SqlDataReader dr = com.ExecuteReader();
//}
//else
//{
// MessageBox.Show("NO");
//}
}

private void dataGridView1_SelectionChanged(object sender, EventArgs e)
{

//MessageBox.Show("xxx");
}

private void dataGridView1_UserAddedRow(object sender, DataGridViewRowEventArgs e)
{
//MessageBox.Show("xxx");
}

private void dataGridView1_CellClick(object sender, DataGridViewCellEventArgs e)
{
if (this.dataGridView1.SelectedRows.Count != 0)
{
this.textBox7.Text = this.dataGridView1.SelectedRows[0].Cells["id"].Value.ToString();
this.textBox8.Text = this.dataGridView1.SelectedRows[0].Cells["name"].Value.ToString();
this.textBox9.Text = this.dataGridView1.SelectedRows[0].Cells["address"].Value.ToString();
}
}

private void button3_Click(object sender, EventArgs e)
{
if (MessageBox.Show("你是否要更新数据?", "x", MessageBoxButtons.OKCancel) == DialogResult.OK)
{
SqlConnection con = new SqlConnection(this.textBox1.Text);
con.Open();
SqlCommand com = new SqlCommand("update test set name= '" + this.textBox8.Text + "' ,address= '" + this.textBox9.Text+"' where id="+this.textBox7.Text,con);
com.ExecuteNonQuery();

MessageBox.Show("更新成功!");
button5_Click(null, null);
}
}

private void dataGridView1_CellContentClick(object sender, DataGridViewCellEventArgs e)
{

}

private void button2_Click(object sender, EventArgs e)
{
if (MessageBox.Show("你是否要删除数据?", "x", MessageBoxButtons.OKCancel) == DialogResult.OK)
{
SqlConnection con = new SqlConnection(this.textBox1.Text);
con.Open();
SqlCommand com = new SqlCommand("delete from test where id='"+textBox7.Text+"'",con);
com.ExecuteNonQuery();

MessageBox.Show("删除成功!");
button5_Click(null, null);
}

}

private void button1_Click(object sender, EventArgs e)
{
if (this.textBox3.Text != null && this.textBox4.Text != null && this.textBox5.Text != null)
{
SqlConnection con = new SqlConnection(this.textBox1.Text);
con.Open();
SqlCommand com = new SqlCommand("insert test (id,name,address) values('"+this.textBox3.Text+"','"+this.textBox4.Text+"','"+this.textBox5.Text+"')",con);
com.ExecuteNonQuery();

MessageBox.Show("添加成功!");
button5_Click(null, null);
}
else
{
MessageBox.Show("请完整填写信息!");
}
}

private void button4_Click(object sender, EventArgs e)
{
if (this.radioButton1.Checked || this.radioButton2.Checked)
{
if (this.textBox2.Text != null)
{
if (this.radioButton1.Checked)
{
SqlConnection con = new SqlConnection(this.textBox1.Text);
con.Open();
SqlDataAdapter sqlda = new SqlDataAdapter("select * from test where id='"+this.textBox2.Text+"'", con);
DataTable dt = new DataTable();
sqlda.Fill(dt);

this.dataGridView1.DataSource = dt;
}
else
{
SqlConnection con = new SqlConnection(this.textBox1.Text);
con.Open();
SqlDataAdapter sqlda = new SqlDataAdapter("select * from test where name='" + this.textBox2.Text + "'", con);
DataTable dt = new DataTable();
sqlda.Fill(dt);

this.dataGridView1.DataSource = dt;

}
}
else
{
MessageBox.Show("请输入查询内容!");
this.textBox2.Focus();
}

}
else
{
MessageBox.Show("请选择查询方式!");
this.radioButton1.Checked = true;
}
}
}
}

Form1.Designer.cs的代码:
namespace WindowsApplication4
{
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.button1 = new System.Windows.Forms.Button();
this.button2 = new System.Windows.Forms.Button();
this.button4 = new System.Windows.Forms.Button();
this.textBox1 = new System.Windows.Forms.TextBox();
this.label1 = new System.Windows.Forms.Label();
this.button5 = new System.Windows.Forms.Button();
this.textBox2 = new System.Windows.Forms.TextBox();
this.radioButton1 = new System.Windows.Forms.RadioButton();
this.radioButton2 = new System.Windows.Forms.RadioButton();
this.textBox3 = new System.Windows.Forms.TextBox();
this.textBox4 = new System.Windows.Forms.TextBox();
this.textBox5 = new System.Windows.Forms.TextBox();
this.dataGridView1 = new System.Windows.Forms.DataGridView();
this.id = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.name = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.address = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.textBox7 = new System.Windows.Forms.TextBox();
this.textBox8 = new System.Windows.Forms.TextBox();
this.textBox9 = new System.Windows.Forms.TextBox();
this.button3 = new System.Windows.Forms.Button();
((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit();
this.SuspendLayout();
//
// button1
//
this.button1.Location = new System.Drawing.Point(460, 301);
this.button1.Name = "button1";
this.button1.Size = new System.Drawing.Size(75, 23);
this.button1.TabIndex = 0;
this.button1.Text = "添加";
this.button1.UseVisualStyleBackColor = true;
this.button1.Click += new System.EventHandler(this.button1_Click);
//
// button2
//
this.button2.Location = new System.Drawing.Point(460, 359);
this.button2.Name = "button2";
this.button2.Size = new System.Drawing.Size(75, 23);
this.button2.TabIndex = 1;
this.button2.Text = "删除";
this.button2.UseVisualStyleBackColor = true;
this.button2.Click += new System.EventHandler(this.button2_Click);
//
// button4
//
this.button4.Location = new System.Drawing.Point(460, 272);
this.button4.Name = "button4";
this.button4.Size = new System.Drawing.Size(75, 23);
this.button4.TabIndex = 3;
this.button4.Text = "查找";
this.button4.UseVisualStyleBackColor = true;
this.button4.Click += new System.EventHandler(this.button4_Click);
//
// textBox1
//
this.textBox1.Location = new System.Drawing.Point(83, 12);
this.textBox1.Name = "textBox1";
this.textBox1.Size = new System.Drawing.Size(371, 21);
this.textBox1.TabIndex = 4;
//
// label1
//
this.label1.AutoSize = true;
this.label1.Location = new System.Drawing.Point(12, 15);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(65, 12);
this.label1.TabIndex = 5;
this.label1.Text = "连接字符串";
//
// button5
//
this.button5.Location = new System.Drawing.Point(460, 12);
this.button5.Name = "button5";
this.button5.Size = new System.Drawing.Size(75, 23);
this.button5.TabIndex = 6;
this.button5.Text = "连接数据库";
this.button5.UseVisualStyleBackColor = true;
this.button5.Click += new System.EventHandler(this.button5_Click);
//
// textBox2
//
this.textBox2.Location = new System.Drawing.Point(14, 272);
this.textBox2.Name = "textBox2";
this.textBox2.Size = new System.Drawing.Size(184, 21);
this.textBox2.TabIndex = 8;
//
// radioButton1
//
this.radioButton1.AutoSize = true;
this.radioButton1.Location = new System.Drawing.Point(234, 276);
this.radioButton1.Name = "radioButton1";
this.radioButton1.Size = new System.Drawing.Size(71, 16);
this.radioButton1.TabIndex = 9;
this.radioButton1.TabStop = true;
this.radioButton1.Text = "按ID查找";
this.radioButton1.UseVisualStyleBackColor = true;
//
// radioButton2
//
this.radioButton2.AutoSize = true;
this.radioButton2.Location = new System.Drawing.Point(336, 278);
this.radioButton2.Name = "radioButton2";
this.radioButton2.Size = new System.Drawing.Size(83, 16);
this.radioButton2.TabIndex = 10;
this.radioButton2.TabStop = true;
this.radioButton2.Text = "按Name查找";
this.radioButton2.UseVisualStyleBackColor = true;
//
// textBox3
//
this.textBox3.Location = new System.Drawing.Point(14, 302);
this.textBox3.Name = "textBox3";
this.textBox3.Size = new System.Drawing.Size(98, 21);
this.textBox3.TabIndex = 11;
//
// textBox4
//
this.textBox4.Location = new System.Drawing.Point(166, 303);
this.textBox4.Name = "textBox4";
this.textBox4.Size = new System.Drawing.Size(100, 21);
this.textBox4.TabIndex = 12;
//
// textBox5
//
this.textBox5.Location = new System.Drawing.Point(331, 303);
this.textBox5.Name = "textBox5";
this.textBox5.Size = new System.Drawing.Size(100, 21);
this.textBox5.TabIndex = 13;
//
// dataGridView1
//
this.dataGridView1.ColumnHeadersHeightSizeMode = System.Windows.Forms..AutoSize;
this.dataGridView1.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
this.id,
this.name,
this.address});
this.dataGridView1.Location = new System.Drawing.Point(14, 39);
this.dataGridView1.Name = "dataGridView1";
this.dataGridView1.RowTemplate.Height = 23;
this.dataGridView1.Size = new System.Drawing.Size(440, 227);
this.dataGridView1.TabIndex = 18;
this.dataGridView1.UserAddedRow += new System.Windows.Forms.DataGridViewRowEventHandler(this.dataGridView1_UserAddedRow);
this.dataGridView1.CellClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dataGridView1_CellClick);
this.dataGridView1.CellEndEdit += new System.Windows.Forms.DataGridViewCellEventHandler(this.dataGridView1_CellEndEdit);
this.dataGridView1.SelectionChanged += new System.EventHandler(this.dataGridView1_SelectionChanged);
this.dataGridView1.CellContentClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dataGridView1_CellContentClick);
//
// id
//
this.id.DataPropertyName = "id";
this.id.HeaderText = "id";
this.id.Name = "id";
this.id.ReadOnly = true;
//
// name
//
this.name.DataPropertyName = "name";
this.name.HeaderText = "name";
this.name.Name = "name";
this.name.ReadOnly = true;
//
// address
//
this.address.DataPropertyName = "address";
this.address.HeaderText = "address";
this.address.Name = "address";
//
// textBox7
//
this.textBox7.Location = new System.Drawing.Point(12, 342);
this.textBox7.Name = "textBox7";
this.textBox7.Size = new System.Drawing.Size(100, 21);
this.textBox7.TabIndex = 15;
//
// textBox8
//
this.textBox8.Location = new System.Drawing.Point(166, 342);
this.textBox8.Name = "textBox8";
this.textBox8.Size = new System.Drawing.Size(100, 21);
this.textBox8.TabIndex = 16;
//
// textBox9
//
this.textBox9.Location = new System.Drawing.Point(331, 342);
this.textBox9.Name = "textBox9";
this.textBox9.Size = new System.Drawing.Size(100, 21);
this.textBox9.TabIndex = 17;
//
// button3
//
this.button3.Location = new System.Drawing.Point(460, 330);
this.button3.Name = "button3";
this.button3.Size = new System.Drawing.Size(75, 23);
this.button3.TabIndex = 2;
this.button3.Text = "修改";
this.button3.UseVisualStyleBackColor = true;
this.button3.Click += new System.EventHandler(this.button3_Click);
//
// Form1
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(553, 387);
this.Controls.Add(this.dataGridView1);
this.Controls.Add(this.textBox9);
this.Controls.Add(this.textBox8);
this.Controls.Add(this.textBox7);
this.Controls.Add(this.textBox5);
this.Controls.Add(this.textBox4);
this.Controls.Add(this.textBox3);
this.Controls.Add(this.radioButton2);
this.Controls.Add(this.radioButton1);
this.Controls.Add(this.textBox2);
this.Controls.Add(this.button5);
this.Controls.Add(this.label1);
this.Controls.Add(this.textBox1);
this.Controls.Add(this.button4);
this.Controls.Add(this.button3);
this.Controls.Add(this.button2);
this.Controls.Add(this.button1);
this.Name = "Form1";
this.Text = "数据增删改查";
this.Load += new System.EventHandler(this.数据增删改查_Load);
((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).EndInit();
this.ResumeLayout(false);
this.PerformLayout();

}

#endregion

private System.Windows.Forms.Button button1;
private System.Windows.Forms.Button button2;
private System.Windows.Forms.Button button4;
private System.Windows.Forms.TextBox textBox1;
private System.Windows.Forms.Label label1;
private System.Windows.Forms.Button button5;
private System.Windows.Forms.TextBox textBox2;
private System.Windows.Forms.RadioButton radioButton1;
private System.Windows.Forms.RadioButton radioButton2;
private System.Windows.Forms.TextBox textBox3;
private System.Windows.Forms.TextBox textBox4;
private System.Windows.Forms.TextBox textBox5;
private System.Windows.Forms.DataGridView dataGridView1;
private System.Windows.Forms.DataGridViewTextBoxColumn id;
private System.Windows.Forms.DataGridViewTextBoxColumn name;
private System.Windows.Forms.DataGridViewTextBoxColumn address;
private System.Windows.Forms.TextBox textBox7;
private System.Windows.Forms.TextBox textBox8;
private System.Windows.Forms.TextBox textBox9;
private System.Windows.Forms.Button button3;
}
}

4. 《Windows核心编程(第5版)微软技术丛书》pdf下载在线阅读,求百度网盘云资源

《Windows核心编程》(Jeffrey Richter)电子书网盘下载免费在线阅读

链接:

密码:xdpk

书名:Windows核心编程

作者:Jeffrey Richter

豆瓣评分:9.2

出版社:人民邮电出版社

出版年份:2008-8

页数:820

内容简介:

【内容简介】

本书是Windows 程序设计领域的名着,涵盖了Windows 的最新版本Vista 以及Windows XP 的最新内容。书中全面深入地介绍了Windows 的各种基本要素,如进程、线程池、虚拟内存、DLL、设备I/O 和SEH 等,并列举了大量应用程序,精辟地分析了要素的使用方法。.

本书适于各层次Windows 编程人员阅读。 ...

【目录信息】

Acknowledgments . xxi

Introction xxiii

64-Bit Windows xxiii

What’s New in the Fifth Edition xxiv

Code Samples and System Requirements xxvi

Support for This Book xxvi

Questions and Comments xxvi

Part I Required Reading

1 Error Handling 3

Defining Your Own Error Codes 7

The ErrorShow Sample Application 7

2 Working with Characters and Strings 11

Character Encodings 12

ANSI and Unicode Character and String Data Types 13

Unicode and ANSI Functions in Windows 15

Unicode and ANSI Functions in the C Run-Time Library 17

Secure String Functions in the C Run-Time Library 18

Introcing the New Secure String Functions 19

How to Get More Control When Performing String Operations 22

<< 查看详细目录

作者简介:

Jeffrey Richter全球享有盛誉的微软技术专家,着名技术咨询和培训公司Wintellect创始人之一,MSDN Magazine杂志特邀编辑。多年来,他担任微软各开发团队顾问,参与了微软的许多关键产品包括各版本Windows、Visual Studio、Microsoft Offce和.NET框架的设计和编程。他撰写了一系列着作,包括本书和《深入理解.NET》(第2版·英文版,人民邮电出版社。2008),都堪称技术图书的典范,影响了一代Windows程序员,并因此荣获微软公司杜区最高技术荣誉“微软软件传奇人物”(Software Legend)称号。

5. C#Windows Forms程序设计,跪求正确答案!!

[DllImport("user32.dll", EntryPoint="SetWindowsHook")]
public static extern int SetWindowsHook (
int nFilterType,
int pfnFilterProc
);
钩手散喊子技掘脊术毕野

6. 《Windows程序设计》epub下载在线阅读,求百度网盘云资源

《Windows程序设计》(佩措尔德)电子书网盘下载免费在线阅读

资源链接:

链接:https://pan..com/s/1RzM_2TB0AvVAL1RRHdFWkA

提取码:ijkd

书名:Windows程序设计

作者:佩措尔德

译者:方敏

豆瓣评分:9.1

出版社:北京大学出版社

出版年份:2010-9

页数:1114

内容简介:

《Windows程序设计(第5版 珍藏版)》是一本经典的Windows编程圣经,曾经伴随着近50万Windows程序员步入编程殿堂,成长为IT时代的技术精英。

作为Windows开发人员的必备参考,涵盖基础知识和中高级主题,全面地介绍了Windows程序设计所涉及的细枝末节,旨在帮助读者从高屋见瓴的角度,建立完整的知识体系,为以后的职业生涯奠定良好的基础。全书共3部分23章。第1~12章着重介绍基础知识,第13~18章的主题为图形,第19~23章涉及更多高级主题。

《Windows程序设计(第5版 珍藏版)》适合任何层次的Windows程序员阅读和参考,是帮助他们梳理和建立Windows知识体系的理想读物。


点击链接进入英文版:

Programming Windows 5th Edition Book/CD Package

作者简介:

Charles Petzold 从1984年开始编写个人计算机程序,从1985年开始编写Micrososft Windows程序。他在《Microsoft Systems Journal》1986年12月号上发表了第一篇关于Windows程序设计的杂志论文。从1986年到1995年,他为《PC Magazine》撰写“Environments”专栏,给读者介绍了Windows和OS/2程序设计的许多方面。

《Windows程序设计》由微软出版社在1988年首次出版,后来被认为是这方面最好的导论性读本。在1994年5月,Petzold作为仅有的七个人之一(并且是唯一的作家)被《Windows Magazine》和Microsoft公司授予Windows Pioneer奖,以表彰他对Microsoft Windows的成功做出的贡献。

在1999年秋天,微软出版社将出版Charles Petzold 面向普通读者的第一本书。暂时命名为《Code: The Hidden Language of Computer Hardware and Software》,这本书专门介绍数字信息的本质以及计算机处理数字信息的方式。

7. 用C#语言编写windows窗体应用程序

控件如图,由左到右,由上到下,分别命名为b1,b2,b3,b4,l1,l2,button1,button2,timer1,timer2

timer1与timer2的Enabled的属性默认为false,Interval默认为1000,

后代代码如下

boolIsopen=false;

intb2Times=0;

intb3Times=0;

intonebreak=0;

privatevoidb1_Click(objectsender,EventArgse)

{

Isopen=true;

if(onebreak==1)

{

timer1.Enabled=true;

}

if(onebreak==2)

{

timer2.Enabled=true;

}

}

privatevoidb2_Click(objectsender,EventArgse)

{

if(onebreak==0)

{

if(Isopen==false)

{

return;

}

b2Times+=1;

if(b2Times>=b3Times)

敏巧{

缺颤l1.BackColor=Color.Red;

l2.BackColor=Color.White;

}

}

}

privatevoidb3_Click(objectsender,EventArgse)

{

if(onebreak==0)

{

if(Isopen==false)

{

return;

}

b3Times+=1;

if(b3Times>=b2Times)

{

l1.BackColor=Color.White;

l2.BackColor=Color.Red;

}

}

}

privatevoidb4_Click(objectsender,EventArgse)

桥扮键{

b3Times=0;

b2Times=0;

Isopen=false;

l1.BackColor=Color.White;

l2.BackColor=Color.White;

timer1.Enabled=false;

timer2.Enabled=false;

}

privatevoidbutton1_Click(objectsender,EventArgse)

{

if(onebreak==1)

{

button1.Text="第一个灯泡坏掉";

onebreak=0;

timer1.Enabled=false;

button2.Enabled=true;

return;

}

onebreak=1;

l2.BackColor=Color.White;

button1.Text="修好它";

button2.Enabled=false;

if(Isopen==false)

{

return;

}

timer2.Enabled=false;

timer1.Enabled=true;

}

privatevoidbutton2_Click(objectsender,EventArgse)

{

if(onebreak==2)

{

button2.Text="第二个灯泡坏掉";

onebreak=0;

timer2.Enabled=false;

button1.Enabled=true;

return;

}

onebreak=2;

l1.BackColor=Color.White;

button2.Text="修好它";

button1.Enabled=false;

if(Isopen==false)

{

return;

}

timer2.Enabled=true;

timer1.Enabled=false;

}

privatevoidtimer1_Tick(objectsender,EventArgse)

{

if(l1.BackColor!=Color.Red)

{

l1.BackColor=Color.Red;

return;

}

if(l1.BackColor!=Color.White)

{

l1.BackColor=Color.White;

return;

}

}

privatevoidtimer2_Tick(objectsender,EventArgse)

{

if(l2.BackColor!=Color.Red)

{

l2.BackColor=Color.Red;

return;

}

if(l2.BackColor!=Color.White)

{

l2.BackColor=Color.White;

return;

}

}

8. 求windows程序设计张铮孙宝山周天立第三版PDF

Ptstr 是定义为 wchar * (即宽字符指针)或 char * 的宏。 Tchar 也是一个宏,定义为 wchar (宽字符)或 char。 C 中的一个(类型)表达式,它是一个强制转换。 Text”也是一个宏,它的功能是,如果你编写一个定义为 unicode 版本的程序,text (“ abc”)前面有一个 l,然后变成 l“ abc” ,它被定义为一个宽字符串。 “宏定义,宽字符,l”“这些概念将在 c 语言入门中提到,如果没有学习基础太差,最好填写 c 语言的基础,否则窗口编程是很难学的

阅读全文

与windowsforms程序设计pdf相关的资料

热点内容
阿里云服务器安装管理 浏览:548
java手机开发教程 浏览:672
我的世界怎么删除服务器数据 浏览:669
linux内存子系统 浏览:970
加密思维币 浏览:689
魅族访客文件夹 浏览:50
添加的文件夹怎么找 浏览:615
程序员涉黄 浏览:699
maven编译resources下的js 浏览:520
ubuntu文件移动命令 浏览:227
安卓i怎么查找苹果手机 浏览:949
云服务器宕机概率 浏览:232
在线买药用什么app知乎 浏览:815
ubuntu解压xz文件 浏览:676
宏杰加密时电脑关机 浏览:390
自己写单片机编译器 浏览:600
单片机按键闪烁 浏览:382
为什么icloud总是显连接服务器失败 浏览:890
如何设置域控服务器 浏览:740
想在上海租房子什么app好 浏览:186