2010-09-18 61 views
3

我的问题是,我们可以写:的Visual C#.NET消息框

String s="Sarath"; 
MessageBox.Show("My Name is Sarath {0}",s); 

我想在拿到名{0} ..... 有什么办法...

提前致谢。

回答

2
string myName = "Sarath"; 
MessageBox.Show(String.Format("My name is {0}.", myName));