Thanks for both of your input and help. That got me past that issue. Now this is the first time I have used Messaging and I get the following error:
LocalizationKeyNotFoundException
The specified key [numberofchecksneeded] was not found within the messaging database.
FileNotFoundException
The file [../../messages\Message_Languages.xml] could not be found. The localization languages table could not be loaded.
Source : MicroFour StrataFrame Base
Stack Trace:
at MicroFour.StrataFrame.UI.Localization.LoadLanguageTable(Boolean IgnoreExceptions)
at MicroFour.StrataFrame.UI.Localization.LoadXmlFile(Int32 LocaleID)
at MicroFour.StrataFrame.UI.Localization.GetKeyRowFromXml(String Key)
at MicroFour.StrataFrame.UI.Localization.GetKeyFromXml(String MessageKey)
at MicroFour.StrataFrame.UI.Localization.RetrieveMessage(String MessageKey)
at MicroFour.StrataFrame.Messaging.MessageForm.ShowMessageByKey(String MessageKey, Object[] ReplacementValues)
at ProRodeoChecks.ChecksInfoBBfrm.btnfill_Click(Object sender, EventArgs e)
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ButtonBase.WndProc(Message& m)
at System.Windows.Forms.Button.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativewindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativewindow.WndProc(Message& m)
at System.Windows.Forms.Nativewindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
I know it says it can not find the Message_Language.xml file and therefore it can not find the particular message. I tried copying in the complete Subdirectory where my messages are and I also copied in the 2 individual files into the #TargetDir$ and that did not work.
In my AppMain I have the following:
MicroFour.StrataFrame.UI.Lcalization.MessageXmlPath = "../../messages"
Should I maybe make that "messages"????????
TIA.