cancel
Showing results for 
Search instead for 
Did you mean: 

System Message with Yes or No Button

Former Member
0 Kudos

Hi Techies,

I need value or which button pressed(Yes/No) for some validation.

If i presses the Yes button only my coding should work.

how can we get this.

Thanks and Regards,

Yadav

Accepted Solutions (0)

Answers (3)

Answers (3)

ANKIT_CHAUHAN
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi,

Try this as follows:

int ithReturnValue;

ithReturnValue = SBO_Application.MessageBox("Do you want to continue ?", 1, "Continue", "Cancel", "");

if (ithReturnValue == 1)

{

     BubbleEvent = true;

}

else

{

     BubbleEvent = false;

}

Hope it helps.

Thanks & Regards

Ankit Chauhan

Former Member
0 Kudos

Hi Krishan,

Use message box

like :

If MsgBox(" Your Message which you want to display ", MsgBoxStyle.YesNo) = MsgBoxResult.Yes Then       

call function()

End If

Regards,

Sandeep kumar

Former Member
0 Kudos

Hi Yadav,

SDK Help file... Application.MessageBox will do the job.

Regards,

Eric

Former Member
0 Kudos

Hi Eric,

I want to get value from system message box with form id =0

with 2 button yes and No.

Thanks and Regards,

YADAV

Former Member
0 Kudos

Hi Yadav,

I had not understood this.

Have to detect the loading of the form 0 (FormLoad event will be triggered) then from it, detect the press of any of the button and act accordingly.

Or "easier": sets an hanlder to the Click event and checks if the owner-form is the 0 one.

But be careful in what you are doing with it, to not interfer with B1's own processing...

Regards,

Eric