How to disable a fields by writing code in C# or VB .NET? - InfoPath Dev
in

InfoPath Dev

How to disable a fields by writing code in C# or VB .NET?

Last post 09-27-2010 06:50 AM by nasser. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 09-24-2010 06:22 AM

    How to disable a fields by writing code in C# or VB .NET?

    Hi!

    I wonder how can I make a let si a TextBox disable/read only?

    I want to disable some part of the form based on the user who try to open it but I am not sure how?

    Is there any enable property or some thing like this for nodes?

     

  • 09-24-2010 06:49 AM In reply to

    Re: How to disable a fields by writing code in C# or VB .NET?

    Hi, you can't programatically disable control. I suggest you to configure conditionnal formatting for each control. For example you can set a conditionnal formatting like If( field1 = true) then read only or hide your control and With code set this valus to true.

  • 09-27-2010 06:50 AM In reply to

    Re: How to disable a fields by writing code in C# or VB .NET?

    thanks for your advise, I did think of the same too.

    I am going to try this.

Page 1 of 1 (3 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.