Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations waross on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

PropertyManager API VB.net 1

Status
Not open for further replies.

JaconHarbour

Mechanical
Apr 17, 2007
28
US
Let me try this again.

I have a program I am writing and I have very little experience with vb.net. I am trying to figure out how to bring information from a textbox in the property manager, using the swPropertyManagerPageControlType_e.swControlType_Textbox command.
 
Replies continue below

Recommended for you

swPropertyManagerPageControlType_e.swControlType_Textbox is not a command. It is 5.

What have you managed to achieve so far? If you have created controls on a PMP, you must have used the command AddControl. This command returns a PropertyManagerPageControl object. You can query this object for its Text property.

-handleman, CSWP (The new, easy test)
 
Yes, I Have been able to create a page, and everything looks great. How do I query the text property.
 
OK. You used the AddControl method, right? That line should look something like

myControl = myPMPpage.AddControl(some arguments).

To get the text, use

SomeStringVariable = myControl.Text

-handleman, CSWP (The new, easy test)
 
Thank you. I have been able to get it now.

You got me into the right direction. I was able to retrieve the data as long I was in the same module. So my final line ended up as

BSTR = UserPMPage.textbox1.text


 
I'm relatively new to all this as well. I need to get the data from a PMP, but with a small catch (maybe)!

I'm creating a "product configurator" using the PMP. I've got the PMP layed out, it looks great. I don't want any code to execute until the user clicks OK. So my main sub starts the PMP, and makes sure the user has selected the appropriate component.

Then, in the PMP event handler class OnClose event, I have a call to a second sub in the same module as the main. How can I get the inputs from the PMP into the second sub?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top