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
Solved

command line

Posted on 2003-10-27
5
183 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
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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Using "ScreenUpdating" 6 73
using web browser with BING 40 131
Help with retrieving partial value from a column using VB.NET 4 51
checkbox to hide entire section 10 42
I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
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…

839 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