Profile Picture

Visual Basic Example

Posted By Todd Lichtas 8 Years Ago
Author
Message
Todd Lichtas
Posted 8 Years Ago
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: 8 Years Ago
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
Posted 8 Years Ago
View Quick Profile
Supreme Being

Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)

Group: Forum Members
Last Active: 2 Weeks Ago
Posts: 3,054, Visits: 4,015
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



John Mitchell
Posted 3 Years Ago
View Quick Profile
Forum Newbie

Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)

Group: Forum Members
Last Active: 3 Years Ago
Posts: 1, Visits: 1


Nevron Support
Posted 3 Years Ago
View Quick Profile
Supreme Being

Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)

Group: Forum Members
Last Active: 2 Weeks Ago
Posts: 3,054, Visits: 4,015
Hello John,

Can you please elaborate in more details?


Best Regards,
Nevron Support Team





Similar Topics


Reading This Topic