- 博客(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
219
转载 可以修改Autocomplete高度和宽度的TextBox.(ComboBox也试用)
Imports System.ComponentModel Imports System.Runtime.InteropServices Imports System.Text Public Class TextBoxEx Inherits TextBox Private acDropDownHeight As Integer = 106 Pr...
2015-05-08 18:17:00
299
转载 Show WER and DMP file information
Show WER https://social.msdn.microsoft.com/Forums/vstudio/en-US/d9bca249-aa7e-43fe-9d1f-eb45d19db344/showing-dmp-file-information-in-my-application?forum=vbgeneral Show DMP https://social.msdn...
2015-04-26 17:39:00
207
转载 在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
257
转载 Trigger in sql server
新建一个Trigger, 当使用update语句更新时,即使不更新Age字段,Age也会自动变为当前时间。 CREATE TRIGGER tgr_modstamp ON ss AFTER UPDATE AS UPDATE ss SET Age = GETDATE() WHERE ID IN (SELECT DISTINCT ID FROM Inserted) ...
2015-04-14 15:11:00
210
转载 黑客来了。。。键盘钩子,听起来很高端。
首先是这个公共的类:globalKeyboardHook.cs using System; using System.Collections.Generic; using System.Text; using System.Runtime.InteropServices; using System.Windows.Forms; namespace Utilities ...
2015-04-13 15:22:00
184
转载 Send email
Option Strict On Imports 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
164
转载 (VB.net)自定义TableLayoutPanel使它能够在运行时用鼠标改变行高和列宽。
喜欢看C#的童鞋,这里有个工具,你们可以自己转换:http://converter.telerik.com/ 想达到这个效果,首先新建一个新的项目。在项目名字上面右击,新增一个类,类名为:TableLayoutPanelEx.vb。 然后只要复制下面的代码到类中即可。 Public Class TableLayoutPanelEx Inherits TableLayou...
2015-03-30 17:27:00
749
转载 (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
128
转载 可以用来测显示屏的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
149
转载 测试网络连接正不正常
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
170
转载 愚人节快到了,你懂的(VB.Net)
只需要一个Form,将背景色调成黑色即可,另加三个Timer。 代码如下: Option Strict On Imports System.IO Imports System.Drawing.Drawing2D Public Class Form1 Dim WallPapersImages As New List(Of Image) Di...
2015-03-26 10:25:00
252
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