Click here to Skip to main content
15,886,835 members

Comments by PALANI KUMAR.A (Top 11 by date)

PALANI KUMAR.A 11-Feb-11 5:33am View    
I tried to open in server only, is it also have security issues do you mean that. (Note : This is working fine before publish the website)
PALANI KUMAR.A 10-Feb-11 23:43pm View    
if i set topmostform null,alert will open parent window..?
DialogResult result = MessageBox.Show(topmostForm, message, title,buttons,Icon,Btn,opt)-----error line.....
If i invoke topmostform method argumemnt exceptopn error..without topmostform method no error local machine and deploying server..
PALANI KUMAR.A 7-Feb-11 6:43am View    
Deleted
here below my code...
<pre></pre>While i deploy my application...Again error....
Anybbody help and solve this problem......
Here my code...
<pre lang="C++">DialogResult result = TopMostMessageBox.Show("Your Password will Expire in" + " " + Futdays + " " + "Day(s)" + '\n' + "Do you want Change it now?", "Financial Management System",
MessageBoxButtons.YesNo, MessageBoxIcon.Question, MessageBoxDefaultButton.Button1,
MessageBoxOptions.ServiceNotification);</pre>


<pre lang="C++">static public DialogResult Show(string message, string title, MessageBoxButtons buttons, MessageBoxIcon Icon,MessageBoxDefaultButton Btn,MessageBoxOptions Opt)
{
// Create a host form that is a TopMost window which will be the
// parent of the MessageBox.
Form topmostForm = new Form();
// We do not want anyone to see this window so position it off the
// visible screen and make it as small as possible
topmostForm.Size = new System.Drawing.Size(1, 1);
topmostForm.StartPosition = FormStartPosition.Manual;
System.Drawing.Rectangle rect = SystemInformation.VirtualScreen;
topmostForm.Location = new System.Drawing.Point(rect.Bottom + 10,
rect.Right + 10);
//topmostForm.ShowDialog();
topmostForm.Show();
// Make this form the active form and make it TopMost
topmostForm.Focus();
topmostForm.BringToFront();
topmostForm.TopMost = true;
//topmostForm.
// Finally show the MessageBox with the form just created as its owner
DialogResult result = MessageBox.Show(topmostForm, message, title,buttons,Icon,Btn,opt);//////error this area...
topmostForm.Dispose(); return result;
}</pre>

now Servive notifiaction error corrected.. but below error appered...
Show a service notification messagebox with an owner window is not a valid operation.Use the shoe method that does not take an ower.Parameter name:options
PALANI KUMAR.A 5-Feb-11 4:50am View    
we follow but alert not display,,, wit error
PALANI KUMAR.A 4-Feb-11 9:39am View    
TopMost MessageBox,
Showing a modal dialog box or form when the application is not running in UserInteractive mode is not a valid operation. Specify the ServiceNotification or DefaultDesktopOnly style to display a notification from a service application.