Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


Newbie: Event handling in

zeppozeppo Member Posts: 8
I have just graduated to from vb6 and I am having problems with the Event handling structure.

In vb6 I could use the event below:

Private Sub Cell1_OnRowChange(ByVal oldrow As Long, ByVal newrow As Long)

In this case I could directly access oldrow and newrow directly e.g TextBox1.Text=newrow

The new definition in is thus:

Private Sub AxCell1_OnRowChange(ByVal sender As Object, ByVal e As AxCELLLib._DCellEvents_OnRowChangeEvent) Handles AxCell1.OnRowChange

(This appears to be the format for all events in

How do I now access oldrow and newrow using this method???

Yours with many thanks

Mark Lea


  • michaelyatesmichaelyates Member Posts: 1
    [b][red]This message was edited by michaelyates at 2002-7-28 10:58:14[/red][/b][hr]
    Hi Mark

    Event handling in VB.Net goes like this:-

    sender - is the object (control) that is the event source

    e - is the event object that supplies event data

    'e' may supply no event data as in the 'Click' event
    details about button state mouse coordinates etc for
    the 'MouseDown' event.

    The event data depends upon the event type.

    Unfortunately I do not have AXCell on my computer is it
    an ActiveX or is it part of Visual Studio?

    If in the event handler you type e. that's an 'e' and a 'dot'
    a list of the members associated with the event object
    should be displayed or you can use the object browser to
    list all members associated with a particular event object.

    In the Visual Studio documentation there is a detailed info
    about event handling do a search for 'Events and Event Handlers'
    and bookmark the pages.

    Hope that helps

    Michael Yates

  • Shawn CarterShawn Carter Member Posts: 0

    ___ || || free ebooks and video tutorials about < Visual Basic .NET Go PL/SQL MATLAB C++ C# JavaScript Assembly PHP Scratch Objective-C Swift Python Perl R Delphi C Ruby Java Visual Basic Transact-SQL D Awk Dart LabVIEW Scala Logo Julia Fortran ABAP Scheme VBScript Crystal FoxPro Lua SAS Clojure COBOL Kotlin F# Hack ML Rust Lisp Erlang Bash Ada Prolog Apex Alice /> ________

Sign In or Register to comment.