|
I am using webbrowser control in a window application using C# 2.0, its a testing tool, whenever i open a site from within the application, when i click any tab or any button or hyperlink for the fisrt time it give me the error dailog box with,
Run time error has occured
Error:Object doesn't support this property or method.
Please suggest what is the resolution.
The system is having IE 6.0 version.
|
|
|
|
|
Without seeing any code, it will be very hard to tell you what you did wrong. Step through the code and find out exactly what line of code is triggering that error.
|
|
|
|
|
in c#. are primitives such as int (which behind-the-scenes are structs i.e. System.Int32) therefore objects? since primitives are pass by value, it contradicts the fact that objects are pass by reference? please anyone enlighten me. thanks.
----------------------------------------------------------
this is a sig++
|
|
|
|
|
swjam wrote: ince primitives are pass by value, it contradicts the fact that objects are pass by reference?
Correct. An int is only an object if it's boxed ( that is, put in an object ) for the purpose of being passed as an object. Otherwise, it is not.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
swjam wrote: it contradicts the fact that objects are pass by reference?
Well, actually everything is passed by value (unless you specify otherwise). When you pass an object you are actually passing the reference to the object, and as the reference is a value type it's passed by value, i.e. the value of the reference is copied.
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
|
swjam wrote: therefore objects?
Structure is a value type. Hence, int(System.Int32) is a value type being a structure. And so, it is passed by value.
|
|
|
|
|
thanks but that's not really the point i'm after.
----------------------------------------------------------
this is a sig++
|
|
|
|
|
i thought u were confused about primitive data type (like int) being passed as an object.
|
|
|
|
|
Well, then what are you asking?
|
|
|
|
|
if primitives are objects (because everything are) then they should be passed by reference. well i'm after the contradiction, i know for a fact that they are passed by value. (i think Christian Graus' answered it).
----------------------------------------------------------
this is a sig++
|
|
|
|
|
Yes, everything boils down to an object, but remember those primative types (Int32, Int16, etc) actually inherit from ValueType which itself inherits from Object .
The point here I think you're trying to grasp is that the runtime treats things that inherit from ValueType different from things that don't
|
|
|
|
|
If it inherits from System.Object it is an object.
The enlightened answer to why this doesn't contradict anything is buried in Computer Science course work. But if I recall correctly a short answer would be the value of the pointers to objects are passed and the compiler knows based on the type to dereference the pointer to yield the object data from the heap. If you could directly alter the stack in C# you would be able to change the value pushed on the stack for the object without affecting the referenced in the calling code because it would just be a value reference.
Need software developed? Offering C# development all over the United States, ERL GLOBAL, Inc is the only call you will have to make.
If you don't ask questions the answers won't stand in your way.
Most of this sig is for Google, not ego.
|
|
|
|
|
hi,
I am having 3-4 records in my database. I written code to display records from the database to datagridview. I use cellclick event for editing the records.
Now datagridview has by default sorting. But Now when ever I click on the column header it will display error. Sorting is not happening becos of the cellclick event.
What can I do?
Thanks
sjs
|
|
|
|
|
Could you write here what error you are getting while clicking.
|
|
|
|
|
i installed a windows service developed in xp
when i run that service
I receive a popup stating Interactive Services Dialog Detection
A program can't display a message on your screen - the program may need
information or permission to complete a task.
how to over come this? please help me out
thanks in advance..
arun
|
|
|
|
|
You're trying to display a message and the user the service runs under, can't do that. Vista is just telling you.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
is there any method to avoid this message by giving some permissions or something else...
thanks in advance
arun
|
|
|
|
|
Don't show message boxes in your web service.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
i m using windows service
i m not showing any message box
i m just loading an exe
|
|
|
|
|
Don't do that either. You can't circumvent the windows UAC, there is a reason for that.
|
|
|
|
|
From which link i can get MONO IDE.
krishna
|
|
|
|
|
www.google.com
Mono is a framework tho, it's not an IDE, you'll have to find an IDE that supports it ( I am sure there is one )
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
monodevelop.com?
I are troll
|
|
|
|
|