newbe: create new event with designer

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Peter Ramsebner

    newbe: create new event with designer

    Hi all,

    with dobleclick on a control, the forms designer create a new eventhandler
    for the actual control.
    When you need an eventhandler for specific events (for example 'validating')
    then you have to do it manually?
    Or exists a way to do it with the designer?

    Thanks for help

    Peter


  • CJ Taylor

    #2
    Re: newbe: create new event with designer

    Look at the drop downs on the top of your code windows. They show anything
    declared WithEvents, and the events (that are visible) will be in the drop
    down to the right.


    "Peter Ramsebner" <p.r@pr.com> wrote in message
    news:uphvuqj%23 DHA.2808@TK2MSF TNGP10.phx.gbl. ..[color=blue]
    > Hi all,
    >
    > with dobleclick on a control, the forms designer create a new eventhandler
    > for the actual control.
    > When you need an eventhandler for specific events (for example[/color]
    'validating')[color=blue]
    > then you have to do it manually?
    > Or exists a way to do it with the designer?
    >
    > Thanks for help
    >
    > Peter
    >
    >[/color]


    Comment

    • Peter Ramsebner

      #3
      Re: newbe: create new event with designer

      Thanks for your help!


      "CJ Taylor" <nospam@blowgoa ts.com> escribió en el mensaje
      news:103khrleuc f45a@corp.super news.com...[color=blue]
      > Look at the drop downs on the top of your code windows. They show[/color]
      anything[color=blue]
      > declared WithEvents, and the events (that are visible) will be in the drop
      > down to the right.
      >
      >
      > "Peter Ramsebner" <p.r@pr.com> wrote in message
      > news:uphvuqj%23 DHA.2808@TK2MSF TNGP10.phx.gbl. ..[color=green]
      > > Hi all,
      > >
      > > with dobleclick on a control, the forms designer create a new[/color][/color]
      eventhandler[color=blue][color=green]
      > > for the actual control.
      > > When you need an eventhandler for specific events (for example[/color]
      > 'validating')[color=green]
      > > then you have to do it manually?
      > > Or exists a way to do it with the designer?
      > >
      > > Thanks for help
      > >
      > > Peter
      > >
      > >[/color]
      >
      >[/color]


      Comment

      • Herfried K. Wagner [MVP]

        #4
        Re: newbe: create new event with designer

        Peter,

        * "Peter Ramsebner" <p.r@pr.com> scripsit:[color=blue]
        > with dobleclick on a control, the forms designer create a new eventhandler
        > for the actual control.
        > When you need an eventhandler for specific events (for example 'validating')
        > then you have to do it manually?
        > Or exists a way to do it with the designer?[/color]

        Select the control in the left combobox on top of the text editor
        window, then select the event in the right combobox.

        --
        Herfried K. Wagner [MVP]
        <http://www.mvps.org/dotnet>

        Comment

        Working...