on 01-14-2014 1:56 PM
Hi, my question is how can I to close a windows "without" close the main window?
I try using close();, hiding the window, sending the [ESC] key but this close the parent window.
Thanks.
Where you recommend me to catch the active form?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi, is SAP Business One 9.0
oForm.Close() give me an error due at I dont know, current thread execution I dont remember the complete error description.
[ESC] close me all windows. I want to close only the windows on focus.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I open from a menu
public void SBO_Application_MenuEvent(ref SAPbouiCOM.MenuEvent pVal, out bool BubbleEvent)
{
BubbleEvent = true;
try
{
..... some code ....
if (pVal.BeforeAction && pVal.MenuUID == "SubMenu0105")
{
//SAPbouiCOM.Framework.Application.SBO_Application.MessageBox("No implementado",1,"","","");
FormHotel formHotel = new FormHotel();
formHotel.Show();
}
... catch finally etc....
I close this windows so:
on init form
Form oForm = null;
SAPbobsCOM.Company compania = Program.oCompania;
public FormHotel()
{
oForm = SAPbouiCOM.Framework.Application.SBO_Application.Forms.ActiveForm;
//etc code..
}
..............
private void Button0_ClickBefore(object sboObject, SBOItemEventArg pVal, out bool BubbleEvent)
{
BubbleEvent = true;
oForm.Close();
}
Hi Pablo,
If you want to Close the form you can use the Form object .Close method.
Ex. If oForm is the object of form then,
oForm.Close();
-Regards
Vikas
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
All SAP forms can close using [ESC] button. What SBO version you are using?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
What version?
To close a window, you need to call the Close method of the Form instance you want to close.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
108 | |
12 | |
11 | |
6 | |
5 | |
4 | |
3 | |
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.