Click here to Skip to main content
15,886,362 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionNames not declared e.g. My and FileIO Pin
Central_IT1-Feb-07 3:20
Central_IT1-Feb-07 3:20 
AnswerRe: Names not declared e.g. My and FileIO Pin
MatrixCoder1-Feb-07 4:56
MatrixCoder1-Feb-07 4:56 
QuestionHow to handle microsoft word events from vb.net Pin
manisghouri1-Feb-07 1:55
manisghouri1-Feb-07 1:55 
Questionfloating toolbar in IE Pin
AJ261-Feb-07 1:50
AJ261-Feb-07 1:50 
QuestionHow display data from DB by selecting from DropdownList Pin
Praveen 1231-Feb-07 0:42
Praveen 1231-Feb-07 0:42 
AnswerRe: How display data from DB by selecting from DropdownList Pin
Johan Hakkesteegt1-Feb-07 1:08
Johan Hakkesteegt1-Feb-07 1:08 
AnswerRe: How display data from DB by selecting from DropdownList Pin
Ahmed El-Badry3-Feb-07 0:34
Ahmed El-Badry3-Feb-07 0:34 
Questionget object's name Pin
Marc Soleda31-Jan-07 23:50
Marc Soleda31-Jan-07 23:50 
In VB2005, most of the events pass the sender object as a parameter through the vent itself:

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button8.Click<br />


Is there any way to get the object's name (not the type) of the sender? .ToString returns its type and I'm looking for a way to get "Button1".

I want to handle the xxxx_Click event for several buttons in the same event and without adding a new parameter with an id or something like that.

Thanks in advance,
Marc Soleda

... she said you are the perfect stranger she said baby let's keep it like this... Dire Straits

AnswerRe: get object's name Pin
xstoneheartx1-Feb-07 0:13
xstoneheartx1-Feb-07 0:13 
GeneralRe: get object's name Pin
Christian Graus1-Feb-07 0:17
protectorChristian Graus1-Feb-07 0:17 
GeneralRe: get object's name Pin
Marc Soleda1-Feb-07 0:25
Marc Soleda1-Feb-07 0:25 
GeneralRe: get object's name Pin
shreekar1-Feb-07 0:35
shreekar1-Feb-07 0:35 
GeneralRe: get object's name Pin
Marc Soleda1-Feb-07 0:56
Marc Soleda1-Feb-07 0:56 
GeneralRe: get object's name Pin
Christian Graus1-Feb-07 9:22
protectorChristian Graus1-Feb-07 9:22 
GeneralRe: get object's name Pin
Marc Soleda1-Feb-07 20:36
Marc Soleda1-Feb-07 20:36 
GeneralRe: get object's name Pin
xstoneheartx1-Feb-07 0:36
xstoneheartx1-Feb-07 0:36 
AnswerRe: get object's name Pin
Guffa1-Feb-07 9:31
Guffa1-Feb-07 9:31 
GeneralRe: get object's name Pin
Marc Soleda1-Feb-07 20:39
Marc Soleda1-Feb-07 20:39 
AnswerRe: get object's name Pin
Johan Hakkesteegt1-Feb-07 1:29
Johan Hakkesteegt1-Feb-07 1:29 
GeneralRe: get object's name Pin
Marc Soleda1-Feb-07 2:58
Marc Soleda1-Feb-07 2:58 
Questioninserting and retrieving image from sqlserver2000 using vb.net Pin
Dotnetkanna31-Jan-07 23:42
Dotnetkanna31-Jan-07 23:42 
AnswerRe: inserting and retrieving image from sqlserver2000 using vb.net Pin
xstoneheartx31-Jan-07 23:58
xstoneheartx31-Jan-07 23:58 
Questionsystem.windows,input class not available Pin
bony_baba31-Jan-07 23:02
bony_baba31-Jan-07 23:02 
QuestionCreating barcode Generating program Pin
abhilash.asokan31-Jan-07 22:48
abhilash.asokan31-Jan-07 22:48 
AnswerRe: Creating barcode Generating program Pin
xstoneheartx1-Feb-07 0:22
xstoneheartx1-Feb-07 0:22 

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.