Assigning Material via iLogic and MS Visual Studio 2010 Express

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I have managed to create a form in MS Visual Studio 2010 Express with a simple combo box that is called from an iLogic rule in INV 2011 (SP1). This combo box is then populated with a list generated from the iProperties Materials. MS VS is set to compile for .NET Framework 3.5
When I run the rule, I always get this error message:
"Object Reference not set to an instance of an Object"
The details of this error message are not clear to me - WHAT object is not having an instance set???
I can accept the error and the part in the ipt file is duly changed to the material I selected in the combo box, but I cannot get the error to go away.
The offending code in the VB project seems to be following:
Private Sub ComboBox1_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ComboBox1.SelectedIndexChanged
iProperties.Value = "Design Tracking Properties", "Material") = ComboBox1.Text
iProperties.Material = ComboBox1.Text
ILogicVB.Document Update()
End Sub
It may also be possible that "Design Tracking Properties" is not correct. I have included in the attached zip file a screen shot of the error message, the ipt file with embedded iLogic Rule, and the entire Combo_MAT_Test project complete with compiled Comb-MAT_Test.dll (in the bin/Release sub folder) that is being called from the iLogic rule.
I am just beginning in both iLogic and VB, so slowly, please! Any help greatly appreciated!!
Thanks
Mike
Win7 Pro 64 bit, MS Office 2010