1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
class Internet
{
    //Creating the extern function...
    [DllImport("wininet.dll")]
    private extern static bool InternetGetConnectedState( out int Description,
              int ReservedValue ) ;
 
    /// <summary>
    /// 인터넷 연결 체크
    /// </summary>
    /// <returns>인터넷 연결이 안된 경우 false</returns>
    public static bool IsConnectedToInternet( )
    {
        int Desc ;
        return InternetGetConnectedState( out Desc, 0 ) ;
    }
}

'프로그래밍 > C#' 카테고리의 다른 글

[C#] 관리자 권한으로 실행 설정  (1) 2012.04.02
[C#] Percent Encoding  (0) 2012.03.28
[C#] Convert String to System.Windows.Forms.Shortcut  (0) 2012.03.23
Posted by 암리타 :

[C#] Percent Encoding

2012. 3. 28. 10:16 from 프로그래밍/C#

참고 Url : http://en.wikipedia.org/wiki/Percent-encoding


Posted by 암리타 :
            string key = ConfigFile.Instance.key1  + "+" + ConfigFile.Instance.key2;

            KeysConverter conv = new KeysConverter();
            Keys keys = (Keys)conv.ConvertFromString(key);
            hotkey.Shortcut = (System.Windows.Forms.Shortcut)keys;

'프로그래밍 > C#' 카테고리의 다른 글

[C#] 관리자 권한으로 실행 설정  (1) 2012.04.02
[C#] 인터넷 연결 유무 확인  (0) 2012.03.28
[C#] Percent Encoding  (0) 2012.03.28
Posted by 암리타 :