Windows > Windows Forms Forums > ClickOnce and Setup & Deployment Projects > How to conditionally Enable/disable the next Button in Setup
Ask a questionAsk a question
 

AnswerHow to conditionally Enable/disable the next Button in Setup

  • Monday, May 18, 2009 11:06 AMprashant kate Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    hi
    i created one setup using C# setup project ,
    i want to disable the next button  in Setup when textbox is blank and enable it when user enter value in textbox

    can anyone tell how could i do this operation??

    • Moved byOmegaManMVPTuesday, May 19, 2009 1:34 PM (From:Visual C# General)
    •  

Answers

  • Tuesday, May 19, 2009 5:51 PMPhilWilsonModeratorUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer
    VS setup projects don't have this capability - there's no IDE support for editing the UI events. This is difficult without IDE support - you'd have to edit the ControlEvent table in the MSI file (using Orca) to run code when the text box is valid, or use another setup tool.
    Phil Wilson

All Replies

  • Tuesday, May 19, 2009 5:51 PMPhilWilsonModeratorUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer
    VS setup projects don't have this capability - there's no IDE support for editing the UI events. This is difficult without IDE support - you'd have to edit the ControlEvent table in the MSI file (using Orca) to run code when the text box is valid, or use another setup tool.
    Phil Wilson
  • Friday, November 06, 2009 11:19 AMMalathi.D Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    hi...

    I am struggling with this same problem...
    I created a new textbox dialog (D) in that i tried to add control condition like -   
    CustomTextD -NextButton- Disable-CustomTextD_EDIT1="" but it doesnt work for me..nothing was happend in userinterface

    how to edit ControlEvent for this scenario in orca..

    Thanks in advance...
  • Friday, November 06, 2009 6:37 PMPhilWilsonModeratorUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    That's really beyond the scope of this forum, but there is no simple answer because of all the details of the UI-related tables.

    Actually, I misspoke it's the ControlCondition table that needs updating with a Disable based on the value of your edit box - it looks like you figured that out, but what've got there looks like it should work.
    Phil Wilson
  • Monday, November 09, 2009 9:27 AMMalathi.D Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Hi...

    In My orca editor i specified the control condition  which i specified in my last post..

    When i check with Dialog preview,that particular dialog box's Next button is going to inactive state...

    But these changes is not yet refelected in my UI wizard .. For that what should i do?

    Can you help me for further move?