none
Regarding Property Grid Control in .Net RRS feed

  • Question

  • Hi can anybody help me to find whether perticular property exist or not for a perticular control at runtime.
    Tuesday, August 25, 2009 6:53 AM

Answers

  • Hi Sai,

    Thank you for your post.

    You can try the following sample code to get the property of one control at runtime:

    To get the property of label1 when I click Button:

            using System;
            using System.Reflection;
    
            private void button1_Click(object sender, EventArgs e)
            {
                Type t = label1.GetType();
                object b = t.GetProperties();
            }

    BTW, this forum is for the support of .NET Framework installation. I think that the best consulting place should the following forums since your issue is related to programming.
    For VB.NET -  Visual Basic General forum
    For C# - Visual C# General forum
    For C++ - Visual C++ General forum
    For more forums, see: http://social.msdn.microsoft.com/Forums/en-us/categories/

    Hope this helps.

    Best regards,
    Yichun Chen
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.
    Welcome to the All-In-One Code Framework! If you have any feedback, please tell us.
    • Marked as answer by YiChun Chen Tuesday, September 1, 2009 2:49 AM
    Wednesday, August 26, 2009 10:05 AM