Two questions:
1) In the code of a custom control this code:
Makes this notice:
'System.ComponentModel.Design.ComponentDesigner.OnSetComponentDefaults()' is obsolete: '"This method has been deprecated. Use InitializeNewComponent instead. http://go.microsoft.com/fwlink/?linkid=14202"'
Well I read: "Use InitializeNewComponent instead.".... yes, but.........HOW? If I replace OnSetComponentDefaults with InitializeNewComponent I get the notice ":
It is expected a get or set access function
and if I write:
I get the notice:
Only assignments, calls, increases, decreases, and new object expressions can be used as instructions
2) Second question:
Instead of complie the control and add the .dll to the project as external file... is possible to add the several files DIRECTLY into a VB project?
Ty :)
1) In the code of a custom control this code:
Code:
[System.Obsolete]
public override void OnSetComponentDefaults()
{
base.OnSetComponentDefaults();
}
Quote:
'System.ComponentModel.Design.ComponentDesigner.OnSetComponentDefaults()' is obsolete: '"This method has been deprecated. Use InitializeNewComponent instead. http://go.microsoft.com/fwlink/?linkid=14202"'
Quote:
It is expected a get or set access function
Code:
[System.Obsolete]
public override void InitializeNewComponent
{
get
{
base.InitializeNewComponent;
}
}
Quote:
Only assignments, calls, increases, decreases, and new object expressions can be used as instructions
Instead of complie the control and add the .dll to the project as external file... is possible to add the several files DIRECTLY into a VB project?
Ty :)