NI Home
Cart Cart | Help
Hello Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI
You are here: 
NI Home > NI Developer Zone > NI Discussion Forums


HiQ

Reply
Member
Rfils
Posts: 4
0 Kudos

how to launch an other application (like notepad) in a different window by using an ActiveX control in HiQ?

I am using HiQ and I would like to use a Control ActiveX to launch an other application like Notepad in a different window.
Could you help me?

Best regards,

rfils@yahoo.com
Active Participant
JeanPierre
Posts: 1,056
0 Kudos

Re: how to launch an other application (like notepad) in a different window by using an ActiveX control in HiQ?

Take a look at the help for the CreateInterface function. Notepad.exe doesn't have an ActiveX so you have to start it with a command line shell. I don't recall for the moment the function in HiQ that allows that.


LabVIEW, C'est LabVIEW

Member
Rfils
Posts: 4
0 Kudos

Re: how to launch an other application (like notepad) in a different window by using an ActiveX control in HiQ?

First, I built an ActiveX Control in Visual Basic:

Private Sub cmd_start_Click(Index As Integer)
Dim RetVal
RetVal = Shell("NOTEPAD.exe", 1) ' Run Notepad.
End Sub

Then, I inserted this OCX file in my HiQ notebook and I was able to load Notepad application with a single click.
Eureka!

Rodeney Fils
Member
Crickett
Posts: 3
0 Kudos

Re: how to launch an other application (like notepad) in a different window by using an ActiveX control in HiQ?

Thanks for the instructions.

It looks to me that this only launches notepad.

Is there a way to embed this so it looks like it is part of the LV / ActiveX app?
By using this web site, you accept the Terms of Use for this web site. Please read these Terms of Use carefully before using any part of this site. Please go here for information on ni.com's copyright infringement policy.
My Profile | Privacy | Legal | Contact NI © 2011 National Instruments Corporation. All rights reserved.    |    E-Mail this Page E-Mail this Page