Contols and the <object> tag

  • Thread starter Thread starter Sailor Foley
  • Start date Start date
S

Sailor Foley

Hey all,

from the microsoft web site it is possible to place a control inside
the object tag. They give a demo project from which to demonstrate
this. The only problem is when i create my own project the control
appears blank. Nothing is there.

Anyone have a similar problem or know what to do?

Cheers,
Clive
 
sorry,
i have developed a .net windows forms control and am trying to run it
inside the object tag as per an article entitled "Return of the rich
client" on msdn.microsoft.com. What comes up is a square with a red
'x' in the corner as if it were a ActiveX control that wasn't there.

Any ideas??
 
What value do you have for your clsid in the object tag? Does this point to
the right dll and the right fully qualified namespace of the user control
you are trying to implement? Does your client have the .NET framework
installed? Also note that you can include html inside of your object tag to
display something if your control fails to load, such as if the client
doesn't have the framework installed.
 
in the classid i have
http://localhost/folder/filename.exe#namespace.controlname

From the microsoft web site and the example of theirs i can run here on
my local machine referencing an exe works just like referencing a dll. I
know putting the control inside a dll is easier but i'm using classes
that can't be referenced to inside a dll(e.g. System.Drawing) hence the
use of and exe.

is there any way to maybe debug as to why the control doesn't load?
 
Back
Top