NodeXLcontrol type not showing up in visual basic 2008

Oct 20, 2012 at 1:11 PM

hi

 

I added references to smrf.nodexl.core, applications and layout, plus  visualization.wpf, but this:

Smrf.NodeXL.Visualization.Wpf.NodeXLControl

 

does not show up.

 

I am trying to add a graph visualization to a form application (not WPF)

 

I tried to follow the example in the NodeXLControl class help, but the type is simply not present

I also have the :

Imports Smrf.NodeXL.Core
Imports Smrf.NodeXL.Layouts

Imports Smrf.NodeXL.Algorithms
Imports Smrf.NodeXL.Visualization.Wpf)

in the form :-(

 

Thanks!

Oct 22, 2012 at 1:23 AM

Not showing up where?  If you mean that it is not showing up in Visual Studio's Toolbox window, then do this:

1. Right-click within the Toolbox window and select Choose Items.

2. In the Choose Toolbox Items dialog box, select the WPF Components tab.

3. Click the Browse button, then navigate to and select the Microsoft.NodeXL.Control.Wpf.dll file.

If that's not what you're asking, please provide more information.

-- Tony

Oct 22, 2012 at 9:00 PM
hi Tony

thanks for your quick reply

the control does not show in the name space, after adding the ddl as a
reference for the project

if I do the browsing from the toolbox, and select the file
"Smrf.NodeXL.Control.Wpf.dll", (what is on the last downloadable
version), VB returns "There are no components in
Smrf.NodeXL.Control.Wpf.dll that can be placed on the toolbox"


I am doing this from VB .net 2008

regards

On Mon, Oct 22, 2012 at 2:23 AM, [email removed] wrote:
> From: tcap479
>
> Not showing up where? If you mean that it is not showing up in Visual
> Studio's Toolbox window, then do this:
>
> 1. Right-click within the Toolbox window and select Choose Items.
>
> 2. In the Choose Toolbox Items dialog box, select the WPF Components tab.
>
> 3. Click the Browse button, then navigate to and select the
> Microsoft.NodeXL.Control.Wpf.dll file.
>
> If that's not what you're asking, please provide more information.
>
> -- Tony
>
> Read the full discussion online.
>
> To add a post to this discussion, reply to this email
> ([email removed])
>
> To start a new discussion for this project, email
> [email removed]
>
> You are receiving this email because you subscribed to this discussion on
> CodePlex. You can unsubscribe on CodePlex.com.
>
> Please note: Images and attachments will be removed from emails. Any posts
> to this discussion will also be available online at CodePlex.com



--
----
Javier Contreras Albesa
Oct 22, 2012 at 11:28 PM

Javier:

I don't get that error message -- the NodeXLControl gets successfully added to the Toolbox for me -- but the control is shown in the Toolbox as unavailable because my Visual Basic project is Windows Forms, and the Toolbox apparently won't show WPF controls (NodeXLControl is a WPF control) in Windows Forms project.  If instead I had a WPF project, the Toolbox would show the NodeXLControl as available, and I could drag it onto a WPF window.

So we probably shouldn't spend time trying to figure out why you are getting an error message and I'm not, because a disabled Toolbox control isn't of much use to anyone in any case.  I don't actually know how to use the Visual Studio designer to allow dragging a NodeXLControl from the Toolbox to a Windows Forms form, as you want to do.  In the NodeXLControl Class topic in the NodeXLApi.chm help file, I included sample code for adding the control to the form programmatically instead of at design time, and that's the solution I suggest for you.

-- Tony

Oct 23, 2012 at 4:45 AM
Hi

yes, I also tried using the programmatically approach, but even if I
see multiple objects from the nodeXL space (graph, etc), specifically
the name NodeXLControl is not showing up, and it is seen with error as
unknown name. The dll is accepted as a valid reference, and I have
included it in the name space... so kind of stuck now

I will give a try migrating the project to VB 2010, to see if that helps

regards

On Tue, Oct 23, 2012 at 12:28 AM, tcap479 <notifications@codeplex.com> wrote:
> From: tcap479
>
> Javier:
>
> I don't get that error message -- the NodeXLControl gets successfully added
> to the Toolbox for me -- but the control is shown in the Toolbox as
> unavailable because my Visual Basic project is Windows Forms, and the
> Toolbox apparently won't show WPF controls (NodeXLControl is a WPF control)
> in Windows Forms project. If instead I had a WPF project, the Toolbox would
> show the NodeXLControl as available, and I could drag it onto a WPF window.
>
> So we probably shouldn't spend time trying to figure out why you are getting
> an error message and I'm not, because a disabled Toolbox control isn't of
> much use to anyone in any case. I don't actually know how to use the Visual
> Studio designer to allow dragging a NodeXLControl from the Toolbox to a
> Windows Forms form, as you want to do. In the NodeXLControl Class topic in
> the NodeXLApi.chm help file, I included sample code for adding the control
> to the form programmatically instead of at design time, and that's the
> solution I suggest for you.
>
> -- Tony
>
> Read the full discussion online.
>
> To add a post to this discussion, reply to this email
> ([email removed])
>
> To start a new discussion for this project, email
> [email removed]
>
> You are receiving this email because you subscribed to this discussion on
> CodePlex. You can unsubscribe on CodePlex.com.
>
> Please note: Images and attachments will be removed from emails. Any posts
> to this discussion will also be available online at CodePlex.com



--
----
Javier Contreras Albesa
Oct 23, 2012 at 5:50 AM

Javier:

I think I'm misunderstanding your question.  Can you tell me exactly what the problem is?  Are you getting a compiler error when you attempt to compile your project?  If so, please paste the compiler error message here and I can try to figure out the cause.

-- Tony

Oct 24, 2012 at 11:04 AM
Hi

I can confirm that moving project to Visual studio 2012, and redoing
the references, adds the NodeXLControl into the namespace
now I can programatically reference that definition

it seems the nodexl class libraries are not fully compatible with VB 2008

Thanks for your replies!

On Tue, Oct 23, 2012 at 6:50 AM, [email removed] wrote:
> From: tcap479
>
> Javier:
>
> I think I'm misunderstanding your question. Can you tell me exactly what
> the problem is? Are you getting a compiler error when you attempt to
> compile your project? If so, please paste the compiler error message here
> and I can try to figure out the cause.
>
> -- Tony
>
> Read the full discussion online.
>
> To add a post to this discussion, reply to this email
> ([email removed])
>
> To start a new discussion for this project, email
> [email removed]
>
> You are receiving this email because you subscribed to this discussion on
> CodePlex. You can unsubscribe on CodePlex.com.
>
> Please note: Images and attachments will be removed from emails. Any posts
> to this discussion will also be available online at CodePlex.com



--
----
Javier Contreras Albesa
Oct 24, 2012 at 4:18 PM

"it seems the nodexl class libraries are not fully compatible with VB 2008"

No, that is incorrect.  The NodeXL class libraries can certainly be used with Visual Basic 2008; I just tried it.

My guess is that while rebuilding your solution in Visual Studio 2012, you fixed whatever mistake you made in your Visual Studio 2008 project.  But you never sent me your error message, so we couldn't track down the mistake.

You do not need Visual Studio 2012 to use NodeXL in Visual Basic.

-- Tony