Click here to Skip to main content
15,888,286 members
Home / Discussions / C#
   

C#

 
AnswerRe: Add Properties to user control Pin
SajjadZare25-Jul-09 9:14
SajjadZare25-Jul-09 9:14 
Questionhow to keep track the browser. Pin
msgreat25-Jul-09 2:03
msgreat25-Jul-09 2:03 
QuestionGpuCV ? Pin
Mohammad Dayyan25-Jul-09 1:09
Mohammad Dayyan25-Jul-09 1:09 
AnswerRe: GpuCV ? Pin
Henry Minute25-Jul-09 3:09
Henry Minute25-Jul-09 3:09 
AnswerRe: GpuCV ? Pin
Mike Hankey25-Jul-09 3:54
mveMike Hankey25-Jul-09 3:54 
QuestionReading from Microsoft FingerPrint Pin
SimpleData25-Jul-09 1:08
SimpleData25-Jul-09 1:08 
AnswerRe: Reading from Microsoft FingerPrint Pin
Harvey Saayman25-Jul-09 1:30
Harvey Saayman25-Jul-09 1:30 
QuestionObject reference not set to an instance of an object. Pin
svt gdwl25-Jul-09 0:57
svt gdwl25-Jul-09 0:57 
I had a BHO.
When a web page is opened on IE, I try to replace the HTMLElement's text using

 foreach (IHTMLElement HtmlElemen in (IHTMLElementCollection)document.body.all)
{
try
{
HtmlElemen.GetType().GetProperty("innerText").SetValue(HtmlElemen, "NewText", null);
}
catch(Exception e)
{
 System.Windows.Forms.MessageBox.Show("Message:" + e.Message );
}
}



In some PC's the html element's text is replaced successfully with "Newtext",
but in some PC's it is not replacing.

And an exception message is obtained "Object reference not set to an instance of an object. "

How to fix this exception?

This is built in vs2005 c#.


The exception is obtained only in the PC's which doesn't have VisualStudio2005 or Vs2008.

Are there any dependencies missing for execution of these code.
In my installation Setup, I already added "Microsoft.Mshtml.dll" also.

Still this exception is coming. How can I avoid this exception and make it execute succesfully in all PC's?
AnswerRe: Object reference not set to an instance of an object. Pin
Henry Minute25-Jul-09 3:12
Henry Minute25-Jul-09 3:12 
QuestionThe Module Dll1.dll was loaded but the entry point DllRegisterserver was not found Pin
Anubhava Dimri24-Jul-09 22:31
Anubhava Dimri24-Jul-09 22:31 
AnswerRe: The Module Dll1.dll was loaded but the entry point DllRegisterserver was not found Pin
lanzolix1118-Aug-09 9:33
lanzolix1118-Aug-09 9:33 
QuestionSQL Reporting Services - programmatic report execution + export to PDF via WS/asmx Pin
devvvy24-Jul-09 22:24
devvvy24-Jul-09 22:24 
QuestionObj file Pin
john563224-Jul-09 22:08
john563224-Jul-09 22:08 
AnswerRe: Obj file Pin
Mycroft Holmes24-Jul-09 23:12
professionalMycroft Holmes24-Jul-09 23:12 
AnswerRe: Obj file Pin
Joe Woodbury25-Jul-09 16:38
professionalJoe Woodbury25-Jul-09 16:38 
QuestionWhen i print a document, it always show a "SaveAs" dialog [modified] Pin
AdaEniac24-Jul-09 21:13
AdaEniac24-Jul-09 21:13 
AnswerRe: When i print a document, it always show a "SaveAs" dialog Pin
Moreno Airoldi24-Jul-09 23:55
Moreno Airoldi24-Jul-09 23:55 
GeneralRe: When i print a document, it always show a "SaveAs" dialog Pin
AdaEniac25-Jul-09 17:50
AdaEniac25-Jul-09 17:50 
AnswerRe: When i print a document, it always show a "SaveAs" dialog Pin
AdaEniac25-Jul-09 20:21
AdaEniac25-Jul-09 20:21 
QuestionCross Tab Data Pin
Isaac Gordon24-Jul-09 21:03
Isaac Gordon24-Jul-09 21:03 
AnswerRe: Cross Tab Data Pin
Baran M24-Jul-09 22:22
Baran M24-Jul-09 22:22 
AnswerRe: Cross Tab Data Pin
Mycroft Holmes24-Jul-09 23:08
professionalMycroft Holmes24-Jul-09 23:08 
Questioninsert time in oracle Pin
mjawadkhatri24-Jul-09 19:28
mjawadkhatri24-Jul-09 19:28 
AnswerRe: insert time in oracle Pin
K030624-Jul-09 19:41
K030624-Jul-09 19:41 
GeneralRe: insert time in oracle Pin
mjawadkhatri24-Jul-09 19:43
mjawadkhatri24-Jul-09 19:43 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.