InfoPath 2013 and Visual Studio 2012
Posted on 2013-10-29
We are trying to help out with a Sharepoint/InfoPath project that someone is working on. We've been asked to help out with code behind buttons for instance. We are using Visual Studido 2012 and coding in Visual Basic. Normally we've always coded WinForm applications so this is new for us. When in the code for a button, nothing seems to work like it does for us in a WinForm button. For instance I can't access say any of the option buttons on the InfoPath form or anything for that matter. Say I wanted to change a check box to be checked for instance. In VB I'd just say checkbox.checked = true or if I wanted to disable I'd say checkbox.enabled = false. I can't seem to do any of that in Visual Basic for the InfoPath forms. I'm wondering if there is just something simple I am missing since this is new for us. Any help would be greatly appreciated.