Skip to main content

Notifications

Announcements

No record found.

Finance | Project Operations, Human Resources, ...
Suggested answer

VB.Net form open With Dynamic GP 2018

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:
  • Suggested answer
    David Musgrave MVP GPUG All Star Legend Moderator Profile Picture
    David Musgrave MVP ... 13,917 Most Valuable Professional on at
    RE: VB.Net form open With Dynamic GP 2018

    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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,253 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,188 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans