web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested Answer

VB.Net form open With Dynamic GP 2018

(0) ShareShare
ReportReport
Posted on by 25

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.

Categories:
I have the same question (0)
  • Suggested answer
    David Musgrave MVP GPUG All Star Legend Moderator Profile Picture
    14,095 Most Valuable Professional on at

    Web Client does not support WinForms only Dexterity based forms.

    Make sure you look at the Visual Studio Integration Toolkit which exposes many "Dexterity only" features to .Net developers.

    http://winthropdc.com/VSIT

    Regards

    David

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 584 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 499 Super User 2025 Season 2

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 254 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans