Encountered some problems when creating myTextBox by inheriting TextBox
Posted: Sat Oct 12, 2024 2:47 am
Hi,
I want to create a myTextBox because a TextBox cannot shift the mouse focus by typing Enter.
I wrote down the following code after going through some C# related material:
I'm getting two errors when I build a class library project as a DLL that contains only this one class:
XS1003 Syntax error, 'END NAMESPACE' expected
XS9002 Parser: unexpected input 'e'
I need help.
I want to create a myTextBox because a TextBox cannot shift the mouse focus by typing Enter.
I wrote down the following code after going through some C# related material:
Code: Select all
Using System
Using System.Collections.Generic
Using System.ComponentModel
Using System.Linq
Using System.Text
Using System.Drawing
Using System.Windows.Forms
Begin Namespace myBaseClass
/// <summary>
/// The myTextBox class.
/// </summary>
Define Class myTextBox As TextBox
Procedure OnKeyDown(KeyEventArgs e)
Endproc
Enddefine
End Namespace
XS1003 Syntax error, 'END NAMESPACE' expected
XS9002 Parser: unexpected input 'e'
I need help.