Click here to Skip to main content
15,909,205 members
Home / Discussions / Visual Basic
   

Visual Basic

 
Questionhelp on vb.net pro pls...? Pin
bspro2-Jun-05 0:42
bspro2-Jun-05 0:42 
GeneralProblem in C1FlexGrid Drag and Drop Pin
deepakk2-Jun-05 0:24
deepakk2-Jun-05 0:24 
GeneralRe: Problem in C1FlexGrid Drag and Drop Pin
Dave Kreskowiak2-Jun-05 6:56
mveDave Kreskowiak2-Jun-05 6:56 
GeneralDebugging in VB.Net Pin
directred1-Jun-05 23:51
directred1-Jun-05 23:51 
GeneralRe: Debugging in VB.Net Pin
Rizwan Bashir2-Jun-05 1:01
Rizwan Bashir2-Jun-05 1:01 
Questiondynamic event attach with button and textbox? Pin
Tridip Bhattacharjee1-Jun-05 20:08
professionalTridip Bhattacharjee1-Jun-05 20:08 
AnswerRe: dynamic event attach with button and textbox? Pin
Dave Kreskowiak2-Jun-05 6:18
mveDave Kreskowiak2-Jun-05 6:18 
AnswerRe: dynamic event attach with button and textbox? Pin
Dave Kreskowiak2-Jun-05 6:40
mveDave Kreskowiak2-Jun-05 6:40 
Now, if you really want to make your code unreadable, you could keep the event handlers combined (lucky you, they use the same signature). Just check the object type of "sender" in your handler code.
Private Sub CombinedHandler(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click, TextBox1.MouseEnter
    If sender.GetType().Equals(GetType(Button)) Then
        ' Button was clicked...
    Else
        ' TextBox was entered...
    End If
End Sub



RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

GeneralUrgent Help Pls With a combobox Pin
monica2k1-Jun-05 12:39
monica2k1-Jun-05 12:39 
GeneralRe: Urgent Help Pls With a combobox Pin
Christian Graus1-Jun-05 12:50
protectorChristian Graus1-Jun-05 12:50 
GeneralRe: Urgent Help Pls With a combobox Pin
monica2k1-Jun-05 13:05
monica2k1-Jun-05 13:05 
GeneralRe: Urgent Help Pls With a combobox Pin
Christian Graus1-Jun-05 13:12
protectorChristian Graus1-Jun-05 13:12 
GeneralRe: Urgent Help Pls With a combobox Pin
Member 19629203-Jun-05 21:41
Member 19629203-Jun-05 21:41 
GeneralWindows UserControl in Web Page. Pin
Member 19924701-Jun-05 4:06
Member 19924701-Jun-05 4:06 
Generalmatching code Pin
Member 19982501-Jun-05 3:37
Member 19982501-Jun-05 3:37 
GeneralRe: matching code Pin
Rizwan Bashir1-Jun-05 4:29
Rizwan Bashir1-Jun-05 4:29 
Generalconversion from excel to pdf Pin
Member 19982501-Jun-05 1:54
Member 19982501-Jun-05 1:54 
GeneralRe: conversion from excel to pdf Pin
Christian Graus1-Jun-05 12:04
protectorChristian Graus1-Jun-05 12:04 
GeneralRe: conversion from excel to pdf Pin
Member 19982501-Jun-05 22:29
Member 19982501-Jun-05 22:29 
GeneralRe: conversion from excel to pdf Pin
Dave Kreskowiak2-Jun-05 6:11
mveDave Kreskowiak2-Jun-05 6:11 
Generaladding dynamic Controls in Panel Pin
Rizwan Bashir1-Jun-05 1:36
Rizwan Bashir1-Jun-05 1:36 
GeneralRe: adding dynamic Controls in Panel Pin
Mandar Patankar1-Jun-05 7:06
Mandar Patankar1-Jun-05 7:06 
GeneralRe: adding dynamic Controls in Panel Pin
Rizwan Bashir1-Jun-05 22:35
Rizwan Bashir1-Jun-05 22:35 
GeneralGot the reason Pin
Rizwan Bashir1-Jun-05 23:22
Rizwan Bashir1-Jun-05 23:22 
GeneralChange color of message box Pin
Rizwan Bashir31-May-05 23:10
Rizwan Bashir31-May-05 23:10 

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.