取消
显示结果 
搜索替代 
您的意思是: 

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 项奖励
1 条消息(共 17 条)
3,855 次查看
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 项奖励
2 条消息(共 17 条)
3,855 次查看
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 项奖励
5 条消息(共 17 条)
3,855 次查看
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 项奖励
6 条消息(共 17 条)
3,855 次查看
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 项奖励
3 条消息(共 17 条)
3,855 次查看
Hi Tom,
Same thing for me...The container remains empty. Anybody have any ideas?
0 项奖励
4 条消息(共 17 条)
3,855 次查看
Try to use directly comdlg32.dll to do the same things. Also, it will be more flexible.
0 项奖励
7 条消息(共 17 条)
3,855 次查看
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 项奖励
8 条消息(共 17 条)
3,855 次查看
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 项奖励
9 条消息(共 17 条)
3,855 次查看
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 项奖励
10 条消息(共 17 条)
3,855 次查看