Results 1 to 4 of 4

Thread: Simple Form Resize Question *Solved*

  1. #1

    Thread Starter
    Addicted Member NinjaNic's Avatar
    Join Date
    Dec 2013
    Location
    Earth
    Posts
    230

    Simple Form Resize Question *Solved*

    Hello!
    What is the difference between these codes:
    vb Code:
    1. Private Sub Form1_Resize(sender As Object, e As System.EventArgs) Handles Me.Resize
    2.  
    3.     End Sub
    4.  
    5.     Private Sub Form1_SizeChanged(sender As Object, e As System.EventArgs) Handles Me.SizeChanged
    6.  
    7.     End Sub

    (form1_ resize, and form1_sizechanged)

    What makes them different, of they are different? Thanks!
    Last edited by NinjaNic; Sep 28th, 2014 at 12:19 AM.

  2. #2

  3. #3
    eXtreme Programmer .paul.'s Avatar
    Join Date
    May 2007
    Location
    Chelmsford UK
    Posts
    25,464

    Re: Simple Form Resize Question

    They both fire for the same reason. From what I've discovered googling is that SizeChanged was added in .Net (as all of the Properties have a Changed event). The purpose being for databinding. The Resize event was something that has existed since before .Net, which was continued in .Net.

  4. #4

    Thread Starter
    Addicted Member NinjaNic's Avatar
    Join Date
    Dec 2013
    Location
    Earth
    Posts
    230

    Re: Simple Form Resize Question

    Ok, thank you.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width