Profile Picture

Visual Basic Example

Posted By Todd Lichtas Last Year
Author
Message
Todd Lichtas
Posted Last Year
View Quick Profile
Forum Newbie

Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)

Group: Forum Members
Last Active: Last Year
Posts: 3, Visits: 14
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

Nevron Support Team
Posted Last Year
View Quick Profile
Supreme Being

Supreme Being (3,273 reputation)Supreme Being (3,273 reputation)Supreme Being (3,273 reputation)Supreme Being (3,273 reputation)Supreme Being (3,273 reputation)Supreme Being (3,273 reputation)Supreme Being (3,273 reputation)Supreme Being (3,273 reputation)Supreme Being (3,273 reputation)

Group: Moderators
Last Active: 1 days ago @ 8:33 AM
Posts: 2,593, Visits: 2,279
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

Best Regards,
Nevron Support Team





Similar Topics


Reading This Topic