Hello,
I have the following code.
<div style="border-right:#7f9db9 1px solid;border-top:#7f9db9 1px solid;font-size:11px;overflow:auto;border-left:#7f9db9 1px solid;line-height:100%! important;border-bottom:#7f9db9 1px solid;font-family:courier new;background-color:white
<table style="border-top-width:0px;border-left-width:0px;margin:2px 0px;width:99%;border-bottom:#eee 0px solid;border-collapse:collapse;background-color:#fff;border-right-width:0px" cellspacing=0 cellpadding=0>
<colgroup>
<col style="padding-left:10px;font-size:11px;border-bottom:#f7f7f7 1px solid;font-family:courier new;white-space:nowrap </colgroup>
<tbody>
<tr>
<td><font style="font-size:11px System.Windows.Forms.WebBrowser browser = </font><font color="#0000ff new</font><font style="font-size:11px System.Windows.Forms.WebBrowser(); </font></td></tr>
<tr>
<td style="background-color:#f7f7f7 browser.ScrollBarsEnabled = <font color="#0000ff false</font><font style="font-size:11px ; </font></td></tr>
<tr>
<td></td></tr>
<tr>
<td style="background-color:#f7f7f7 </td></tr></tbody></table>
2nd line of this code throws exception that Id like to avoid. How can I do this?
Thank You in advance.
Exception details. (can be viewed if catching of System.Runtime.<span class=RadEWrongWord id="RadESpellError_5 InteropServices.<span class=RadEWrongWord id="RadESpellError_6 COMException is enabled in debugger)
System.Runtime.<span class=RadEWrongWord id="RadESpellError_7 InteropServices.<span class=RadEWrongWord id="RadESpellError_8 COMException occurred
Message="Error <span class=RadEWrongWord id="RadESpellError_9 HRESULT E_FAIL has been returned from a call to a COM component."
Source="System.Windows.Forms"
<span class=RadEWrongWord id="RadESpellError_10 ErrorCode=-2147467259
<span class=RadEWrongWord id="RadESpellError_11 StackTrace:
at System.Windows.Forms.<span class=RadEWrongWord id="RadESpellError_12 UnsafeNativeMethods.<span class=RadEWrongWord id="RadESpellError_13 IWebBrowser2.Refresh()
View the full article
I have the following code.
<div style="border-right:#7f9db9 1px solid;border-top:#7f9db9 1px solid;font-size:11px;overflow:auto;border-left:#7f9db9 1px solid;line-height:100%! important;border-bottom:#7f9db9 1px solid;font-family:courier new;background-color:white
<table style="border-top-width:0px;border-left-width:0px;margin:2px 0px;width:99%;border-bottom:#eee 0px solid;border-collapse:collapse;background-color:#fff;border-right-width:0px" cellspacing=0 cellpadding=0>
<colgroup>
<col style="padding-left:10px;font-size:11px;border-bottom:#f7f7f7 1px solid;font-family:courier new;white-space:nowrap </colgroup>
<tbody>
<tr>
<td><font style="font-size:11px System.Windows.Forms.WebBrowser browser = </font><font color="#0000ff new</font><font style="font-size:11px System.Windows.Forms.WebBrowser(); </font></td></tr>
<tr>
<td style="background-color:#f7f7f7 browser.ScrollBarsEnabled = <font color="#0000ff false</font><font style="font-size:11px ; </font></td></tr>
<tr>
<td></td></tr>
<tr>
<td style="background-color:#f7f7f7 </td></tr></tbody></table>
2nd line of this code throws exception that Id like to avoid. How can I do this?
Thank You in advance.
Exception details. (can be viewed if catching of System.Runtime.<span class=RadEWrongWord id="RadESpellError_5 InteropServices.<span class=RadEWrongWord id="RadESpellError_6 COMException is enabled in debugger)
System.Runtime.<span class=RadEWrongWord id="RadESpellError_7 InteropServices.<span class=RadEWrongWord id="RadESpellError_8 COMException occurred
Message="Error <span class=RadEWrongWord id="RadESpellError_9 HRESULT E_FAIL has been returned from a call to a COM component."
Source="System.Windows.Forms"
<span class=RadEWrongWord id="RadESpellError_10 ErrorCode=-2147467259
<span class=RadEWrongWord id="RadESpellError_11 StackTrace:
at System.Windows.Forms.<span class=RadEWrongWord id="RadESpellError_12 UnsafeNativeMethods.<span class=RadEWrongWord id="RadESpellError_13 IWebBrowser2.Refresh()
View the full article