老熟女激烈的高潮_日韩一级黄色录像_亚洲1区2区3区视频_精品少妇一区二区三区在线播放_国产欧美日产久久_午夜福利精品导航凹凸

vb.net判斷qq,vbnet c#區別

VB.NET能編寫類似QQ程序的服務端么

可以的,服務器用WIN 2000/NT了,語言只是個工具而已,想實現的目的用所選的工具都能實現,只是實現周期的長短了。vb可以做任何事,比如高級應用,線程等,但要用到API,如果用C/c++就不用API 了,所以工具的選擇還是蠻重要的!

創新互聯建站主要從事做網站、成都網站制作、網頁設計、企業做網站、公司建網站等業務。立足成都服務平南,10年網站建設經驗,價格優惠、服務專業,歡迎來電咨詢建站服務:18980820575

有誰搞過vb.net或c#給QQ好友發信息的?怎樣實現的,能不能說說

using System;

using System.Collections.Generic;

using System.ComponentModel;

using System.Data;

using System.Drawing;

using System.Text;

using System.Windows.Forms;

using System.Security.Cryptography;

using System.Diagnostics;

namespace QQLogin

{

public partial class QQLoginForm : Form

{

public QQLoginForm()

{

InitializeComponent();

}

UserInfo ui;

private void button1_Click(object sender, EventArgs e)

{

//單用戶登陸

if (ui == null)

{

ui = new UserInfo();//如果沒有提取出來對象,就創建一個

}

if (ui != null)

{

ui.Username = this.txtUser.Text.Trim();

ui.Password = this.txtPwd.Text;

ui.Type = this.cboType.Text == "正常" ? "41" : "40";

if (this.ValidateInput())

{//驗證是否輸入完全

if (string.IsNullOrEmpty(ui.Path))

{//判斷是否有QQ路徑,如果沒有就打開對話框來選擇一下

DialogResult dr = this.opfQQ.ShowDialog();

if (dr == DialogResult.OK)

{

ui.Path = opfQQ.FileName;//將選擇的路徑賦值給對象

this.LoginQQ(ui.Username, ui.Password, ui.Type, ui.Path);//登陸QQ

}

}

else

{

this.LoginQQ(ui.Username, ui.Password, ui.Type, ui.Path);

}

}

SerializeHelper.SerializeUserInfo(ui);//每次登陸都序列化保存一次

}

}

private bool ValidateInput()

{//驗證是否輸入完整

if (this.txtUser.Text == "")

{

this.txtUser.Focus();

return false;

}

else if(this.txtPwd.Text=="")

{

this.txtPwd.Focus();

return false;

}

return true;

}

private void LoginQQ(string user,string pwd,string type,string path)

{//登陸QQ的命令,通過CMD命令來執行

Process MyProcess = new Process();

//設定程序名

MyProcess.StartInfo.FileName = "cmd.exe";

//關閉Shell的使用

MyProcess.StartInfo.UseShellExecute = false;

//重定向標準輸入

MyProcess.StartInfo.RedirectStandardInput = true;

//重定向標準輸出

MyProcess.StartInfo.RedirectStandardOutput = true;

//重定向錯誤輸出

MyProcess.StartInfo.RedirectStandardError = true;

//設置不顯示窗口

MyProcess.StartInfo.CreateNoWindow = true;

//執行強制結束命令

MyProcess.Start();

MyProcess.StandardInput.WriteLine(path+" /start QQUIN:"+user+" PWDHASH:" + EncodeHash.pwdHash(pwd) + " /stat:"+type);//直接結束進程ID

MyProcess.StandardInput.WriteLine("Exit");

}

private void btnExit_Click(object sender, EventArgs e)

{

Application.Exit();

}

private void txtUser_KeyPress(object sender, KeyPressEventArgs e)

{

if ((e.KeyChar '0' || e.KeyChar '9')e.KeyChar!=8)

{//只能輸入數字和退格鍵

e.Handled = true;

}

}

private void QQLoginForm_Load(object sender, EventArgs e)

{

LoadInfo();//單用戶獲取

}

private void LoadInfo()

{//單用戶獲取

ui = SerializeHelper.DeserializeUserInfo();//返回獲取后對象

if (ui != null)

{

this.txtUser.Text = ui.Username;//填充文本框

this.txtPwd.Text = ui.Password;//填充密碼框

this.cboType.SelectedIndex = ui.Type == "41" ? 0 : 1;//選擇登陸方式

}

else

{

this.cboType.SelectedIndex = 0;

}

}

private void btnConfig_Click(object sender, EventArgs e)

{

ConfigForm cf = new ConfigForm();

cf.ShowDialog();

LoadInfo();

}

}

}

