Raising an Event

  • Thread starter Thread starter matthew menard
  • Start date Start date
M

matthew menard

I have an event based windows program I'm developing using VB and
Visual Studio 2005. I have a Data Grid View that's on my dialog box,
and I want to do some validation when I select one of the rows in the
Grid View. The best solution is to validate all the entries before I
build the list for the DataGridView, but it takes to long to load when
I do that. So I decided to try to validate the entries as the user
selects an entry. I have some event handlers set up by the tool; one
is the DataGridView1_CellEnter. I wanted to validate the selected
entry in the list in the CellEnter event, but if the entry is not
valid, I want to raise a Cell_Leave event from within the Cell_Enter
event. Can I do that? I wanted to automatically select the next
entry in the list, if the first one is not valid. I hope I'm
explaining it so it's understandable. Any input would be
appreciated. Thanks...
 
Matthew

An event is something that gives the control to a method.

You can always call a method without that event.
The most simple one to fulfill the signature is

TheMethod(nothing,nothing)

Cor
 
Back
Top