巫妖天下 - LichSky

关于作者:专注于微软平台项目架构、管理和企业解决方案。熟悉各类技术手段、架构设计、开发和项目管理。现主要从事项目开发、架构、管理工作。

C# 调用其他按钮事件

[CODE_LITE]
private void button1_Click(object sender, EventArgs e)
{
MessageBox.Show("fuck you");
}

private void button2_Click(object sender, EventArgs e)
{
button1_Click(this, e);
}
...

Flex Post 数据 到 asp

Felx 文档
[CODE_LITE]



showBusyCursor="true"
method="POST" id="loginService"
...

VB 获取计算机名

[CODE_LITE]
Private Declare Function GetComputerName Lib "kernel32"
Alias "GetComputerNameA" (ByVal lpBuffer As String,
nSize As Long) As Long

Public Function MachineName() As String
Dim sBuffer As String * 255
If GetComputerName(sBuffer, 255&) <> 0 Then
...

C# Base64 文件/文本 加解码

[CODE_LITE]
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace shapBse64
{

///
/// 有关base64编码算法的相关操作
///By 自由奔腾(wgscd)
///

public class SBase64
{
public SBase64()
...

VB文本的读写

[CODE_LITE]
'=======读取文本文件=========
Function readTxt(fileName)

Dim strSS As String: strSS = ""
Open ("C:\" & fileName) For Binary As #1
strSS = Input(LOF(1), #1)
Close #1
readTxt = strSS

End Function


'=======覆盖式写入===========
...

VB 检查某进程是否在运行

[CODE_LITE]
Private Declare Function ProcessFirst Lib "kernel32" Alias "Process32First" (ByVal hSnapShot As Long, uProcess As PROCESSENTRY32) As Long
Private Declare Function ProcessNext Lib "kernel32" Alias "Process32Next" (ByVal hSnapShot As Long, uProcess As PROCESSENTRY32) As Long
...

VB停止某一程序运行

[CODE_LITE]
'干掉某个程序
Private Sub killCX()
Dim oWMI, oProcs, oProc, strWQL
strWQL = "SELECT * FROM Win32_Process WHERE Name=""simmaster.exe""" '填上程序名
Set oWMI = GetObject("winmgmts://

C# GET POST数据

C# GET POST数据

C#字符串处理汇总

C#字符串处理汇总

VB常用

VB-常用代码
分页:[«]1[2][»]

Powered By Z-Blog 1.8 Walle Build 100427

Copyright 巫妖天下(lichsky@163.com) All Rights Reserved.