PDA

View Full Version : نمايش پيغام



alonemm
پنج شنبه 08 مهر 1389, 14:30 عصر
باسلام:

من قبلا با vb كاركردم و براي دادن پيغام به كاربران از تابع msqbox استفاده ميكردم.

معادل اين تابع در c# چيه؟

manij_mhm
پنج شنبه 08 مهر 1389, 14:38 عصر
سلام.


MessageBox.Show("...");

موفق باشید.

Sk1900n3
پنج شنبه 08 مهر 1389, 15:09 عصر
DialogResult rs = MessageBox.Show("message", "title", MessageBoxButtons.YesNo, MessageBoxIcon.Warning, MessageBoxDefaultButton.Button2);

if (rs == DialogResult.Yes)

{ }