everyone. We are using XAF framework in our project and I need to show a popup something like "Process was completed successfully" that indicates some process has been done successfully. Can you point any documentation or code snippet?
Thanks, in advance.
a possible implementation can be found at https://github.com/expand/eXpand/tree/master/Xpand/Xpand.ExpressApp/Xpand.ExpressApp/MessageBox
As far as i remember there is no option for showing message boxes in xaf. You need to create your own form and use it to show messages.
Related
How can I show a dialog message, similar to MessageBox, which have just the "Cancel" button and can be closed by the application.
The idea is to show the dialog while the application retrieves data from a server, allowing the user to cancel this request, and closing the dialog once the request is completed.
I recall having a very similar problem in the past. I don't think there is a dialog message "out of the box" that works like that. The way I solved this was by writing a class that modeled this sort of behavior in a window and having the application spawn an instance of the window.
The silverlight message box blocks code execution while it is open so it is not possible to close it. However you can use an XNA messagebox in Silverlight which is asynchronous
This explains its use in depth
You can probably then call EndShowMessageBox for your purposes.
if your intention is to let the user know that something is loading and that they should wait. you should use a progressbar instead.
How to: Create a Custom Indeterminate Progress Bar
I am trying to handle exception in C#...suppose if the program writes to an output file it checks for if file already exists then it should display an error message.
I don't want to use MessageBox.Show() as it comes with an OK button.
I want to use some kinda informational message where user doesnot have to click on any ok button.
any suggestions???
Thank you
You might be looking for a Toast message that shows a notification, then disappears after a short time by itself.
An example for this is shown here.
Ik working on some project, and there is one main problem I have. I'm writing some code that is performing some actions on the web, like posting data. But what happens all the time: Javascript code on the pages reload the page, just after i posted data, so it will ask for confirmation. I just need to know, is there any way at all to do this? I'm using C# with WatIn. I've thought of some ways myself:
Disabling all message boxes, doesn't seem to work for this box.
Detect when the box shows up and then press cancel, but I don't know if that's possible?
Look in the Javascript code and when it tries to call the Reload method intercept that or something?
Some other setting that disables this auto-reload? (tried some thing called METAreload i think but didn't work)
Google doesn't give me the information I need, I have been searching on this for quite a while now. Someone knows how to get rid of this box blocking my program?
Ok, I finally fixed it myself. There was a javascript function that would make the page reload when the timer was at 0. Just by putting javascript in the URL bar i could replace that function bij an empty one, and now it won't reload anymore!
i am facing a problem with Getting a pop up message through pop up window in a stand alone application using c sharp.please help us ,thanks in advance.
I want to pop up a message to user to perform task at particular time .then i need to send the message to user through pop up window thats my requirement.
i am writing console application programs.
Regards,
M.Channabasappa
If you have console project - the best user message would, of course, console message. But If you still want to send pop up message to user just add reference to System.Windows.Forms assembly to your project and call message box:
System.Windows.Forms.MessageBox.Show("Hello! Im console app");
In WinForms, you need Form.ShowDialog(). In WPF, it's Window.ShowDialog().
To achieve a modal popup on a website is more tricky. Only IE really supports modal popups, and they don't "feel" nice to use. You can use bits of jQuery UI to get what looks like a popup but is in fact a div layered over the top of the whole page, inside the browser window.
HTH.
Anton's answer is correct, but in my case (Visual Studio 2010, Win7), I had to add System.Windows.Forms to my project as a reference to get it to work.
To do so, right click on your project in Solution Explorer > Add Reference > .NET tab > System.Windows.Forms > OK
Once I did this, I was able to add a MessageBox to a console application, which while it seems a bit counter intuitive was a good solution for this particular problem.
I have two independent application. First application is called MSGAPP and other is called SCUForm.
I am controlling the the SCUForm through MSGAPP application by sending the Windows Messages. I can minimize, maximize the SCUForm application by sending the Windows Messages through MSGAPP. And I can also Hide the SCUForm. But when I hide the application, I am not able to show the form back.
what I should do to show it back.
I tried this.Show() but no use.
Am I missing some basics here?
Please guide me.
Thanks in advance.
-Harsha
If I remember well (I did it some year ago), you should try to use WM_SYSCOMMAND with SC_RESTORE.
Watch here.
You could find this and this useful, perhaps.