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

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.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.