C# 관리자 권한으로 실행 설정


1. [프로젝트 속성창]-[보안]-[ClickOnce 보안 설정 사용]

    체크를 하면 app.manifest 파일 생성됨

2. 파일 생성 확인 후 [ClickOnce 보안 설정 사용] 체크 해제

3. app.manifest 파일을 열기

4.  app.manifest 파일 내용 중 
    <requestedExecutionLevel level=" asInvoker" uiAccess="false" /> 구문을
    <requestedExecutionLevel level="requireAdministrator" uiAccess="false" /> 로 수정함

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

[C#] 인터넷 연결 유무 확인  (0) 2012.03.28
[C#] Percent Encoding  (0) 2012.03.28
[C#] Convert String to System.Windows.Forms.Shortcut  (0) 2012.03.23
Posted by 암리타 :
    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 암리타 :