Thanks so much for this fellas!! This works great.
For others:
If you’re on a newer version, need to change “invokeExecute” to “InvokeExecute”
You need to completely restart Epicor for it to work after adding in code. Just closing Job Entry and reopening doesn’t work; it won’t scroll to the right spot in the tree.
I added these 2 lines:
...
this.Name = "frmAssyNum";
this.Text = "Enter Assembly Number";
this.AcceptButton = this.btnOK; // Causes Enter to activate OK
this.CancelButton = this.btnCancel; // Causes Esc to activate Cancel
this.ResumeLayout(false);
this.PerformLayout();
...