Page 1 of 1

Custom Form Issue

PostPosted: Thu Feb 10, 2022 5:39 pm
by SBarnes
I have added a custom form to Jiwa and when Jiwa tries to open the form I get an error about embedded resources, the culprit line is the line below in the component initialisation code, which if I comment it out the form opens up and works fine.

I've not used the Jiwa tab control on a custom form which is obviously what this related to and line doesn't seem to make a difference to the form so is it safe to comment it out as I am not that familiar with this control?


Code: Select all
this.jtcMainTabs.TabOrderXML = resources.GetString("jtcMainTabs.TabOrderXML");

Re: Custom Form Issue  Topic is solved

PostPosted: Fri Feb 11, 2022 12:09 pm
by Mike.Sheen
SBarnes wrote:I have added a custom form to Jiwa and when Jiwa tries to open the form I get an error about embedded resources, the culprit line is the line below in the component initialisation code, which if I comment it out the form opens up and works fine.

I've not used the Jiwa tab control on a custom form which is obviously what this related to and line doesn't seem to make a difference to the form so is it safe to comment it out as I am not that familiar with this control?


Code: Select all
this.jtcMainTabs.TabOrderXML = resources.GetString("jtcMainTabs.TabOrderXML");


Yes, you can comment that out. We don't use the resources for storing the custom tab information - we set that later by reading from the database and applying it from within the base form classes - and our own forms aren't complaining about these missing resources, so I don't know why yours is.

Technically it is a bug in that the JiwaTabControl is incorrectly adding that designer code to set the TabOrderXML from a resource string - when we should just not even attempt to add that designer code at all.