Quantcast
Viewing all articles
Browse latest Browse all 27077

VS 2012 Change MaximizeBox Icon

Hi Guys!

I have this code:

Code:

Private Sub ChildForm(sender As Object, e As EventArgs) Handles Me.Resize
        If Me.WindowState = FormWindowState.Maximized Then
            Me.WindowState = FormWindowState.Normal
            Me.Width = Me.MdiParent.Size.Width - 20
            Me.Height = Me.MdiParent.Size.Height - 113
            Me.Location = New Point(0, 0)
        End If
    End Sub

To fit the child form just within the MdiContainer. Because I don't like this thing -maximizing to the menu strip.

But I want the MaximizeBox really cahanged to the "maximized" symbol. (cascaded windows icon)

Is there anyway to achive this?


Thanks!

Viewing all articles
Browse latest Browse all 27077

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>