hey frnds, I want to ask you want thing is it possible to resize the image of media player without changing the image height + width.

Plz somebody help me out..

Public Class Form2
    Dim sFilename As String = "D:\Documents and Settings\All Users\Documents\My Pictures\Sample Pictures\Blue hills.jpg"
    Private Sub Form2_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        AxWindowsMediaPlayer1.URL = sFilename
    End Sub
9 Years
Discussion Span
Last Post by mansi sharma

You want to resize the player, not the image displayed in the player?

AxWindowsMediaPlayer1.Size = New Size(AxWindowsMediaPlayer1.Width + 5, AxWindowsMediaPlayer1.Height + 5)

I want to resize(zoom) the image of Media PLayer .I dont want to change the size,can somebody plz help me out!!!


I couldn't find any method to resize the content of the media player control.

You could put a hidden picture box control on the form and use the code from Ramy's post to resize the image and save resized image to temp file. After the user has zoomed the image, reload it back from the temp file.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.