If I understand you want use event UIMessage :
First in InitializeComponent(), add this line :
this.axApplicationMgr.UIMessageEvent += new NationalInstruments.TestStand.Interop.UI.Ax._ApplicationMgrEvents_UIMessageEventEventHandler(this.axApplicationMgr_UIMessageEvent);
and then in your app add this Method :
private void axApplicationMgr_UIMessageEvent(object sender, NationalInstruments.TestStand.Interop.UI.Ax._ApplicationMgrEvents_UIMessageEventEvent e)
{
// If new focus position is send
if (e.uiMsg.Event == UIMessageCodes.UIMsg_UserMessageBase)
{
if (e.uiMsg.NumericData == 1)
{
}
}
}