Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Multiple Handles in sub
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Multiple Handles in sub

 Post Reply Post Reply Page  <12
Author
Mart View Drop Down
Senior Member
Senior Member
Avatar

Joined: 30 November 2002
Status: Offline
Points: 2304
Post Options Post Options   Thanks (0) Thanks(0)   Quote Mart Quote  Post ReplyReply Direct Link To This Post Posted: 02 November 2003 at 1:02pm

Nooo like in VB you put all the controls in a Index array and the Index value of:

Private Sub Link_Click(Index As integer, sender As System.Object, e As System.Eventargs) Handles link.click

changes to the control that was clicked.

Back to Top
Diep-Vriezer View Drop Down
Senior Member
Senior Member
Avatar

Joined: 06 August 2003
Location: Netherlands
Status: Offline
Points: 831
Post Options Post Options   Thanks (0) Thanks(0)   Quote Diep-Vriezer Quote  Post ReplyReply Direct Link To This Post Posted: 02 November 2003 at 1:31pm
I'll give it a shot
Gone..
Back to Top
MorningZ View Drop Down
Senior Member
Senior Member
Avatar

Joined: 06 May 2002
Location: United States
Status: Offline
Points: 1793
Post Options Post Options   Thanks (0) Thanks(0)   Quote MorningZ Quote  Post ReplyReply Direct Link To This Post Posted: 02 November 2003 at 1:31pm

i am still wondering why you wouldn't use different functions since the buttons (obviously) do different things....

seperating the logic seems to make a hell of a lot more sense than doing a case statement inside one function

not trying to be difficult on this thread, just severely questioning the logic

Contribute to the working anarchy we fondly call the Internet
Back to Top
Diep-Vriezer View Drop Down
Senior Member
Senior Member
Avatar

Joined: 06 August 2003
Location: Netherlands
Status: Offline
Points: 831
Post Options Post Options   Thanks (0) Thanks(0)   Quote Diep-Vriezer Quote  Post ReplyReply Direct Link To This Post Posted: 02 November 2003 at 1:35pm
A link button can't accept index stuff.
Gone..
Back to Top
Diep-Vriezer View Drop Down
Senior Member
Senior Member
Avatar

Joined: 06 August 2003
Location: Netherlands
Status: Offline
Points: 831
Post Options Post Options   Thanks (0) Thanks(0)   Quote Diep-Vriezer Quote  Post ReplyReply Direct Link To This Post Posted: 02 November 2003 at 3:00pm
Originally posted by MorningZ MorningZ wrote:

i am still wondering why you wouldn't use different functions since the buttons (obviously) do different things....

seperating the logic seems to make a hell of a lot more sense than doing a case statement inside one function

not trying to be difficult on this thread, just severely questioning the logic

The point is, they all do the same thing. But have this litte parameter wich needs to be set wich is different.

The midbar is made out of 11 linkbuttons, which are all dynamic. If I would have to write the code at each page, for each sub, that will add up to about 400 lines of code per page..  Got the point?

Gone..
Back to Top
 Post Reply Post Reply Page  <12

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.