By Todd Lichtas - 8 Years Ago
|
I use Visual Basic .NET, and all examples are in C# for .NET
Is there a set of examples for Visual Basic users? I am specifically trying to host a diagram in Windows forms, and am looking for the Visual Basic equivalent of this c# statement:
NNovWidgetHost<NDrawingView> host = new NNovWidgetHost<NDrawingView>(drawingView);
I have this:
Dim host As NNovWidgetHost(Of NDrawingView) = New NNovWidgetHost(Of NDrawingView)
but I do not know how to assign my drawingView variable to it
|
By Nevron Support - 8 Years Ago
|
Following is a snipped that will get you started quickly:
Imports Nevron.Nov.Diagram Imports Nevron.Nov Imports Nevron.Nov.Windows.Forms Imports Nevron.Nov.UI
Public Class Form1
Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
' TODO: Apply license for redistribution here. You can skip this code when evaluating NOV. NLicenseManager.Instance.SetLicense(New NLicense("LICENSE KEY"))
' Install Nevron Open Vision for Windows Forms NNovApplicationInstaller.Install(NDiagramModule.Instance)
' create a drawing view Dim drawingView As New NDrawingView
' host the drawing view Dim host As New NNovWidgetHost(Of NDrawingView)(drawingView) host.Dock = DockStyle.Fill
' add the host in the form controls Controls.Add(host) End Sub End Class
By the way we are also working on providing both examples and help snippets in VB too
|
By John Mitchell - 3 Years Ago
|
|
By Nevron Support - 3 Years Ago
|
Hello John,
Can you please elaborate in more details?
|