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. Maximizing Event (Or Not)

Maximizing Event (Or Not)

Scheduled Pinned Locked Moved C#
questionhelp
3 Posts 2 Posters 0 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
    Adam Turner
    wrote on last edited by
    #1

    What is the event that is fired when maximizing a form? or minimizing for that matter. I currently have put a delegate on the Resize event and checking for FormWindowState.Maximized. Is this the only way of doing it? or even the correct way? Basically i dont want to actually maximize my form. I want to change its height to a certain value while not changing the top and left of the form. But the WindowsState is only changed to FormWindowState.Maximized when the form is actually maximized and not before when it starts. Any help is appreciated. --ABT

    S 1 Reply Last reply
    0
    • A Adam Turner

      What is the event that is fired when maximizing a form? or minimizing for that matter. I currently have put a delegate on the Resize event and checking for FormWindowState.Maximized. Is this the only way of doing it? or even the correct way? Basically i dont want to actually maximize my form. I want to change its height to a certain value while not changing the top and left of the form. But the WindowsState is only changed to FormWindowState.Maximized when the form is actually maximized and not before when it starts. Any help is appreciated. --ABT

      S Offline
      S Offline
      Srinivasa Raghavan
      wrote on last edited by
      #2

      Hi I had the same problem. .NET doesent raises any specific event when the windowState of a form changes except the resize event. Else u can catch the WM_XXX message in "WndProc" method Thanks :) Srinivas

      A 1 Reply Last reply
      0
      • S Srinivasa Raghavan

        Hi I had the same problem. .NET doesent raises any specific event when the windowState of a form changes except the resize event. Else u can catch the WM_XXX message in "WndProc" method Thanks :) Srinivas

        A Offline
        A Offline
        Adam Turner
        wrote on last edited by
        #3

        Thanks but i have never overriden this method before. Where do i get the values of WM_XXX and other message constants?

        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