C
cris-id
Guest
Hi,
1) I am a complete amateur. Please have this in mind.
In one of my projects I have created custom TextBox (NumberBox) that basically inherits Windows.Forms.TextBox and overrides some private methods and adds some properties. This is done in VB.
Now I have another project i C# and would use this custom TextBox.
I thought if I create a simple Class Project in VB and will only have a definition for my NumberBox and compile it as a .dll I will be able to just reference in tin my project in C#.
But I have some problems.
So when I was designing a form in VB I could place this NumberBox from Toolbox and all was fine.
But when my .dll is referenced in my C# project my custom NumberBox is not listed in Toolbox, so I am not able to simply place it on the form.
I tried manual editing of Form.Designer.cs but no success here. I am obviously missing something.
So basically question is how should I reference my .dll so custom Form control was listed in Toolbox?
Cris.
Continue reading...
1) I am a complete amateur. Please have this in mind.
In one of my projects I have created custom TextBox (NumberBox) that basically inherits Windows.Forms.TextBox and overrides some private methods and adds some properties. This is done in VB.
Now I have another project i C# and would use this custom TextBox.
I thought if I create a simple Class Project in VB and will only have a definition for my NumberBox and compile it as a .dll I will be able to just reference in tin my project in C#.
But I have some problems.
So when I was designing a form in VB I could place this NumberBox from Toolbox and all was fine.
But when my .dll is referenced in my C# project my custom NumberBox is not listed in Toolbox, so I am not able to simply place it on the form.
I tried manual editing of Form.Designer.cs but no success here. I am obviously missing something.
So basically question is how should I reference my .dll so custom Form control was listed in Toolbox?
Cris.
Continue reading...