Click here to Skip to main content
15,892,005 members
Home / Discussions / Visual Basic
   

Visual Basic

 
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 
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 
Marc Soleda wrote:
Using reflection I just can get the class name/type

No, using reflection you can find properties and you can get their values. 

Marc Soleda wrote:
I have instanciated an object as a class type and with a name.

If you mean the variable name, you can't get it.  If you mean a property on the control, you can get it with reflection, but if you don't know what the variable name is, then you're going to have a hard time.

An event handler is always going to have a control come in, I assume you mean the question more generally.  It's unusual for your code to take an object and for you to have *no* idea what the object will be.



Christian Graus - C++ MVP

'Why don't we jump on a fad that hasn't already been widely discredited ?' - Dilbert

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 
AnswerRe: Creating barcode Generating program Pin
MatthysDT1-Feb-07 1:26
MatthysDT1-Feb-07 1:26 
QuestionCustom message box Pin
Dave McCool31-Jan-07 22:10
Dave McCool31-Jan-07 22:10 
AnswerRe: Custom message box Pin
Christian Graus31-Jan-07 22:21
protectorChristian Graus31-Jan-07 22:21 
QuestionBindingSource.EndEdit [modified] - Why is no-one answering my thread, i want to cry!! Pin
MatthysDT31-Jan-07 21:18
MatthysDT31-Jan-07 21:18 
QuestionVS 2005, Crystal reports replaces chars when exporting to PDF. Pin
Jaggernaut31-Jan-07 20:28
Jaggernaut31-Jan-07 20:28 
QuestionHow to pass parameter from one asp application to another Pin
manasram31-Jan-07 20:25
manasram31-Jan-07 20:25 

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.