Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Visual Studio Tools Window Focus

Status
Not open for further replies.

Borvik

Programmer
Jan 2, 2002
1,392
0
0
US
I'm rebuilding one of our plugins for GP 2013 (adding some new features as well), and I'm running into a difficulty.

I'm using VSTM to add a menu item to Inquiry -> Sales (working) - then using that menu item to open a new form (VS form).

Here is the code I'm using to open the new form (using Show vs. ShowDialog to allow the user to still access other GP forms).
Code:
Forms.TrxHistory f = new Forms.TrxHistory();
f.Show();
f.Activate();

On that form I have some payments displayed in a grid - with the payment number a link that is opened using the following:
Code:
Microsoft.Dexterity.Applications.Dynamics.Forms.RmCashInquiry.Procedures.OpenWindow.Invoke

The RmCashInquiry window is indeed opening, however if I close the window the focus then returns to the GP main window, rather than the TrxHistory window that spawned it.

Anyone have any ideas?

Thanks.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top