目前分類:C#-Window Form (73)

瀏覽方式: 標題列表 簡短摘要

我們看到的WinForm總是方形的

但可以改成圓形或是多邊形

(在設計畫面看不到,一定要動態更改)

welkingunther 發表在 痞客邦 留言(0) 人氣()

按下IE的網際網路選項,瀏覽歷程紀錄的設定按下去

檢查儲存的畫面是否有較新的版本裡面有這四個

每次啟動 Internet Explorer

welkingunther 發表在 痞客邦 留言(0) 人氣()

DialogResult myResult = MessageBox.Show
(
"你要選是還是否?", "顯示在彈出視窗上面的字"
, MessageBoxButtons.YesNo, MessageBoxIcon.Question);

welkingunther 發表在 痞客邦 留言(0) 人氣()

下面這行就是以名字這欄位為準

就可撈出不重複的名字了

DataTable myDT = mySource.DefaultView.ToTable(true, new string[] { "名字" });

welkingunther 發表在 痞客邦 留言(0) 人氣()

這個網站裡有OCR可用,但要注意它的版權問題

http://asprise.com/home/


welkingunther 發表在 痞客邦 留言(0) 人氣()

 

以下文章轉載自http://www.dotblogs.com.tw/jimmyyu/archive/2009/06/03/8665.aspx

01     class HotKey

welkingunther 發表在 痞客邦 留言(0) 人氣()

App.Config檔內容像這樣


<?xml version="1.0" encoding="utf-8" ?>

welkingunther 發表在 痞客邦 留言(0) 人氣()

這是有大師把DirectShowdotnet包起來的DLL!!

http://directshownet.sourceforge.net/

 

welkingunther 發表在 痞客邦 留言(0) 人氣()

這是有大師把Google翻譯的APIdotnet包起來的DLL!!

http://code.google.com/p/google-api-for-dotnet/

 

welkingunther 發表在 痞客邦 留言(0) 人氣()

DataTable dt = new DataTable();

            dt.Columns.Add(new DataColumn("Display", typeof(string)));

           // Language是一個Class

welkingunther 發表在 痞客邦 留言(0) 人氣()

using System.Net;

using System.Net.Mail; 

     

welkingunther 發表在 痞客邦 留言(2) 人氣()

private delegate void MainUICallBack(string myStr, Control ctl);

private void MainUI(string myStr, Control ctl)

{

welkingunther 發表在 痞客邦 留言(0) 人氣()

WebRequest request = WebRequest.Create(URL);

 

WebResponse response = request.GetResponse();

welkingunther 發表在 痞客邦 留言(0) 人氣()

宣告

[DllImport("user32.dll", EntryPoint = "GetWindowThreadProcessId")]

public static extern uint GetWindowThreadProcessId(int hWnd, ref uint lpdwProcessId);

welkingunther 發表在 痞客邦 留言(0) 人氣()

[DllImport("user32.dll")]

public static extern long SendMessage(int hWnd, uint msg, uint wparam, string text);

 

welkingunther 發表在 痞客邦 留言(1) 人氣()

using Microsoft.Win32;

 

RegistryKey reg = Registry.CurrentUser;

welkingunther 發表在 痞客邦 留言(0) 人氣()

成員宣告

[DllImport("kernel32.dll")]

static extern Boolean SetProcessWorkingSetSize(IntPtr procHandle, Int32 min, Int32 max);

welkingunther 發表在 痞客邦 留言(0) 人氣()

using System;
using System.Runtime.InteropServices;

welkingunther 發表在 痞客邦 留言(0) 人氣()

宣告一個廣域的變數

System.AppDomain mymyD;

然後在程式裡就可以寫

welkingunther 發表在 痞客邦 留言(0) 人氣()

using System.Threading;

public partial class Form1 : Form
    {

welkingunther 發表在 痞客邦 留言(0) 人氣()