悬赏园豆:50
[已关闭问题]
关闭于 2007-12-28 11:49
本人用C#2.0做了个ActiveX组件,嵌入到IE后不知为何每次关闭IE,都会跳出下面对话框,而且跟ActiveX组件中的控件数量成正比。
<P><IMG height=125 src="http://www.cnblogs.com/images/cnblogs_com/treeyh/AlertError.gif" width=544 mce_src="http://www.cnblogs.com/images/cnblogs_com/treeyh/AlertError.gif"></P>
<P>而后上网查资料说是ActiveX组件没有释放资源,要加入如下代码</P>
<DIV style="BORDER-RIGHT: #cccccc 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: #cccccc 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 13px; PADDING-BOTTOM: 4px; BORDER-LEFT: #cccccc 1px solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: #cccccc 1px solid; BACKGROUND-COLOR: #eeeeee"><IMG id=Codehighlighter1_0_134_Open_Image onclick="this.style.display='none'; document.getElementById('Codehighlighter1_0_134_Open_Text').style.display='none'; document.getElementById('Codehighlighter1_0_134_Closed_Image').style.display='inline'; document.getElementById('Codehighlighter1_0_134_Closed_Text').style.display='inline';" alt="" src="http://www.cnblogs.com/Images/OutliningIndicators/ExpandedBlockStart.gif" align=top><IMG id=Codehighlighter1_0_134_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; document.getElementById('Codehighlighter1_0_134_Closed_Text').style.display='none'; document.getElementById('Codehighlighter1_0_134_Open_Image').style.display='inline'; document.getElementById('Codehighlighter1_0_134_Open_Text').style.display='inline';" alt="" src="http://www.cnblogs.com/Images/OutliningIndicators/ContractedBlock.gif" align=top><SPAN id=Codehighlighter1_0_134_Closed_Text style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff">/**/</SPAN><SPAN id=Codehighlighter1_0_134_Open_Text><SPAN style="COLOR: #808080">///</SPAN><SPAN style="COLOR: #008000"> </SPAN><SPAN style="COLOR: #808080"><summary></SPAN><SPAN style="COLOR: #008000"><BR><IMG alt="" src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" align=top> </SPAN><SPAN style="COLOR: #808080">///</SPAN><SPAN style="COLOR: #008000"> 清理所有正在使用的资源。<BR><IMG alt="" src="http://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif" align=top> </SPAN><SPAN style="COLOR: #808080">///</SPAN><SPAN style="COLOR: #008000"> </SPAN><SPAN style="COLOR: #808080"></summary></SPAN><SPAN style="COLOR: #008000"><BR><IMG alt="" src="http://www.cnblogs.com/Images/OutliningIndicators/ExpandedBlockEnd.gif" align=top> </SPAN><SPAN style="COLOR: #808080">///</SPAN><SPAN style="COLOR: #008000"> </SPAN><SPAN style="COLOR: #808080"><param name="disposing"></SPAN><SPAN style="COLOR: #008000">如果应释放托管资源,为 true;否则为 false。</SPAN><SPAN style="COLOR: #808080"></param></SPAN></SPAN><BR><IMG alt="" src="http://www.cnblogs.com/Images/OutliningIndicators/None.gif" align=top><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #0000ff">protected</SPAN><S
问题补充:
但是这是VS自动生成的。
因此想问问大家有没有什么好的办法
好像提问页面排版有问题啊
马可香蕉
|
初学一级
|
园豆:
120
提问于:2007-12-28 10:57