How to disable a fields by writing code in C# or VB .NET? - InfoPath Dev Sign in | Join | Help in Browser Forms InfoPath (Entire Site) InfoPath Dev InfoPath Dev is dedicated to bringing you the information and tools you need to be successful in your Microsoft Office InfoPath development projects. Home Blogs Forums Photos Downloads InfoPath Dev » InfoPath » Browser Forms » How to disable a fields by writing code in C# or VB .NET? 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: Oldest to newest Newest to oldest Previous Next 09-24-2010 06:22 AM nasser Joined on 09-06-2010 Posts 18 How to disable a fields by writing code in C# or VB .NET? Reply Contact 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 Potemkine Joined on 06-21-2010 Posts 451 Re: How to disable a fields by writing code in C# or VB .NET? Mark as Not AnswerMark as Answer... Reply Contact 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 nasser Joined on 09-06-2010 Posts 18 Re: How to disable a fields by writing code in C# or VB .NET? Mark as Not AnswerMark as Answer... Reply Contact 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.
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?
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.
thanks for your advise, I did think of the same too.
I am going to try this.