--- In [email protected], Don Roberts <[EMAIL PROTECTED]> wrote:
>
> This function will test for a string that is the name of a control
on a form:

Thanks.

I got another question, trying to get this subroutine to work.

Public Sub CreateNewLabel(ByVal strName As String)

        Dim strName As Label
        strName = New Label
        strName.Name = "lblTest"
        strName.UseMnemonic = True
        strName.Left = btnAdd.Left
        strName.Top = btnAdd.Top + btnAdd.Height + 5
        strName.Width = lblTest.Left + 160
        strName.Height = lblTest.Top + 10
        strName.Text = "This label can spy on you now."
        strName.BackColor = System.Drawing.Color.AliceBlue
        strName.TextAlign = ContentAlignment.MiddleCenter
        strName.TabIndex = 0

End Sub

What I want this subroutine to do is create a new label whose name is
the value stored in strName.  I'm at a loss for how to make vb.net
look at the value stored in that string, rather than the name of the 
string.








------------------------ Yahoo! Groups Sponsor --------------------~--> 
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/k7folB/TM
--------------------------------------------------------------------~-> 


'// =======================================================
    Rules : http://ReliableAnswers.com/List/Rules.asp
    Home  : http://groups.yahoo.com/group/vbHelp/
    =======================================================
    Post  : [email protected]
    Join  : [EMAIL PROTECTED]
    Leave : [EMAIL PROTECTED]
'// =======================================================
 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/vbhelp/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to