Restrict data in a scrolling window

The is in response to a question on the forum, a user asked how to restrict data in a GP scrolling window using VBA. 

I this thread http://dyndeveloper.com/thread.aspx?threadid=630

RedSoxFred details how to do it, I'm copying it to an article so that I can put it on the VBA menu

http://dyndeveloper.com/Menus/VBA.aspx

 

Option Explicit On
Option Strict On
   
   
Imports Microsoft.VisualBasic
Imports System
Imports System.Collections
Imports System.Collections.Generic
Imports Microsoft.Dexterity.Bridge
Imports Microsoft.Dexterity.Applications
Imports Microsoft.Dexterity.Applications.DynamicsDictionary
   
Public Class GPAddIn
    Implements IDexterityAddIn
   
    ' Create variables for the form and window that will be referenced
    WithEvents CustomerLookupScroll As CustomerLookupForm.CustomerLookupScrollScrollingWindow
   
    ' IDexterityAddIn interface
    Sub Initialize() Implements IDexterityAddin.Initialize
        ' Assign the variables for forms and windows that will be used
        CustomerLookupScroll = Dynamics.Forms.CustomerLookup.CustomerLookup.CustomerLookupScroll
    End Sub
   
   
    Private Sub CS_LineFillBeforeOriginal(ByVal sender As Object, ByVal e As System.ComponentModel.CancelEventArgs) Handles CustomerLookupScroll.LineFillBeforeOriginal
        If Dynamics.Forms.CustomerLookup.Tables.RmCustomerMstr.Inactive.Value = True Then
            e.Cancel = True
        End If
    End Sub
   
End Class


RealWorldCode gives developers practical, real‑world solutions with clean, working code — no fluff, no theory, just answers.
Links
Home
Knowledge Areas
Sitemap
Contact
Et cetera
Privacy Policy
Terms and Conditions
Cookie Preferences