PDA

View Full Version : تفاوت ShowModal با Show



اصغر (پآچ)
سه شنبه 21 خرداد 1387, 12:23 عصر
سلام دوستان

من می خواستم بدون تفاوت دستور ;Form1.ShowModal با دستور ;Form1.Show در چیه؟

من از دستور اول که استفاده کردم وقتی فرم رو Hide کردم دفعه بعد نتونستم از همون دستور برای نشون دادن فرم استفاده کنم.

می خواستم ببینم مشکل از این دستوره یا من اشتباه می کنم!

موفقو موید باشید.

delphiprog3000
سه شنبه 21 خرداد 1387, 12:43 عصر
Use the Show method to make visible a control that was previously hidden



The Show method sets the control’s Visible property to true and ensures that the parent



control is also visible




Use ShowModal to show a form as a modal form. A modal form is one where the application can’t continue to run until the form is closed. Thus, ShowModal does not return until the form closes. When the form closes, it returns the value of the ModalResult property