[RESOLVED] Enabling button after some events
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3

Thread: [RESOLVED] Enabling button after some events

Hybrid View

  1. #1
    Join Date
    Dec 2009
    Location
    Kathmandu,Nepal
    Posts
    168

    [RESOLVED] Enabling button after some events

    Hello there,

    Suppose there are 2 textboxes and a button in the window. And the button is disabled at the startup and is unclickable. But when User types something in the both textbox the button is enabled and the user can click the button.

    Please download and evaluate the project 'Login Screen.rar' from the following Link. Here is a problem i am trying to solve but I'm running out of Logic here. What i Want to do is disable the Enter Button at the startup and Enable only after something is typed in the Username textbox and password textbox. And again if focus is changed to the textbox after something is written and typed letters are erased the button is disabled again.

    http://www.quickfilepost.com/downloa...2e8e9a57deb4e4


    Thank You
    Last edited by rocky_upadhaya; May 16th, 2010 at 02:29 AM. Reason: spellings and grammers only

  2. #2
    Arjay's Avatar
    Arjay is offline Moderator / MS MVP Power Poster
    Join Date
    Aug 2004
    Posts
    11,359

    Re: Enabling button after some events

    Have you looked at any of the Model View ViewModel patterns and associated WPF samples?

    If you worked through a few of those samples, you may just be able to answer your own question.

  3. #3
    Join Date
    Dec 2009
    Location
    Kathmandu,Nepal
    Posts
    168

    Re: Enabling button after some events

    Thank You...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center