LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Why can't LabVIEW use the common dialogue control?

Hi,

I was trying to place Microsoft's common dialogue control (6) into an active
x container in LabVIEW 6.02. The container remains empty. I am running
Windows 2000. I tried it on another Labview 6.02/Windows 2000 machine with
the same results. Can you tell me why I can not use this control? (I was
able to use other Microsoft controls this way, but I needed the common
dialogue control.)

Thanks.
0 Kudos
Message 1 of 17
(3,701 Views)
The common dialog control is used to display several common dialogs in windows. You can place the control in the container and then use an invoke node to launch a specfic dialog, and use property nodes too set options and read results of the dialog.

Attached is a simple examlpe of using the open dialog.

Brian
0 Kudos
Message 2 of 17
(3,701 Views)
Do you know where to get the documentation on the methods/properties
available for this dialog?
"Brian Vibert" wrote in message
news:506500000005000000523E0000-998794254000@exchange.ni.com...
> The common dialog control is used to display several common dialogs in
> windows. You can place the control in the container and then use an
> invoke node to launch a specfic dialog, and use property nodes too set
> options and read results of the dialog.
>
> Attached is a simple examlpe of using the open dialog.
>
> Brian
0 Kudos
Message 5 of 17
(3,701 Views)
If you happen to have Visual Basic installed then it is in the help for that. If not then you can check out Microsoft's web site. The following link should bring you to what you want:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vbcon98/html/vbconcommondialogcontrol.asp

Hope this helps. If you need more information, feel free to ask.

Brian
0 Kudos
Message 6 of 17
(3,701 Views)
Hi Tom,
try to use (or at least to insert) that control in another environment (like a Visual Basic form) in order to check if it's working properly. Also, check if you have the DLL with the same name in your system folder - this control it's just a simpler way to use that dll.
0 Kudos
Message 3 of 17
(3,701 Views)
Hi Tom,
Same thing for me...The container remains empty. Anybody have any ideas?
0 Kudos
Message 4 of 17
(3,701 Views)
Try to use directly comdlg32.dll to do the same things. Also, it will be more flexible.
0 Kudos
Message 7 of 17
(3,701 Views)
Okay, I need some help here. I can't get the common dialog control to work. Here's what I do:
1. From front panel, I drop an active x container.
2. I right click on the empty container and choose "insert active x object"
3. I find "Microsoft Common Dialog Control, version 6.0" and select it.
4. The active x container remains empty!!

What am I doing wrong? I regestered the control via regsvr32.exe and it said sucessful. Thanks!
0 Kudos
Message 8 of 17
(3,701 Views)
Is the label changing ? Did you tried to access a property or method in Diagram ? ... maybe it's just a problem with the picture.
0 Kudos
Message 9 of 17
(3,701 Views)
Hi Labviewer,
No, the label isn't changing. Still says "container".
Also, when I try to run the example attached by Brian, I get error 97 "Unknown system error in commondialog.vi"
Any help is appreciated.
0 Kudos
Message 10 of 17
(3,701 Views)