error control add-in
SINOEUNSTEVENNEANG
Member Posts: 202
i get the error when i try to use add-in on RTC page. and really don't know what's wrong with it
my code
==================================================
Imports System
Imports System.Collections.Generic
Imports System.Text
Imports Microsoft.Ink
Imports System.Drawing
Imports Microsoft.Dynamics.Framework.UI.Extensibility
Imports Microsoft.Dynamics.Framework.UI.Extensibility.WinForms
Imports System.Windows.Forms
Namespace NavInkControl
<ControlAddInExport("blueTechnology.bt_i.khmertextbox")> _
Public Class khmertextbox
Inherits WinFormsControlAddInBase
' Implements IObjectControlAddInDefinition
Private _SNTEXTBOX As TextBox
Private _loaded As Boolean = False
''' Creates the control for displaying and adding signatures.
Protected Overrides Function CreateControl() As Control
_SNTEXTBOX = New TextBox
Dim a As InkDivisionType
' _inkControl.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D
' _inkControl.MinimumSize = New Size(40, 50)
' _inkControl.MaximumSize = New Size(Int16.MaxValue, 100)
_SNTEXTBOX.Font = New Font("Limon S1", 15, FontStyle.Bold, GraphicsUnit.Display, 0)
Return _SNTEXTBOX
End Function
#Region "IObjectControlAddInDefinition Members"
Public Event ControlAddIn As ControlAddInEventHandler
''' Gets a value indicating whether the Value property instance has changed. true if this instance has changed its value; otherwise, false.
Public ReadOnly Property HasValueChanged() As Boolean
Get
Return _SNTEXTBOX.Text
End Get
End Property
''' Gets or sets the value.
Public Property Value() As Object
Get
'Return Me._inkControl.Ink.Save()
Return Me._SNTEXTBOX.Text
End Get
Set(ByVal value As Object)
Me._SNTEXTBOX.Text = value
End Set
End Property
#End Region
End Class
End Namespace
my code
==================================================
Imports System
Imports System.Collections.Generic
Imports System.Text
Imports Microsoft.Ink
Imports System.Drawing
Imports Microsoft.Dynamics.Framework.UI.Extensibility
Imports Microsoft.Dynamics.Framework.UI.Extensibility.WinForms
Imports System.Windows.Forms
Namespace NavInkControl
<ControlAddInExport("blueTechnology.bt_i.khmertextbox")> _
Public Class khmertextbox
Inherits WinFormsControlAddInBase
' Implements IObjectControlAddInDefinition
Private _SNTEXTBOX As TextBox
Private _loaded As Boolean = False
''' Creates the control for displaying and adding signatures.
Protected Overrides Function CreateControl() As Control
_SNTEXTBOX = New TextBox
Dim a As InkDivisionType
' _inkControl.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D
' _inkControl.MinimumSize = New Size(40, 50)
' _inkControl.MaximumSize = New Size(Int16.MaxValue, 100)
_SNTEXTBOX.Font = New Font("Limon S1", 15, FontStyle.Bold, GraphicsUnit.Display, 0)
Return _SNTEXTBOX
End Function
#Region "IObjectControlAddInDefinition Members"
Public Event ControlAddIn As ControlAddInEventHandler
''' Gets a value indicating whether the Value property instance has changed. true if this instance has changed its value; otherwise, false.
Public ReadOnly Property HasValueChanged() As Boolean
Get
Return _SNTEXTBOX.Text
End Get
End Property
''' Gets or sets the value.
Public Property Value() As Object
Get
'Return Me._inkControl.Ink.Save()
Return Me._SNTEXTBOX.Text
End Get
Set(ByVal value As Object)
Me._SNTEXTBOX.Text = value
End Set
End Property
#End Region
End Class
End Namespace
0
Comments
-
If you write
ControlAddInExport("blueTechnology.bt_i.khmertextbox")
then AFAIK that is the "Control Add-In Name" you use to set up in the Add-In table in NAV.Thomas Martin
NAV Developer0 -
SINOEUNSTEVENNEANG wrote:i get the error when i try to use add-in on RTC page. and really don't know what's wrong with it
my code
==================================================
Imports System
Imports System.Collections.Generic
Imports System.Text
Imports Microsoft.Ink
Imports System.Drawing
Imports Microsoft.Dynamics.Framework.UI.Extensibility
Imports Microsoft.Dynamics.Framework.UI.Extensibility.WinForms
Imports System.Windows.Forms
Namespace NavInkControl
<ControlAddInExport("blueTechnology.bt_i.khmertextbox")> _
Public Class khmertextbox
Inherits WinFormsControlAddInBase
' Implements IObjectControlAddInDefinition
Private _SNTEXTBOX As TextBox
Private _loaded As Boolean = False
''' Creates the control for displaying and adding signatures.
Protected Overrides Function CreateControl() As Control
_SNTEXTBOX = New TextBox
Dim a As InkDivisionType
' _inkControl.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D
' _inkControl.MinimumSize = New Size(40, 50)
' _inkControl.MaximumSize = New Size(Int16.MaxValue, 100)
_SNTEXTBOX.Font = New Font("Limon S1", 15, FontStyle.Bold, GraphicsUnit.Display, 0)
Return _SNTEXTBOX
End Function
#Region "IObjectControlAddInDefinition Members"
Public Event ControlAddIn As ControlAddInEventHandler
''' Gets a value indicating whether the Value property instance has changed. true if this instance has changed its value; otherwise, false.
Public ReadOnly Property HasValueChanged() As Boolean
Get
Return _SNTEXTBOX.Text
End Get
End Property
''' Gets or sets the value.
Public Property Value() As Object
Get
'Return Me._inkControl.Ink.Save()
Return Me._SNTEXTBOX.Text
End Get
Set(ByVal value As Object)
Me._SNTEXTBOX.Text = value
End Set
End Property
#End Region
End Class
End Namespace
i found my mistake .thanks so much
0
Categories
- All Categories
- 75 General
- 75 Announcements
- 66.7K Microsoft Dynamics NAV
- 18.8K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 610 NAV Courses, Exams & Certification
- 1.9K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 251 Dynamics CRM
- 103 Dynamics GP
- 6 Dynamics SL
- 1.5K Other
- 991 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 28 Design Patterns (General & Best Practices)
- Architectural Patterns
- 9 Design Patterns
- 4 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1K General Chat
- 1.6K Website
- 77 Testing
- 1.2K Download section
- 23 How Tos section
- 249 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions