How to show loading image when to send an email in wpf application - wpf

Basically I send an email by clicking on send button. While clicking on send button, I want to show a loading image and it (the image) should automatically hide after the email was sent.

There is an article about here. I think it works for you. Just change visibility of progress bar according to sending mail and its completion.

Related

How to get an alert/confirm dialog box with custom message when refreshing a page

I am trying to show a pop-up (alert/confirm box) with a custom message when a user refreshes a page. The reason is to alert the user that the data they entered might be lost. I have tried working with the 'beforeunload' event -> https://developer.mozilla.org/en-US/docs/Web/API/WindowEventHandlers/onbeforeunload.
It shows a dialog box specific to the browser and the message cannot be modified anymore. Is there a way to show our prompt (alert/confirm) with custom message? If there is, will it cause any security issues?

When a Preference is modified through the right side Toolbar Menu Form, the ToastBar message confirmation is shown to the Form beneath it

I have added the possibility to change a Preferences setting directly in the right side Toolbar. It works fine. However, the ToastBar confirmation messages are shown beneath the Toolbar Form rendering it effectively useless...
Is there a way to bring forth the ToastBar messages?
I suggest using useFormLayeredPane(true) when showing the toast. You can toggle this globally using:
ToastBar.getInstance().useFormLayeredPane(true);

How to continue old conversation in Cortana after user clicks on a card that invokes a URL?

As you can see from the below screenshot, we are able to create a Cortana channel based MS Chatbot that lists out certain information.
When we click on the card, we are getting navigated to the URL's as well but there are additional dialogues post this action. Cortana for some reason doesnt retain this information and we have to start all over again, as it loses its focus. Can someone suggest how to get Cortana to be at the same point where we invoked the URL click action?

Hide button on PDF before flattening in LiveCycle Workbench

ASP.NET application asks user to fill in fields.
User clicks a "Request Signatures" button in the application and a LiveCycle service is called to create the pdf.
The pdf is saved in the ASP.NET application database.
This pdf has to then be digitally signed by 3 people.
A link to the pdf is shown to the first person in the workflow.
User clicks on link and the pdf is shown in the browser for them to digitally sign.
At the bottom of the pdf is a submit button, which the user clicks after signing.
The pdf is submitted to a web page which updates the pdf in the database and through other database tables, is put in the next person's "to-do" list.
2nd & 3rd person repeat #5 - #8
After the 3rd person signs, the pdf is considered complete. The pdf is to be flattened using LiveCycles Output service transformPDF
The problem is the "Submit" button on the form. I have made it "Visible - Screen only" to take care of anyone that wants to print a hard copy anytime during the process. However, I have a feeling the client will complain that the Submit button shows up on screen. Also, the final, flattened pdf should not show the button as it's being submitted to an official repository for these forms in which other forms don't have a submit button.
After the 3rd person signs, I can easily set the submit button presence to hidden. Then when it's flattened, it won't show up. The problem comes when the user wants a "Print View" before or during the signing process.
So my question is can I make a LiveCycle process that takes in a document variable (the pdf with the submit button) and output a document variable (the pdf without the submit button). Meaning the process would have to somehow run javascript inside the pdf to hide the submit button.
That event could be the prePrint event to remove the button from the layout.
And you will need postPrint event to put the button back in.
on the prePrint event of the button(to hide the button):
this.presence = "hidden";
on the postPrint event of the button(to show the button):
this.presence = "visible";

ExtJS 4 uploading files (using CodeIgniter for backend)

I have the standard upload file form from the ExtJS documentations, I create form.Panel with with xtype:filefield and an open and Submit button. And as it is by default when I click Open the browser window is opened and I can choose a file, and then Submit it for saving. But now I\m asked to bypass this and leave only a button with name Open directly on the toolbar and clicking it to open directly the browser window. I don't know even if this is possible and how to do it.
thanks
Leron
Am I understanding this correctly? You need to have a just single button on the page - user clicks button, gets file open dialog and when he presses 'OK' on that dialog form is submitted?
Take a look at the second sample 'Button only'
http://dev.sencha.com/deploy/ext-4.0.0/examples/form/file-upload.html
You are going to want to listen to the filefield.change event, and submit your form when that fires. Example:
http://jsfiddle.net/62gmq/3/

Resources