How resize image in vb.net : <p>My code resize Image, but it only can reduce size.</p>

<pre><code> For Each oFile In My.Computer.FileSystem.GetFiles(parm_strTargetPath)
                If oFile.ToString.ToLower.Contains(".png") Or oFile.ToString.ToLower.Contains(".jpg") Or oFile.ToString.ToLower.Contains(".jpeg") Then
                    Dim strFileName = System.IO.Path.GetFileName(oFile)
                    Try
                        Dim original As Image = Image.FromFile(oFile)
                        Dim resized As Image = ResizeImage(original, New Size(h, w))
                        Dim memStream As MemoryStream = New MemoryStream()
                        resized.Save(memStream, ImageFormat.Jpeg)

                        Dim file As New FileStream(result &amp; "/" &amp; strFileName , FileMode.Create, FileAccess.Write)
                        memStream.WriteTo(file)
                        file.Close()
                        memStream.Close()
                    Catch ex As Exception

                    End Try

                End If

            Next
</code></pre>

<p>My image size: <code>1028x 172</code>, i want resize to <code>500 x 500</code>
But result is a image size : <code>500x84</code>
How Resize image from <code>1028x 172</code>  to <code>500 x 500</code> ?
Thanks all.</p>
