2 Replies - 348 Views - Last Post: 27 November 2019 - 10:17 AM Rate Topic: -----

#1 BigD3v3loper   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 5
  • Joined: 07-December 18

Cropping winform/webbrowser

Posted 27 November 2019 - 09:45 AM

I want to display a specific part of a webbrowser and I want to do that with an option to crop the form. Basically, when you resize a form it automatically affects the webbrowser, I want to somehow disable that and be able to crop the form. (winforms)
Is This A Good Question/Topic? 0
  • +

Replies To: Cropping winform/webbrowser

#2 modi123_1   User is online

  • Suitor #2
  • member icon



Reputation: 15477
  • View blog
  • Posts: 62,007
  • Joined: 12-June 08

Re: Cropping winform/webbrowser

Posted 27 November 2019 - 10:00 AM

I am not following. Is this browser a control on your webform?
Was This Post Helpful? 0
  • +
  • -

#3 maceysoftware   User is offline

  • Member Title
  • member icon

Reputation: 394
  • View blog
  • Posts: 1,648
  • Joined: 07-September 13

Re: Cropping winform/webbrowser

Posted 27 November 2019 - 10:17 AM

There are three ways that the control is resizing when you resize your application.

  • Your control is docked.
  • Your control is anchored.
  • You have resize code.


If you don't want your application to resize it's child control then don't do anything I just listed.

However, I don't understand what you mean by cropping, I am guessing you mean you want your application to start on 1000 by 1000, and the same for your control, if you resized from the right you don't want the child to be resize (AKA squashed) you just want to see the 1000 by 500 of your control, with the other 500 pixels being off screen?

it's easy enough to do form the right and below, but from the left and top will be harder.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1