WebBrowser 컨트롤이 포함 된 양식이 있습니다. 커서를 WebBrowser로 변경해야합니다.
나는 시도
this.Cursor = System.Windows.Forms.Cursors.WaitCursor;
this.TopLevelControl.Cursor = Cursors.WaitCursor;
커서는 양식 만 변경되지만 WebBrowser에서는 변경되지 않습니다.
WebBrowser 컨트롤에서 커서를 어떻게 변경할 수 있습니까?
솔루션에 대한 참조를 "mshtml.dll"에 추가하십시오. 을로드 한 후 다음을 Document
시도하십시오.
IHTMLDocument2 doc = (webDocument1.Document.DomDocument) as IHTMLDocument2;
IHTMLStyleSheet style = doc.createStyleSheet("", 0);
style.cssText = @"body { cursor: wait; }";
결과는 웹 페이지를로드하는 방법 (로컬 / 내장 파일로드,를 설정하는 DocumentStream
등) 에 따라 달라집니다 .
이 기사는 인터넷에서 수집됩니다. 재 인쇄 할 때 출처를 알려주십시오.
침해가 발생한 경우 연락 주시기 바랍니다[email protected] 삭제
몇 마디 만하겠습니다