I know everyone loves those quick code posts as opposed to the lengthy μ box saga, so here is a classic, auto resizing a web form, great for the few times where it might be okay to use a vb webform, like auto querying and the like with the actual page, a technique used in a bunch of older posts, involving breaking into servers. Well here is how to resize for you GUI nuts:
Private Sub WebBrowser1_DocumentCompleted(ByVal sender As System.Object, ByVal e As System.Windows.Forms.WebBrowserDocumentCompletedEventArgs) Handles WebBrowser1.DocumentCompleted WebBrowser1.Width = Me.ClientRectangle.Width Dim height As Integer = Me.ClientRectangle.Height
No comments:
Post a Comment