I want to prevent the entry of the PO number on the Purchase Order Entry screen using C#. I thought this would be sufficient:
PopPoEntryWindow.PoNumber.Lock(); after capturing the event PopPoEntryWindow.PoType.LeaveAfterOriginal += new EventHandler(POPEntry_Open);
This correctly disables the entry of the PO number however GP comes up with not the next PO number but a PO number that appears as if GP is trying to fill a gap.
What is the correct combination of events to capture to simply make the PO number non-editable but still have it get the next PO number from the PO Setup table?