Custom Vs Native Controls

Define a control:
Private WithEvents txtPartNum As EpiTextBox

In the form load event set the control to be equal to the native
control:

txtPartNum = CType(csm.GetNativeControlReference("EpiGuid of native
control"), EpiTextBox)

--- In vantage@yahoogroups.com, "Michael McWilliams"
<mmcwilliams22@...> wrote:
>
> How do you access a native control.
> When I try txtPartNum.Focus() I get declaration error, but
> if I use
> nedEpiCustom1.Focus() It compiles.
>
> Am I missing a step required for native controls? I don't know what
> they are bound to since the names are used multiple times in a form.
>
How do you access a native control.
When I try txtPartNum.Focus() I get declaration error, but
if I use
nedEpiCustom1.Focus() It compiles.

Am I missing a step required for native controls? I don't know what
they are bound to since the names are used multiple times in a form.