Dear,
I am Coding in vb.net Using Below Code
Using .NET framework 4.5.1
Imports Microsoft.VisualBasic
Imports System
Imports System.Collections
Imports System.Collections.Generic
Imports Microsoft.Dexterity.Bridge
Imports Microsoft.Dexterity.Applications
<SupportedDexPlatforms(DexPlatforms.DesktopClient Or DexPlatforms.WebClient)>
Public Class GPAddIn
Implements IDexterityAddIn
' IDexterityAddIn interface
Shared ItemFrm As Microsoft.Dexterity.Applications.DynamicsDictionary.IvItemMaintenanceForm = Microsoft.Dexterity.Applications.Dynamics.Forms.IvItemMaintenance
Shared ItemWin As Microsoft.Dexterity.Applications.DynamicsDictionary.IvItemMaintenanceForm.IvItemMaintenanceWindow = ItemFrm.IvItemMaintenance
Dim ItemEvt As System.EventHandler
Public Shared TestForm As DynamicsGPForm1
Sub Initialize() Implements IDexterityAddin.Initialize
ItemEvt = New System.EventHandler(AddressOf show_form)
ItemFrm.AddMenuHandler(ItemEvt, "Open Test Form", "T")
End Sub
Private Sub show_form(ByVal sender As Object, ByVal e As EventArgs)
If TestForm Is Nothing Then
Try
TestForm = New DynamicsGPForm1
Catch ex As Exception
Dynamics.Forms.SyVisualStudioHelper.Functions.DexError.Invoke(ex.Message)
End Try
End If
TestForm.Show()
TestForm.Activate()
End Sub
End Class
----------------Code in Form-----------------------------
Imports Microsoft.VisualBasic
Imports System
Imports System.Drawing
Imports System.Windows.Forms
Imports Microsoft.Dexterity.Bridge
Imports Microsoft.Dexterity.Applications
Imports Microsoft.Dexterity.Shell
<WCCompliantWindow(True)>
Public Class DynamicsGPForm1
Inherits DexUIForm
Private Sub DynamicsGPForm1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
End Sub
End Class
In Additional Menu in Item Maintenance form Menu is Showing but when Click on Form is not open in Web Client Environment. but it is work in Desktop Environment in Dynamics GP 2018.