(01-01-21, 08:22 PM)Mohamad Anan كتب : (01-01-21, 05:27 PM)asmarsou كتب : يعني نفس الشىء فتح فورم داخل فورم
تم تعديل المثال لفتح الملفات في نفس النافذة
اشكرك اخي محمد على المجهود
ولكن لم استطع تحقيق سؤالي
سارفق مثال و هل يمكن تعديله كما في نص السؤال
Imports System.IO
Imports Microsoft.VisualBasic.ApplicationServices
Imports System.Collections.ObjectModel
Public Class Form1
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Try
If My.Application.CommandLineArgs.Count > 0 Then
OpenFile(My.Application.CommandLineArgs(0))
End If
Catch ex As Exception
End Try
End Sub
Private Sub OpenFile(ByVal strFileName As String)
Dim srStream As New StreamReader(strFileName)
AxWindowsMediaPlayer1.URL = strFileName
AxWindowsMediaPlayer1.Ctlcontrols.play()
Me.Text = strFileName
srStream.Close()
End Sub
End Class