Solved

command line

Posted on 2003-10-27
5
184 Views
Last Modified: 2010-08-05
Does anyone know a way to get the command line of the parent exe from inside a usercontrol/ocx ?
GetCommandLine API is no good.
0
Comment
Question by:crazyman
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
5 Comments
 

Expert Comment

by:puneetminda
ID: 9632371
Hey We cannot get the command line back from th usercontrol or ocx
0
 
LVL 5

Expert Comment

by:phyderous
ID: 9632692
hi

what do you mean by command line?

the argument use to call the program?
0
 

Expert Comment

by:Hyperon
ID: 9632697
u would hsave to pass itto the ocx, add afunction that passes it to the ocx, or write it into a file on the hard drive, read it in via ocx, then delete the temp. file
0
 
LVL 13

Author Comment

by:crazyman
ID: 9632717
I can get the path of the parent exe easily but i cannot get the command line passed at the end of it, i know i can pass it into the control using a property/function etc... this is no good i need to do it from the control with no action needed outside of the control
0
 
LVL 15

Accepted Solution

by:
SRigney earned 250 total points
ID: 9633380
If you store it in a public property in the form that the control resides on then you can use control.parent.commandlineproperty, or you can use frmMain.commandlineproperty  But as far as good programming practices go it is better to make a property on the control and pass that information to the control from the main form.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction I needed to skip over some file processing within a For...Next loop in some old production code and wished that VB (classic) had a statement that would drop down to the end of the current iteration, bypassing the statements that were c…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question