If I am following you correctly, which I am not sure that I am, I think it
would work but I still have the save initial problem.  How would I bind to
that object when I do not have the object... I just have it's name?

What I know is the name of that object... I have a string that holds its
name... i.e. "FirstName".  What I think I would have to do is create the
object first... but only using the string value of it's name.

Dim obj as object = CreateACopyOfTheObject("FirstName")

I may be missing something here.  Is there a way to reference the strings
declared within the code as an object?  Maybe something like
me.controls.items("FirstName")?  Remember that the actual string that holds
that value that I want is just a local string in the code.  I have the name
of that string from the tag value of the text box.  I just need to connect
the to.

Here's a different way to look at it....

Textbox1.tag = "FirstName"

I want to use the tag to tell the code to put the value of a local defined
string named FirstName... into the Textbox1.text.

Is what you are thinking a way to do that?


-----Original Message-----
From: Discussion of advanced .NET topics.
[mailto:[EMAIL PROTECTED] On Behalf Of Phil Sayers
Sent: Thursday, April 19, 2007 12:10 PM
To: [email protected]
Subject: Re: [ADVANCED-DOTNET] Creating a textbox from a string...

would databinding help you here..

bind the .Text property of your textbox to the "FirstName" property on an
object
?


-----Original Message-----
From: Discussion of advanced .NET topics.
[mailto:[EMAIL PROTECTED] Behalf Of Jon Rothlander
Sent: Thursday, April 19, 2007 1:08 PM
To: [email protected]
Subject: [ADVANCED-DOTNET] Creating a textbox from a string...


Hit send before I finished... I didn't mention that the closest I can come
to what I remember doing in the past is the following.  The only problem
here is that it just pulls in the string's name and not the value of the
string itself.  So this doesn't work.  There is a way to have it pull the
actual value of the string and not just its name.  I just cannot remember
how to do it.

Any help would be very much appreciated.

Best regards,
Jon Rothlander

                        'Sync
                Dim txtbx As New TextBox
                txtbx.Text = CType(sCtrl, Object)
                ctrl.Text = txtbx.Text

===================================
This list is hosted by DevelopMentor.  http://www.develop.com

View archives and manage your subscription(s) at http://discuss.develop.com

===================================
This list is hosted by DevelopMentor.  http://www.develop.com

View archives and manage your subscription(s) at http://discuss.develop.com

===================================
This list is hosted by DevelopMentorĀ®  http://www.develop.com

View archives and manage your subscription(s) at http://discuss.develop.com

Reply via email to