How to Change the Button text
  • I have mdi form which has login button 
    if i click the login button the login form is open . In login form there are 2 buttons ok & close button.
    if i click the close button  mdi form's login button.text should be change 
    plz help me 
  • 1 Comment sorted by
  • Vote Up0Vote Down WaqasWaqas
    172.00 Karma Accepted Answer
    you should define a public static variable in MDI form
    public static string btnLoginText="";

     and access this value from login form close button event

    MDIFromName.btnLoginText="Your Desired Text";

    now set it on MDIFrom button text

Howdy, Stranger!

It looks like you're new here. If you want to get involved, or you want to Ask a new Question, Please Login or Create a new Account by Clicking below

Login with Facebook

Popular Posts of the Week