Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Get the TextBox object reference by using the name of thi
Message
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Titre:
Get the TextBox object reference by using the name of thi
Divers
Thread ID:
00830947
Message ID:
00830947
Vues:
57
I want to get the TextBox object reference by using the name of this object.
I can reach to this object referance, by putting ".." operator between Forms reference and name of the control (oForm..sObjectName) in Visual Foxpro.
How can I do this in C#

public static string GetObjectFromStr(Form oForm, string sObjectName) // sObjectName = "txtCompanyName"
{
// How can I get oTextBox
TextBox oTextBox = (TextBox) oForm..sObjectName;
}

Thank in advance

Ali Altun
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform