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) 人氣()

標題很抽象吧

 

錯誤控制的一種,發生錯誤後就不繼續執行接下來的陳述式,而會跳到我們所設定的函式

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

  • function clearAll(name)
  • {
  • var myCheckBox= document.getElementsByTagName('input');
  • welkingunther 發表在 痞客邦 留言(0) 人氣()

    document.getElementById("下拉式選單的ID名").selectedIndex=5;
    document.getElementById("下拉式選單的ID名").fireEvent("onchange");


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