Click here to Skip to main content
15,885,435 members
Home / Discussions / Visual Basic
   

Visual Basic

 
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 
Marc Soleda wrote:
Ok, that's right for a control but, if it isn't, and it's an object instanciated from a class library that after doing this cast doesn't have the Name property, how could I know it?


You can't, as it doesn't have a name.

What you are looking for is the name of the variable the holds the reference to the object. The problem is that there can be more than one variable referencing the object, or if there is a single variable, that variable might not have a name either, e.g. if it's part of an array.


---
Year happy = new Year(2007);

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 
AnswerRe: How to pass parameter from one asp application to another Pin
Christian Graus31-Jan-07 22:22
protectorChristian Graus31-Jan-07 22:22 
AnswerRe: How to pass parameter from one asp application to another Pin
shreekar31-Jan-07 23:56
shreekar31-Jan-07 23:56 
GeneralRe: How to pass parameter from one asp application to another Pin
Christian Graus1-Feb-07 0:18
protectorChristian Graus1-Feb-07 0:18 

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.