08-15-2007 04:18 PM
08-16-2007 01:02 PM
08-16-2007 06:54 PM
Hi Trey,
Thanks for the ideas tried everything, critical updates were up-to-date. Installed NET 3.0 though it seemed silly - but it was the only net-related non-critical update. Restart, no joy. Had 7.1.1f2 but re-"installed" it anyway - it's essentially a couple (3) replaced files. Still no clipboard object to select in NET-constructor browser.
Do you have the Windows.System.Forms(1.0.5000.0) assembly on your 7.1.1f2 machine? I do, and the reason I ask is because the object-listing under the 2.0.0.0 assembly looks exactly like the list for the (1.0.5000.0) assembly - as if LabVIEW isn't seeing the 2.0.0.0 objects, only the 1.0.5 objects.
BTW, before applying the patch, System.Windows.Forms (2.0.0.0) wasn't even listed in my [7.1.1] browser. The statement below suggests it was listed in your browser before the patch - this is odd.
On a machine with LabVIEW 7.1 I tried looking for the Clipboard in System.Windows.Forms (2.0.0.0) with no success.
Cheers!
08-17-2007 11:10 AM
08-17-2007 02:41 PM
Hi Trey,
Again, thanks for the help in trying to understand this!
> Is System.Windows.Forms something that comes with .NET?
Yes, I think so - see MSDN link . System.Windows.Forms and the Clibboard object, appear come with the ".NET Framework." as far back as 1.0! This implies I should have been able to [at least] see the Clipboard object before the f2 patch - as you were able to. Something very odd here.
Note: I can see the 2.0.0.0 Clipboard object under LV 8.2.1, just not under LV7.1.1f2 (Win XP 2002, SP2).
Cheers!
08-20-2007 10:19 AM
08-20-2007 04:15 PM
Hi tbd,
I just saw this post so I thought I might put my two cents worth in.
The behavior you are seeing is related to how we display .NET static classes in
the Select .NET Constructor Dialog Box. In LabVIEW 7.1.1 and LabVIEW
8.0, we did not display static classes in that dialog box but in LabVIEW 8.2.1
(I can't remember if it was LabVIEW 8.2 or 8.2.1) we actually showed the user
the static classes. Thus in LabVIEW 8.2.1, you can bring up and see the
Clipboard class in the Select .NET Constructor dialog, but you can't click OK
because there are no constructors (i.e. which makes sense since the Clipboard
class is a static class). In LabVIEW 7.1.1, you get the behavior of not seeing
this class as shown in the attached LV 7.1.1
Constructor snapshot.
It is important to note that .NET static classes cannot be instantiated (i.e.
you can't create objects but rather you directly access the methods and
properties). To call static methods or properties, you
1) Drop down an invoke node or property node from the .NET palette
2) Right-click on the top-left terminal and select Select Class » .NET » Browse from the shortcut menu to display. Then browse to your .NET
assembly (in this case it’s the System.Windows.Forms assembly) and choose your
.NET class (in this case it’s the Clipboard class).
3) Choose a method or property (see
the attached Select Object from 7.1.1
snapshot)
08-22-2007 12:27 AM
Hi Trey, Jonathan,
Sincere thanks to both of you for the continued support, for the solution, and for the education re: static classes.
Trey probably used the right tool by old-habit, where I haven't used .NET much yet and thought a "constructor" was a required first step. Indeed, the Clipboard object is visible (in 7.1.1f2) by following Jonathan's instructions!
Thanks for your patience in educating this .NET nube.
Cheers!