OVH Cloud OVH Cloud

débutant

2 réponses
Avatar
cp
salut !

comment fait-on pour afficher un simple message dans c# (exemple :
"continuer ?" ) ?

ils disent ça, mais ça ne marche pas !

IUIService UIservice = (IUIService)this.GetService( typeof(
System.Windows.Forms.Design.IUIService ) );

if( UIservice != null )

UIservice.ShowMessage("Test message", "Test caption",

System.Windows.Forms.MessageBoxButtons.AbortRetryIgnore);

2 réponses

Avatar
Paul Bacelar
Pour WinForm ?
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemwindowsformsmessageboxclasstopic.asp
--
Paul Bacelar

"cp" wrote in message
news:42ee8c2c$0$920$
salut !

comment fait-on pour afficher un simple message dans c# (exemple :
"continuer ?" ) ?

ils disent ça, mais ça ne marche pas !

IUIService UIservice = (IUIService)this.GetService( typeof(
System.Windows.Forms.Design.IUIService ) );

if( UIservice != null )

UIservice.ShowMessage("Test message", "Test caption",

System.Windows.Forms.MessageBoxButtons.AbortRetryIgnore);




Avatar
Cyber Sinh
cp a écrit :
salut !

comment fait-on pour afficher un simple message dans c# (exemple :
"continuer ?" ) ?

ils disent ça, mais ça ne marche pas !

IUIService UIservice = (IUIService)this.GetService( typeof(
System.Windows.Forms.Design.IUIService ) );

if( UIservice != null )

UIservice.ShowMessage("Test message", "Test caption",

System.Windows.Forms.MessageBoxButtons.AbortRetryIgnore);




MessageBox.Show("mon message");