[Mono-winforms-list] MessageBoz not responding inside if loop
Stifu
stifu at free.fr
Fri Feb 25 09:26:09 EST 2011
Hi,
You posted this on the wrong mailing list (you want the GTK# one, not the
WinForms one).
moshegeorge wrote:
>
> Hello Everybody, I am a beginner with monodev , I am trying to display a
> message box based on button click . The code is working fine , except when
> the message bex under the if / else statements is displayed , i am not
> able to close it . Clicking "OK" or the "x" button noes not close the
> MessageBox , but the messageboz outside if/else is just working fine.
>
> using System;
> using System.IO;
> using System.Windows.Forms;
> namespace SampleGtkProj
> {
>
>
> public partial class First : Gtk.Window
> {
> protected virtual void buttonClicked (object sender,
> System.EventArgs e)
> {
>
> MessageBox.Show(entry1.Text);
> if(File.Exists(entry1.Text)){
> MessageBox.Show("File Exists: test passed");}
> else{
> MessageBox.Show("FIle DOes NOt exist test failed");}
> }
>
>
>
> public First () : base(Gtk.WindowType.Toplevel)
> {
> this.Build ();
> }
> }
> }
>
> Thank You
> moshe
>
>
--
View this message in context: http://mono.1490590.n4.nabble.com/MessageBoz-not-responding-inside-if-loop-tp3324234p3324520.html
Sent from the Mono - WinForms mailing list archive at Nabble.com.
More information about the Mono-winforms-list
mailing list