Coding343 C# Webbrowser 자바스크립트 에러 disable webBrowser1.ScriptErrorsSuppressed = true; 2015. 11. 13. WinhttpRequest - 기능 세부 설명 - Abortㄴ진행중이던 작업을 중단합니다. GetAllResponseHeadersㄴ모든 헤더값을 반환합니다. GetResponseHeader(Header As String)ㄴHeader에 준 값에 해당하는 헤더를 반환합니다.ㄴ예제) i = [winhttp].GetResponseHeader("Content-Length") Open(Method As String, Url As String, [Async])ㄴUrl 에 주어진 주소에 Method 방식으로 통신을 준비합니다([Async]는 동기/비동기 설정)ㄴ예제) [winhttp].Open("GET", "http://www.naver.com", True Option(Option As WinHttpRequestOption)ㄴOption 의 .. 2015. 11. 13. Regex 활용하여 파싱하기 using System.Text.RegularExpressions;string data = Winhttp.ResponseText; // 원본string regex = "(.*)"; // 패턴Match match = Regex.Match(data, regex);if (match.Success){result = match.Groups[1].Value;} 이런식으로 하나만 뽑을수도 있고 using System.Text.RegularExpressions;List hide = new List();string data = Winhttp.ResponseText;Regex regex = new Regex("(.*)");MatchCollection mc = regex.Matches(data);foreach (Match .. 2015. 11. 12. 디시인사이드 새글알리미 심심해서 만들어봤습니다게시판 ID랑 갱신주기 적고 시작누르면 끝X 누르면 자동으로 트레이 모드로 감새글이 올라오면 글제목을 알림메세지로 알려주고 제목 밑 칸에 추가됩니다종료하려면 종료버튼누르거나 트레이아이콘 우클릭->종료 동시에 올라오는글은 잡지못하는 경우가 존재함(스레드 사용안했음) 2015. 11. 11. 클릭시 웹브라우저 열기 private void button1_Click_1(object sender, EventArgs e){System.Diagnostics.Process.Start("http://naver.com");} 2015. 11. 10. notifyIcon 을 이용하여 알림메시지 설정 및 메시지클릭 시 이벤트발생시키기 protected void Displaynotify(string no) { try { notifyIcon1.Text = "New article"; notifyIcon1.Visible = true; notifyIcon1.BalloonTipTitle = "New article"; notifyIcon1.BalloonTipText = "No = "+no; notifyIcon1.ShowBalloonTip(100); notifyIcon1.BalloonTipClicked += new EventHandler(notifyIcon1_BalloonTipClicked); } catch (Exception ex) { MessageBox.Show(ex.Message); } } private void notifyIcon1_Ball.. 2015. 11. 10. 이전 1 ··· 51 52 53 54 55 56 57 58 다음