Click here to Skip to main content
15,439,992 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionNames not declared e.g. My and FileIO Pin
Central_IT1-Feb-07 3:20
MemberCentral_IT1-Feb-07 3:20 
AnswerRe: Names not declared e.g. My and FileIO Pin
MatrixCoder1-Feb-07 4:56
MemberMatrixCoder1-Feb-07 4:56 
QuestionHow to handle microsoft word events from vb.net Pin
manisghouri1-Feb-07 1:55
Membermanisghouri1-Feb-07 1:55 
Questionfloating toolbar in IE Pin
AJ261-Feb-07 1:50
MemberAJ261-Feb-07 1:50 
QuestionHow display data from DB by selecting from DropdownList Pin
Praveen 1231-Feb-07 0:42
MemberPraveen 1231-Feb-07 0:42 
AnswerRe: How display data from DB by selecting from DropdownList Pin
Johan Hakkesteegt1-Feb-07 1:08
MemberJohan Hakkesteegt1-Feb-07 1:08 
AnswerRe: How display data from DB by selecting from DropdownList Pin
Ahmed El-Badry3-Feb-07 0:34
MemberAhmed El-Badry3-Feb-07 0:34 
Questionget object's name Pin
Marc Soleda31-Jan-07 23:50
MemberMarc 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
Memberxstoneheartx1-Feb-07 0:13 
GeneralRe: get object's name Pin
Christian Graus1-Feb-07 0:17
mveChristian Graus1-Feb-07 0:17 
GeneralRe: get object's name Pin
Marc Soleda1-Feb-07 0:25
MemberMarc Soleda1-Feb-07 0:25 
GeneralRe: get object's name Pin
shreekar1-Feb-07 0:35
Membershreekar1-Feb-07 0:35 
GeneralRe: get object's name Pin
Marc Soleda1-Feb-07 0:56
MemberMarc Soleda1-Feb-07 0:56 
GeneralRe: get object's name Pin
Christian Graus1-Feb-07 9:22
mveChristian Graus1-Feb-07 9:22 
GeneralRe: get object's name Pin
Marc Soleda1-Feb-07 20:36
MemberMarc Soleda1-Feb-07 20:36 
GeneralRe: get object's name Pin
xstoneheartx1-Feb-07 0:36
Memberxstoneheartx1-Feb-07 0:36 
AnswerRe: get object's name Pin
Guffa1-Feb-07 9:31
MemberGuffa1-Feb-07 9:31 
GeneralRe: get object's name Pin
Marc Soleda1-Feb-07 20:39
MemberMarc Soleda1-Feb-07 20:39 
AnswerRe: get object's name Pin
Johan Hakkesteegt1-Feb-07 1:29
MemberJohan Hakkesteegt1-Feb-07 1:29 
GeneralRe: get object's name Pin
Marc Soleda1-Feb-07 2:58
MemberMarc Soleda1-Feb-07 2:58 
Questioninserting and retrieving image from sqlserver2000 using vb.net Pin
Dotnetkanna31-Jan-07 23:42
MemberDotnetkanna31-Jan-07 23:42 
AnswerRe: inserting and retrieving image from sqlserver2000 using vb.net Pin
xstoneheartx31-Jan-07 23:58
Memberxstoneheartx31-Jan-07 23:58 
Questionsystem.windows,input class not available Pin
bony_baba31-Jan-07 23:02
Memberbony_baba31-Jan-07 23:02 
QuestionCreating barcode Generating program Pin
abhilash.asokan31-Jan-07 22:48
Memberabhilash.asokan31-Jan-07 22:48 
AnswerRe: Creating barcode Generating program Pin
xstoneheartx1-Feb-07 0:22
Memberxstoneheartx1-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.