自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(12)
  • 收藏
  • 关注

转载 好用的PasswordTextBox.

using System;using System.Collections.Generic;using System.Globalization;using System.Linq;using System.Text;using System.Threading.Tasks;using System.Windows.Forms;namespace _0...

2015-06-04 14:32:00 139

转载 可以修改Autocomplete高度和宽度的TextBox.(ComboBox也试用)

Imports System.ComponentModelImports System.Runtime.InteropServicesImports System.TextPublic Class TextBoxEx Inherits TextBox Private acDropDownHeight As Integer = 106 Pr...

2015-05-08 18:17:00 214

转载 Show WER and DMP file information

Show WERhttps://social.msdn.microsoft.com/Forums/vstudio/en-US/d9bca249-aa7e-43fe-9d1f-eb45d19db344/showing-dmp-file-information-in-my-application?forum=vbgeneralShow DMPhttps://social.msdn...

2015-04-26 17:39:00 145

转载 在webBrowser中触发html页面中的javaScript.

实例的功能是把一个图片加到html的img tag中。You can encode the image in base64. For example<img src="data:image/gif;base64,MyImageDataEncodedInBase64=" alt="My Image data in base 64" />Here is a f...

2015-04-14 15:50:00 195

转载 Trigger in sql server

新建一个Trigger, 当使用update语句更新时,即使不更新Age字段,Age也会自动变为当前时间。CREATE TRIGGER tgr_modstampON ssAFTER UPDATE AS UPDATE ss SET Age = GETDATE() WHERE ID IN (SELECT DISTINCT ID FROM Inserted)...

2015-04-14 15:11:00 138

转载 黑客来了。。。键盘钩子,听起来很高端。

首先是这个公共的类:globalKeyboardHook.csusing System;using System.Collections.Generic;using System.Text;using System.Runtime.InteropServices;using System.Windows.Forms;namespace Utilities ...

2015-04-13 15:22:00 111

转载 Send email

Option Strict OnImports System.Net.Mail ' Add ref Assemblies, Framework, System.Net' Link for getting email settings. Search for other mail server settings if necessary at link.' http...

2015-04-02 15:33:00 123

转载 (VB.net)自定义TableLayoutPanel使它能够在运行时用鼠标改变行高和列宽。

喜欢看C#的童鞋,这里有个工具,你们可以自己转换:http://converter.telerik.com/想达到这个效果,首先新建一个新的项目。在项目名字上面右击,新增一个类,类名为:TableLayoutPanelEx.vb。 然后只要复制下面的代码到类中即可。Public Class TableLayoutPanelEx Inherits TableLayou...

2015-03-30 17:27:00 607

转载 (C#) Format the cell of DataGridView based on the TextBox.Text

private void textBox1_TextChanged(object sender, EventArgs e) { DataGridViewCellStyle style = new DataGridViewCellStyle(); style.Font = new Font(dataGridView1...

2015-03-27 17:36:00 81

转载 可以用来测显示屏的inch数。

foreach (Screen scr_loopVariable in Screen.AllScreens){Screen scr = scr_loopVariable;double height = scr.Bounds.Height / this.CreateGraphics().DpiY;double size = Math.Sqrt((widt...

2015-03-26 11:03:00 96

转载 测试网络连接正不正常

Public Shared Function CheckForInternetConnection() As Boolean Try Using client = New WebClient() Using stream = client.OpenRead("https://msdn.microsoft.com/")...

2015-03-26 11:02:00 129

转载 愚人节快到了,你懂的(VB.Net)

只需要一个Form,将背景色调成黑色即可,另加三个Timer。代码如下:Option Strict OnImports System.IOImports System.Drawing.Drawing2DPublic Class Form1 Dim WallPapersImages As New List(Of Image) Di...

2015-03-26 10:25:00 166

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除