Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
85
WebDataMenu - runtime change properties (font/colors)
posted

How do you set the WebDataMenu properties at runtime for:

Font Size

Font Name

Backcolor

Forecolor

Where is the developer guide for this kind of information?

 

  • 3726
    Suggested Answer
    posted

    Hi,

    you can set the properties this way:

    WebDataMenu1.ForeColor = System.Drawing.Color.Azure;
    WebDataMenu1.Font.Bold = true;
    WebDataMenu1.Font.Name = "Verdana";

    These properties come from the Microsoft .NET framework System.Web.UI.WebControls.WebControl class, which is base class for all IG controls.

    For more details how to use those properties you can read here: http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.webcontrol_members(v=VS.80).aspx

    Thanks,

    Lubomir