msgbox (sender.gettype.fullname)
as the first line in the event handler. What is displayed?
Your question was insightfull. I'm sorry. I am still new to all of this
and sometimes overlook the fundamentals. The problem is that I am using a
textbox control provided by Infragistics. The code below works as expected:
Dim txt As UltraTextEditor = DirectCast(sender, UltraTextEditor)
txt.Text = Trim(txt.Text)
Would I be too forward if I make an observation? I realize that I am new to
the VS arena but I have been doing this kind of thing for a long time. One
of my frustrations is that VS does not come complete for someone who just
wants to get some work done and does not have a degree in computer science.
I mean, it is not possible for me to get anything done quickly without
having a third party tool (like Infragistics) to supply what I had hoped was
in the VS IDE to begin with. True, if I were a big I.T. department I could
duplicate much of what a tool like this does but I don't have the time or
resources to do it from scratch.
The same thing is true of the Report Writer Microsoft furnishes with VS. I
tried hard for an extended period of time but could not get Crystal Reports,
or more directly, support at Crystal reports to work with me. Finally went
to ActiveReports with which I have been pleased.
Bottom line, though I am not complaining and wouldn't change, VS in it's
present incarnation is incomplete for my needs. Wish it did more things
like lookup capabilities for fields in grids etc., then I wouldn't have to
use third party products and ask questions that are so dumb. The reason I
am using VS is not because it makes things easier. It is because of
market-share, market-share, market-share. I am not even interested in the
net. I want a client/server tool that I and my clients can be sure will be
around tomorrow.
Just one small guy's opinion.