View Full Version : سوال: چطور میشه متوجه شد که یک فرم show یا open هست ؟
sari-1369
چهارشنبه 31 تیر 1388, 20:28 عصر
چطور میشه متوجه شد که یک فرم show یا open هست یا نه ؟
-----------------
پیشاپیش ممنون
علیرضا مداح
پنج شنبه 01 مرداد 1388, 08:49 صبح
سلام دوست عزیز،
باید از کالکشن Application.OpenForms (http://msdn.microsoft.com/en-us/library/system.windows.forms.application.openforms.aspx) استفاده نمایید،
برای نمونه:
Dim isFormOpen As Boolean = Not (Application.OpenForms.Item("formName") Is Nothing)
،/
Mani_rf
پنج شنبه 01 مرداد 1388, 19:47 عصر
راه دوم :
If Not Form.IsDisposed Then msgbox("Form Is Open.")
sari-1369
دوشنبه 05 مرداد 1388, 16:39 عصر
متشکرم .
vBulletin® v4.2.5, Copyright ©2000-1403, Jelsoft Enterprises Ltd.