on 12-11-2011 1:25 AM
I created two forms in Screen painter and I'm stock with the code behind in VB.NET. I don't how to call the 2nd form.
My 1st form is for my Main and in this form it has a button save. I want that when I press Save the 2nd form will show. How can I do that?
Thank you.
Is there anyone who can help me with this?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Well since you have your two SRF Files, you can try this code...
oXmlDoc = New Xml.XmlDocument
oXmlDoc.Load(sStartUpPath & sSRFFilename)
Dim creationPackage As SAPbouiCOM.FormCreationParams
creationPackage = gkSap.mwuiApp.CreateObject(SAPbouiCOM.BoCreatableObjectType.cot_FormCreationParams)
creationPackage.XmlData = oXmlDoc.InnerXml
ReturnForm= gkSap.mwuiApp.Forms.AddEx(creationPackage)
ReturnForm.Visible = True
You basicly load the XML File to the creation package und the set it to visible. All the load functions are an
other story. Hope this helps.
Greetz
Hi
What you want to do on 2nd form ??
You can show 2nd form on the item pressed/clicked event of the button .
Regards
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
99 | |
11 | |
11 | |
6 | |
6 | |
4 | |
4 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.