????? ????? ??? ??????? ?????? ??? MDI ??.net Visual Basic ?? Visual Basic 2005

?????? ????????? ?????? ?????????
???? ???????: 319417 - ??? ???????? ???? ????? ????? ??? ???????.
????? ???? | ?? ????

?? ??? ??????

??????

???? ??? ??????? ???? ????? ??? ????? ????? ??? ??????? ?????? ??? ????? ????? ????????? (MDI) ??????? ????????.net Visual Basic ?? Visual Basic 2005.

??? ??????? ????? Windows ?????? ??? MDI? ???? ????? ??? ????? ??????? ?? ???? ???? Windows? ?? ??????? ??????? ??? ??????? ? ??? ??????? ???????. ???? ??????? ??????? ????? ????? ??? ????? ??????? ??? MDI ??????? ??? ??? ???.

????? ????? Windows ???? ???????? Visual Basic.net ?? Visual Basic 2005

  1. ????? ????? ????.net Visual Basic ?? Visual Basic 2005 Windows. ??? ????? Form1 ???? ???????.

    ?????? ??? ????? ????????? ???????? ?? Visual Basic 2005. ??? ??? ?????? ????? ???? ???? Form1 ?? Visual Basic 2005? ???? ???? ??? Form1.vb ????????? ???????? ?????? ?? ???? Form1.Designer.vb ????? ??? ????? ???? ?? ?????? ???? ??????. ????? Windows ?????? ???? ???????? ??????? ?????? ????? Form1 ??? ????? ??????? ?? ?????. ???? ??? ?????? ???????? ???????? ????? ???? ??? interspersed ?? ????????? ???????? ?????? ??.

    ????? ?? ????????? ??? ??????? ????? 2005 Visual Basic ???????? ?? ?????? ???? Microsoft ?????? ??? ?????:
    .aspx http://msdn.microsoft.com/en-us/library/ms379584 (vs.80)
    ????? ?? ????????? ??? ???? ????? ????? ????? Windows? ?? ?????? ???? Microsoft ?????? ??? ?????:
    http://msdn.microsoft.com/en-us/library/ms171843.aspx
  2. ???? ??? ???????? ??? ?? ?? ??????? ??? ? ??? ???? ????? ???? ??????? ???????.
  3. ????? ??????? BackColor ??? ????? ???? ????? (??? ???? ????).
  4. ????? ??????? ?????????????? ??? True. ???? ?? ????? ??? ????? ??????? ??? ????? ???? ??? ????? ??? ????? ??????? ??? ?? "???? ??????".
  5. ????? ????? ?????? ????.
  6. ???? ????? ??????? ??? ??????? ???? ???? ????????? ???????? ?????? ??.
  7. ??? ???????? ???????? ??????? ?? ????? ????? Load ???????:
    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()
    					
  8. ?? ??????? ??????? ???? ??? ????? ????? Windows.
  9. ???? ????? ????????? Form2.vb??? ?? ???? ??? ???.
  10. ???? F5 ?????? ???????.
???? ?? ??? MDI ??????? ?????? ????? ???? ??????.

?????

??? MdiClient
????? Control.BackColor

???????

???? ???????: 319417 - ????? ??? ??????: 15/?????/1433 - ??????: 1.0
????? ???
  • Microsoft Visual Basic .NET 2002 Standard Edition
  • Microsoft Visual Basic .NET 2003 Standard Edition
  • Microsoft Visual Basic 2005
????? ??????: 
kbvs2005swept kbvs2005applies kbhowtomaster kbmt KB319417 KbMtar
????? ????
???: ??? ????? ??? ?????? ???????? ?????? ????? ???? ????? ?????????? ????? ?? ????????? ?????? ????. ???? ???? ?????????? ???? ?? ???????? ???????? ?????? ????????? ????? ????????? ???????? ????? ???????? ?????? ?? ?????? ??? ?? ???????? ???????? ?? ????? ??????? ?????? ??? ??????? ?????? ??. ?????? ?? ???? ??? ??????? ???????? ????? ?? ???? ????? ?????? ??? ????? ??? ????? ??????? ?? ????? ?? ?????? ??? ??? ??????? ??????? ?? ????? ????? ????? ????? ?????. ?? ????? ???? ?????????? ??????? ??? ????? ?? ??????? ?? ????? ?????? ?? ??? ????? ?? ????? ??????? ?? ???????? ?? ??? ???????. ???? ???? ?????????? ???????? ??? ????? ?????? ??????? ??????
???? ??? ????? ??????? ?????? ??????????319417

????? ???????

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com