Click here to Skip to main content
15,897,273 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Event implementation and autocomplete handler signature with Visual Studio 2008 Pin
Dave Kreskowiak3-May-10 2:07
mveDave Kreskowiak3-May-10 2:07 
GeneralRe: Event implementation and autocomplete handler signature with Visual Studio 2008 Pin
hoernchenmeister3-May-10 2:36
hoernchenmeister3-May-10 2:36 
QuestionSplitting a text box with commas in it Pin
offroaderdan29-Apr-10 8:30
offroaderdan29-Apr-10 8:30 
AnswerRe: Splitting a text box with commas in it Pin
Luc Pattyn29-Apr-10 9:00
sitebuilderLuc Pattyn29-Apr-10 9:00 
AnswerRe: Splitting a text box with commas in it Pin
Wayne Gaylard29-Apr-10 20:30
professionalWayne Gaylard29-Apr-10 20:30 
QuestionWebclient doesn't get entire file Pin
cstrader23229-Apr-10 2:09
cstrader23229-Apr-10 2:09 
AnswerRe: Webclient doesn't get entire file Pin
Eddy Vluggen30-Apr-10 1:13
professionalEddy Vluggen30-Apr-10 1:13 
Questionaddhandler, addressof question Pin
Simon_Whale29-Apr-10 1:25
Simon_Whale29-Apr-10 1:25 
This is a piece of code that i am using to test a possible solution to a given problem.

Dim x As Button
x = New Button

AddHandler x.Click, AddressOf ClickSubRoutine
x.Name = ButtonText
x.Location = New Point(x + 100, y)
Me.Controls.Add(x)


The problem is that i have a button control on the form, when a user clicks on this button many other buttons are created from a list in a file.

AddHandler x.Click, AddressOf ClickSubRoutine


My question is how can i assign the handler to a function name defined from this list without having to do some if name = statements? is it possible?

Thanks
Simon
Thanks for taking the time, now go away and grow up and return in a newer, more polite and less shouty and ignorant form. - Dalek Dave

AnswerRe: addhandler, addressof question Pin
Wayne Gaylard29-Apr-10 2:28
professionalWayne Gaylard29-Apr-10 2:28 
GeneralRe: addhandler, addressof question Pin
Simon_Whale29-Apr-10 2:37
Simon_Whale29-Apr-10 2:37 
GeneralRe: addhandler, addressof question Pin
Wayne Gaylard29-Apr-10 3:13
professionalWayne Gaylard29-Apr-10 3:13 
GeneralRe: addhandler, addressof question Pin
Simon_Whale29-Apr-10 3:27
Simon_Whale29-Apr-10 3:27 
GeneralRe: addhandler, addressof question Pin
Wayne Gaylard29-Apr-10 3:40
professionalWayne Gaylard29-Apr-10 3:40 
GeneralRe: addhandler, addressof question Pin
Gregory Gadow29-Apr-10 4:19
Gregory Gadow29-Apr-10 4:19 
GeneralRe: addhandler, addressof question Pin
cptKoala29-Apr-10 20:41
cptKoala29-Apr-10 20:41 
GeneralRe: addhandler, addressof question Pin
Wayne Gaylard29-Apr-10 23:06
professionalWayne Gaylard29-Apr-10 23:06 
GeneralRe: addhandler, addressof question Pin
cptKoala30-Apr-10 0:06
cptKoala30-Apr-10 0:06 
AnswerRe: addhandler, addressof question Pin
supercat96-May-10 7:08
supercat96-May-10 7:08 
Questionwebbroeser auto login Pin
gokhan üstüner28-Apr-10 22:20
professionalgokhan üstüner28-Apr-10 22:20 
QuestionHelp with checkbox on datagrid? [modified] Pin
waner michaud28-Apr-10 7:45
waner michaud28-Apr-10 7:45 
AnswerRe: Help with checkbox on datagrid? Pin
Henry Minute28-Apr-10 12:54
Henry Minute28-Apr-10 12:54 
AnswerRe: Help with checkbox on datagrid? Pin
Md. Marufuzzaman28-Apr-10 22:07
professionalMd. Marufuzzaman28-Apr-10 22:07 
GeneralRe: Help with checkbox on datagrid? Pin
waner michaud29-Apr-10 3:14
waner michaud29-Apr-10 3:14 
Questionweb browser in vb.net. Pin
offroaderdan28-Apr-10 6:30
offroaderdan28-Apr-10 6:30 
AnswerRe: web browser in vb.net. Pin
Luc Pattyn28-Apr-10 7:16
sitebuilderLuc Pattyn28-Apr-10 7:16 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.