PDA

View Full Version : قرار دادن نام تمامی فرمها در combo box



faravani
دوشنبه 08 تیر 1388, 09:19 صبح
من میخواستم تمامی فرمهایی که در پروژه خودم استفاده کردم را داخل یک combo box لیست کنم لطفا اگه کسی بلده کمکم کنه

Ali_Mor
دوشنبه 08 تیر 1388, 10:52 صبح
Dim asm As Assembly = Assembly.GetExecutingAssembly
For Each t As Type In asm.GetTypes
If t.BaseType Is GetType(System.Windows.Forms.Form) Then
ComboBox1.Items.Add(t.Name)
End If
Next