Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Window Maximize Problem

Window Maximize Problem

Scheduled Pinned Locked Moved C#
helpgraphics
3 Posts 2 Posters 5 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    Amauw Scritz
    wrote on last edited by
    #1

    Hi ! I've created my custom browser using the AxSHDocVw.AxWebBrowser The object created is called with in a form that I developed. Now when I maximize the parent window the child window ( the AxWebBrowser ) is not maximized with it. I've used the following piece of code to handle the problem bu tit doesn't seem to work. this.myBrowserInstance = new AxSHDocVw.AxWebBrowser(); InitializeComponent() { ... this.MaximizedBoundsChanged += new System.EventHandler(this.Form1_Maximize); ... } private void Form1_Maximize(object sender, System.EventArgs e) { ... System.Drawing.Size sizeOfBrowser = new System.Drawing.Size (this.MaximizedBounds.Width - 10, this.MaximizedBounds.Height - 10); myBrowserInstance.ClientSize= sizeOfBrowser; ... } Please help ! Thanx in Advance !! :(:((:((

    S 1 Reply Last reply
    0
    • A Amauw Scritz

      Hi ! I've created my custom browser using the AxSHDocVw.AxWebBrowser The object created is called with in a form that I developed. Now when I maximize the parent window the child window ( the AxWebBrowser ) is not maximized with it. I've used the following piece of code to handle the problem bu tit doesn't seem to work. this.myBrowserInstance = new AxSHDocVw.AxWebBrowser(); InitializeComponent() { ... this.MaximizedBoundsChanged += new System.EventHandler(this.Form1_Maximize); ... } private void Form1_Maximize(object sender, System.EventArgs e) { ... System.Drawing.Size sizeOfBrowser = new System.Drawing.Size (this.MaximizedBounds.Width - 10, this.MaximizedBounds.Height - 10); myBrowserInstance.ClientSize= sizeOfBrowser; ... } Please help ! Thanx in Advance !! :(:((:((

      S Offline
      S Offline
      Stephane Rodriguez
      wrote on last edited by
      #2

      This code is irrelevant. To make sure the web browser is maximized or scaled accordingly to the parent window, you can use anchors/docks from the IDE / Properties.

      A 1 Reply Last reply
      0
      • S Stephane Rodriguez

        This code is irrelevant. To make sure the web browser is maximized or scaled accordingly to the parent window, you can use anchors/docks from the IDE / Properties.

        A Offline
        A Offline
        Amauw Scritz
        wrote on last edited by
        #3

        Thank you very much :)

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups