Solved

InfoPath 2013 and Visual Studio 2012

Posted on 2013-10-29
1
862 Views
Last Modified: 2014-01-09
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.

Thanks.
0
Comment
Question by:pmac38CDS
1 Comment
 
LVL 29

Accepted Solution

by:
QPR earned 500 total points
ID: 39664308
Here is a good place to start getting to grips with InfoPath coding.
C# and VB examples and deals with VS2012 and IP2013
http://msdn.microsoft.com/en-us/library/office/aa942693.aspx

Before heading straight for the VB, you might want to look at "rules" in InfoPath. There are many things you can achieve without code.
Such as add a rule to the checkbox control and say if the field gender = M (for example) then set the checkbox property to checked/unchecked/hidden etc
0

Featured Post

Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Recommendation vb6 to vb.net or others 14 109
Red error squiggly on vb.net 7 27
Sharepoint nonfunctional - Emergency 6 30
How to remove double quotes from a string in VB.Net 5 38
I used to be SharePoint evangelist in our company, so my Outlook always full of questions about how to do this, or where I can find that. One day I found such an email with the following question: "how to attach 3-State workflow (one of the workflow…
There is one common problem that all we SharePoint developers share: custom solution deployment. This topic can't be covered fully in this short article, so all I want to do in this one is to review it from a development-to-operations perspectiv…
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now