En iyi yanıtlayıcılar
Mdiclient nedir

Soru
-
Merhabalar. Bu foruma ilk sorum. Hatalarım olursa affola.
Mdiclient'ın ne olduğu ne işe yaradığı hakkında genel ve kısa bir bilgiye ihitiyacım var. Nedeni ise Mdiparent formun backcolor özeeliğini değiştirmek istediğimde başarılı olamadım. Yaptığım araştırmada microsoft destek sitesinde aşağıdaki kodu buldum ve kod çalışıyor. Ama ben bu mdiclient sınıfını tam anlayamadım.
Teşekkürler.
Suha Yılmaz
Dim ctl As Control Dim ctlMDI As MdiClient ' Loop through all of the form's controls looking ' for the control of type MdiClient. For Each ctl In Me.Controls Try ' Attempt to cast the control to type MdiClient. ctlMDI = CType(ctl, MdiClient) ' Set the BackColor of the MdiClient control. ctlMDI.BackColor = Me.BackColor Catch exc As InvalidCastException ' Catch and ignore the error if casting failed. End Try Next ' Display a child form to show this is still an MDI application. Dim frm As New Form2() frm.MdiParent = Me frm.Show()
Yanıtlar
-
MDI = Multiple Document Interface
SDI = Single Document Interface
Burada Document'i window olarak dusun. Uygulamada bir pencereye bagli alt pencereler aciliyor ise bu MDI. Ornegin VS, Excel.
Uygulama tek pencere ile calisiyorsa, bu SDI. Ornek: Notepad.
VS projeleri de normalde SDI. MDI bir Form yaptiginda, bunun "altinda" acilan Formlar MDIClient ve parenti da MDIParent.
(MessageBox pencereleri de pencere, ya da modal formlar ama onlari karistirma, esnek bir terminolojiyle anlatmaya calistim)
- Yanıt Olarak Öneren Önay YALÇINER 24 Nisan 2015 Cuma 18:36
- Yanıt Olarak İşaretleyen Serkan Canseven 30 Nisan 2015 Perşembe 22:56
Tüm Yanıtlar
-
MDI = Multiple Document Interface
SDI = Single Document Interface
Burada Document'i window olarak dusun. Uygulamada bir pencereye bagli alt pencereler aciliyor ise bu MDI. Ornegin VS, Excel.
Uygulama tek pencere ile calisiyorsa, bu SDI. Ornek: Notepad.
VS projeleri de normalde SDI. MDI bir Form yaptiginda, bunun "altinda" acilan Formlar MDIClient ve parenti da MDIParent.
(MessageBox pencereleri de pencere, ya da modal formlar ama onlari karistirma, esnek bir terminolojiyle anlatmaya calistim)
- Yanıt Olarak Öneren Önay YALÇINER 24 Nisan 2015 Cuma 18:36
- Yanıt Olarak İşaretleyen Serkan Canseven 30 Nisan 2015 Perşembe 22:56
-