发布
loading-left
loading loading loading
loading-right

加载中

个人主页
TA还没有准备介绍自己
TA的源代码 (5)
MetroForWinForm(win8风格模版)
暂无评分
MetroForWinForm(win8风格模版) usingSystem; usingSystem.Drawing; usingSystem.Globalization; usingSystem.Windows.Forms; usingMetroFramework.Forms; namespaceMetroFramework.Demo {   publicpartialclassMainForm:MetroForm   {     publicMainForm()     {       InitializeComponent();       metroStyleManager.Theme=MetroThemeStyle.Default;       metroStyleManager.Style=MetroColorStyle.Teal;     }     privatevoidmetroTileSwitch_Click(objectsender,EventArgse)     {      
jim197911
2016-11-10
3
1
DataGridViewContextMenuSample (DataGridView加入右鍵選單)
暂无评分
DataGridViewContextMenuSample(DataGridView加入右鍵選單) privatevoidDataGridView1_RowContextMenuStripNeeded(objectsender,DataGridViewRowContextMenuStripNeededEventArgse)     {       if(contextMenu==null)       {         contextMenu=newContextMenuStrip();         toolstrip.Text="刪除";         contextMenu.Items.Add(toolstrip);       }       e.ContextMenuStrip=contextMenu;       //dgvData.Rows[e.RowIndex].Selected=true;//選擇該列(使它整列變藍色選取樣子)   
jim197911
2016-08-23
1
1
PassingValueFromToForm 視窗傳值
暂无评分
PassingValueFromToForm視窗傳值 usingSystem; usingSystem.Collections.Generic; usingSystem.ComponentModel; usingSystem.Data; usingSystem.Drawing; usingSystem.Linq; usingSystem.Text; usingSystem.Threading.Tasks; usingSystem.Windows.Forms; namespacePassingValueFromToForm {   //Refer:http://www.codeproject.com/Articles/14122/Passing-Data-Between-Forms   publicpartialclassForm1:Form   {         //ForDelegatesUse     publicdelegatevoiddelPassData(TextBoxtext);     //ForPublicValueUse     publicstaticstringstr;     publicstaticstringstr2;     publicForm1()  &
jim197911
2016-08-23
1
1
ChineseConvert (繁簡轉換 use ChineseConverter.dll)
暂无评分
usingSystem; usingSystem.Collections.Generic; usingSystem.ComponentModel; usingSystem.Data; usingSystem.Drawing; usingSystem.Linq; usingSystem.Text; usingSystem.Windows.Forms; usingMicrosoft.International.Converters.TraditionalChineseToSimplifiedConverter; namespaceChineseConvert {   publicpartialclassFormMain:Form   {     publicFormMain()     {       InitializeComponent();     }     //預先設定來源字串     privatevoidFormMain_Load(objectsender,EventArgse)     {       this.txbSourdeString.Text="資料來源";     }  
jim197911
2016-08-23
0
1
使用TripleDESCryptoServiceProvider類別來對連線資串解密
暂无评分
StringDecrypt(StringstrToDecrypt)     {       //將要解密的字串編碼成Byte       Byte[]inputByteArray=Convert.FromBase64String(strToDecrypt);       using(MemoryStreamobjOutputStream=newMemoryStream())       {         //將字串解密         CryptoStreamobjCryptoStream=newCryptoStream(objOutputStream,             objTripleDES.CreateDecryptor(bytKey,bytIV),              CryptoStreamMode.Write);         objCryptoStream.Write(inputByteArray,0,inputByteArray.Length);
jim197911
2016-06-21
0
1
没有更多了~