Sub in Opening up a menu item from a custom button in MES

I have a custom dashboard assigned to a button on the MES screen. How does the code differ in C# from VB to Launch the form?

I get the following error:
Object reference not set to an instance of an object.

Below is my code

private void button46_Click(object sender,System.EventArgs args)
{
// Add Event Handler Code
ProcessCaller.LaunchForm(this.oTrans, “UDMMTDSH”);
}

Suggestions?? Please and thanks! :slight_smile:
Carol

The code looks fine, are you trying to write it in VB?

No, I am trying to write it in C#

The code compiles fine, but it will not launch the dashboard. When I click on the button, I get the error message.
The is the detail:
Application Error

Exception caught in: Ice.Lib.EpiClientLib

Error Detail

Message: Object reference not set to an instance of an object.
Program: Ice.Lib.EpiClientLib.dll
Method: LaunchDotNet

Client Stack Trace

at Ice.Lib.Framework.PCallReflector.LaunchDotNet(String assemblyName, String className, Hashtable ctorList, String methodName, Hashtable methodList)

Thank you for your help!
Carol

I’m guessing you’ve verified that that Menu ID is spelled right and it does exist? I don’t know what else it could be.

Jose,
I found that what happened is because it was trying to open a dashboard assembly I had to redeploy the dashboard and then it opened fine.
Live and learn (always the hard way)
thanks for your reply.
Sorry for the late response!
Carol