guyvaio
asked on
Use .Net Windows Control in a VFP form
I try to use .net Visual Component developed with Visual Studio 2005 (C#) in a Visual FoxPro form.
I've just created a new "Windows Control Library" in VS2005. I've put a RichTextBox on it. And I've make it COM visible. I've register successfully this assembly with REGASM /CODEBASE.
I a VFP form, I've put a button with this code:
thisForm.AddObject('test', 'olecontro l','Window sControlLi brary2.Use rControl1' )
thisForm.test.visible=.T.
But nothing appears on this form.
Thanks in advance for help.
Regards,
Guy
I've just created a new "Windows Control Library" in VS2005. I've put a RichTextBox on it. And I've make it COM visible. I've register successfully this assembly with REGASM /CODEBASE.
I a VFP form, I've put a button with this code:
thisForm.AddObject('test',
thisForm.test.visible=.T.
But nothing appears on this form.
Thanks in advance for help.
Regards,
Guy
ASKER CERTIFIED SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
ASKER
Many thanks,
Guy