Here is an example for V8.03.405:
Obviously this is VB and you are using C# but you should get the general idea.
You need to define a EpiTextBox in code that you can access.
In the form load event, you need to get a reference to the base form control and set your text box to be that reference. Then you can access the properties ex: txtPart.Text
Module Script
'// ** Wizard Insert Location - Do Not Remove 'Begin/End Wizard Added Module Level Variables' Comments! **
'// Begin Wizard Added Module Level Variables **
'// End Wizard Added Module Level Variables **
'// Add Custom Module Level Variables Here **
dim txtPart as EpiTextBox
Sub InitializeCustomCode()
'// ** Wizard Insert Location - Do not delete 'Begin/End Wizard Added Variable Intialization' lines **
'// Begin Wizard Added Variable Intialization
'// End Wizard Added Variable Intialization
'// Begin Custom Method Calls
'// End Custom Method Calls
End Sub
Sub DestroyCustomCode()
'// ** Wizard Insert Location - Do not delete 'Begin/End Wizard Added Object Disposal' lines **
'// Begin Wizard Added Object Disposal
'// End Wizard Added Object Disposal
'// Begin Custom Code Disposal
'// End Custom Code Disposal
End Sub
Private Sub IssueMaterialForm_Load(ByVal sender As object, ByVal args As EventArgs) Handles IssueMaterialForm.Load
'//
'// Add Event Handler Code
'//
txtPart = CType(csm.GetNativeControlReference("26fb08e8-8d2e-4d2f-88e5-9f9a8797cc2b"), EpiTextBox)
End Sub
End Module
Obviously this is VB and you are using C# but you should get the general idea.
You need to define a EpiTextBox in code that you can access.
In the form load event, you need to get a reference to the base form control and set your text box to be that reference. Then you can access the properties ex: txtPart.Text
Module Script
'// ** Wizard Insert Location - Do Not Remove 'Begin/End Wizard Added Module Level Variables' Comments! **
'// Begin Wizard Added Module Level Variables **
'// End Wizard Added Module Level Variables **
'// Add Custom Module Level Variables Here **
dim txtPart as EpiTextBox
Sub InitializeCustomCode()
'// ** Wizard Insert Location - Do not delete 'Begin/End Wizard Added Variable Intialization' lines **
'// Begin Wizard Added Variable Intialization
'// End Wizard Added Variable Intialization
'// Begin Custom Method Calls
'// End Custom Method Calls
End Sub
Sub DestroyCustomCode()
'// ** Wizard Insert Location - Do not delete 'Begin/End Wizard Added Object Disposal' lines **
'// Begin Wizard Added Object Disposal
'// End Wizard Added Object Disposal
'// Begin Custom Code Disposal
'// End Custom Code Disposal
End Sub
Private Sub IssueMaterialForm_Load(ByVal sender As object, ByVal args As EventArgs) Handles IssueMaterialForm.Load
'//
'// Add Event Handler Code
'//
txtPart = CType(csm.GetNativeControlReference("26fb08e8-8d2e-4d2f-88e5-9f9a8797cc2b"), EpiTextBox)
End Sub
End Module
--- In vantage@yahoogroups.com, Stephen Freeman <stephenf@...> wrote:
>
> In "Issue Material" I've got a button added to call another UI which is the UD100 table with some custom data. The Key1 field in UD100 are valid Part Numbers. I wanted to take the data that was in the Part Number field(txtPart) and pass it as a variable when opening the Part Size UI. I can "force" a part number but can't use txtPart.Text in there or I get an error "The name 'txtPart' does not exist in the current context".
>
>
>
> private static void epiButtonC1_Click(object sender, System.EventArgs args)
> {
> // ** Place Event Handling Code Here **
>
> LaunchFormOptions lfo = new LaunchFormOptions();
> lfo.IsModal = false;
> lfo.SuppressFormSearch = true;
> ProcessCaller.LaunchForm(oTrans, "UDpartSz", "01A020125");
> }
>
> What am I missing here.
>
>
> [Non-text portions of this message have been removed]
>