using System;

using System.Collections.Generic;

using System.ComponentModel;

using System.Data;

using System.Drawing;

using System.Text;

using System.Windows.Forms;

namespace QQLogin

{

public partial class ConfigForm : Form

{

UserInfo ui;

public ConfigForm()

{

InitializeComponent();

}

private void txtPath_Click(object sender, EventArgs e)

{//點擊一次文本框,彈出一次對話框來選擇QQ路徑

DialogResult dr = this.opfQQ.ShowDialog();

if (dr == DialogResult.OK)

{

this.txtPath.Text = opfQQ.FileName;

}

}

private bool ValidateInput()

{//驗證是否輸入完整

if (this.txtUser.Text == "")

{

this.txtUser.Focus();

return false;

}

else if (this.txtPwd.Text == "")

{

this.txtPwd.Focus();

return false;

}

else if (this.txtPath.Text == "")

{

return false;

}

return true;

}

private void btnCancel_Click(object sender, EventArgs e)

{

this.Close();

}

private void ConfigForm_Load(object sender, EventArgs e)

{

LoadInfo();

}

private void btnSave_Click(object sender, EventArgs e)

{

ui = new UserInfo();

ui.Username = this.txtUser.Text.Trim();

ui.Password = this.txtPwd.Text;

ui.Type = this.cboType.Text == "正常" ? "41" : "40";

ui.Path = this.txtPath.Text;

if (this.ValidateInput())

{

SerializeHelper.SerializeUserInfo(ui);

this.Close();

}

}

private void LoadInfo()

{

ui = SerializeHelper.DeserializeUserInfo();

if (ui != null)

{

this.txtUser.Text = ui.Username;

this.txtPwd.Text = ui.Password;

this.cboType.SelectedIndex = ui.Type == "41" ? 0 : 1;

this.txtPath.Text = ui.Path;

}

else

{

this.cboType.SelectedIndex = 0;

}

}

}

}

求大神指點vb.net怎么獲取指定進程的狀態

Process.GetProcessesByName("進程名")‘不帶擴展名

找不到 就是沒有在運行,但不知道能不能判斷已暫停狀態。

用VB.NET編QQ登陸界面要用到哪些控件

你好:

Button+Label+ListBox等等啦

很多的啦~VB 其實也是可視化界面 所見即所得的一個軟件。你QQ上面有幾個控件再去VB工具箱里找 都有的!呵呵!


文章題目:vb.net判斷qq,vbnet c#區別
標題網址:http://www.xueling.net.cn/article/hccosd.html

其他資訊

在線咨詢
服務熱線
服務熱線:028-86922220
TOP
主站蜘蛛池模板: 偷偷操不一样久久 | 日韩欧美中文字幕在线观看 | 人人爽人人爽av | 国产大片在线免费观看 | 久久久久国产精品熟女影院 | 成人午夜一区 | 一级毛片播放 | 亚洲欧美中日韩 | 91视频免费在线观看 | 国产下面一进一出好爽视频 | 99久久国产综合精品女乱人伦 | 亚洲一区美女 | 久久久夜色精品亚洲a | 午夜免费大片 | 操女人逼小说 | 极品少妇被猛的白浆直喷白浆 | 欧洲熟妇色xxxx欧美老妇性 | 亚洲日本乱码在线观看 | 四虎影视永久在线观看 | 国产在线一区二区视频 | 国产性生活毛片 | 久久免费精品国自产拍网站 | 亚洲精品国产品国语原创 | 观看av| 久久毛片网站 | 日韩毛片一区二区三区 | 日日操日日插 | 99久久精品视频免费 | 国产视频一区二区三区在线 | 日本高清不卡一区 | 超碰国产欧美人人 | 狼友av永久网站免费观看 | 国产精品偷伦小说 | 2020亚洲午夜无码天堂 | 国产成人欧美日本在线观看 | 高清亚洲日韩东京热Av | 国产一区免费在线 | 国产国语一级A毛片高清视频 | 成人亚洲一区二区三区在线 | 免费观看黄色12片一级视频 | 北条麻妃在线一区二区免费播放 |