G
Guest
hi following problem in my asp.net project:
i have embedded folloging ocx object in my aspx html code:
<OBJECT id="VideoCapX1" style="Z-INDEX: 101; LEFT: 216px; WIDTH: 368px;
POSITION: absolute; TOP: 120px; HEIGHT: 288px"
classid="clsid:912FB007-DD9A-11D3-BD8D-DAAFCB8D9378" >
then i want to get the object in my aspx.vb code...
Protected WithEvents VideoCapX1 As VIDEOCAPXLib.VideoCapX
VideoCapX1 = CType(Me.FindControl("VideoCapX1"), VIDEOCAPXLib.VideoCapX)
okay...now i want to change a property of it:
VideoCapX1.Connected = False
and there´s the error message at "VideoCapX1.Connected = False":
"Object reference not set to an instance of an object"
"System.NullReferenceException: Object reference not set to an instance of
an object"
can anyone help me?
i have embedded folloging ocx object in my aspx html code:
<OBJECT id="VideoCapX1" style="Z-INDEX: 101; LEFT: 216px; WIDTH: 368px;
POSITION: absolute; TOP: 120px; HEIGHT: 288px"
classid="clsid:912FB007-DD9A-11D3-BD8D-DAAFCB8D9378" >
then i want to get the object in my aspx.vb code...
Protected WithEvents VideoCapX1 As VIDEOCAPXLib.VideoCapX
VideoCapX1 = CType(Me.FindControl("VideoCapX1"), VIDEOCAPXLib.VideoCapX)
okay...now i want to change a property of it:
VideoCapX1.Connected = False
and there´s the error message at "VideoCapX1.Connected = False":
"Object reference not set to an instance of an object"
"System.NullReferenceException: Object reference not set to an instance of
an object"
can anyone help me?