How can I display a messagebox like the Microsoft error message in C#.net
The message box should have an OK button and an Show details button.
The Show details button should display the error details. Is there a built in class for this?
Thank you
There isn't a standard dialog to do this; you'll have to create your own Form and display it with a ShowDialog.
You can have the Click event of the 'Details' button change the size of the form and toggle the visibility of the details text.
There is no built in class available to do this.
you can create a custom form with Ok and Show Details button.
set height and width as per the need.
handle click event for the button with appropriate code.
create an instance of this form and use ShowDialog() method to show the dialog box
Related
I would like to prompt a message box that would consist of a label, text box and a button to email the form to the email address added in the text box when the Save button in Orbeon form is clicked. Is there a dialog control suitable for this? Please help.
You'll most likely need to add your own dialog for this. I imagine that this is for a form you're creating with Form Builder. Then the good news is that the upcoming Orbeon Forms 2017.2 will have a new property, oxf.fr.detail.dialogs.custom.*.*, which will allow you to include in your forms dialogs that you've defined in external files.
Please Kindly Help in Making the association between the Dialog and the button in vC++
If by "the Dialog" you mean "the Dialog class" then I assume you're trying to access a dialog button from within the Dialog class for that dialog. If so, then try right-clicking the button in the resource editor and select "Add Variable". This will then add a variable to the dialog class which is associated with the button in the dialog.
In UIMAP.CS file in both the Recorded method and assertion method, I am not able to identify the button click.
Is there any way I can get hold of the button click event?
I am able to get hold the button in to a UITESTCONTROL variable but the options I was able to see are "exists", "enabled","name" etc...
I tried checking it with assertions too when I dragged the cross hair on to the clicked button , assertions are generated only for checking the existence,correctness of text and name but not the events occured on it..
Please help in this regard..
Please make sure that the Control/Object on which you want to use the Click operation is a button and not any Web Element or control which does not support the Click operation.
Once verified, you can do the following:
Record a New Session and while recording click on that button, stop your recording.
Open the UIMap.cs and navigate to that button control. The intellitrace would show you all the available options for that control.
Thanks
Nikhil
I wish to save information entered by user on my form using a dialogue box.
Dialog d=new.dialog();
d.show("save info","Do you want to save?","OK","Cancel");
Can i add a textfield (edit-textbox) in the dialog box for the user to enter the desired name (alphanumeric) before pressing ok. and if not interested he can simply cancel. I will be saving the information as a hashtable in an object with user selected name.
If it cannot be done in dialog what is the next best way. pl add a piece of code or tutorial for better understanding.
Its a mobile app developed in Codename one. Therefore, even LWUIT users can help.
thanks
try this:
Textfield myTF = new textfield();
Dialog abc = new Dialog();//how ever u wish to initialize it
abc.addComponenet(myTF);//add text field to dialog
abc.show();//show dialog.
Note: Dialog extends a Form. so u get the propertied of a form in your dialog.
I am calling one dialog box from another.....before calling 2nd dialog box i am hiding the 1st dialog box using ShowWindow(SW_HIDE) and after finishing the operation on 2nd dialog box i destroy it....now when the control comes back to the function i am using ShowWindow(SW_SHOW) to show the 1st dialog again but it remains hidden..can anybody help me how to show it again????
EX:
Funcn(){
ShowWindow(SW_HIDE);//hide the dialog box 1st
SecondDlg var;//Class variable of 2nd dialog box
var.DoModal();//call the 2nd dialog box
ShowWindow(SW_SHOW);//after executing this statement the dialog still remains hidden...how to show it??
}
Maybe you want to call ShowWindow(SW_RESTORE) instead of SW_SHOW?