15-02-13, 12:17 AM
كيف تغير الحجم برنامج [How To resize Process]
مثلآ لو عندى كود مثل هذا
ما الكزد الذى يضاف لى هضا الكود لكي يغير حجم البرنامج
مثلآ لو عندى كود مثل هذا
كود :
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
For Each Resize As Process In Process.GetProcessesByName("HiPlayer")
If ComboBox1.SelectedItem = ("640 × 480") Then
End If
If ComboBox1.SelectedItem = ("800 × 600") Then
End If
If ComboBox1.SelectedItem = ("1024 × 768") Then
End If
If ComboBox1.SelectedItem = ("1600 × 1200") Then
End If
If ComboBox1.SelectedItem = (Screen.PrimaryScreen.Bounds.Width & " × " & Screen.PrimaryScreen.Bounds.Height) Then
End If
Next
End Sub
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
ComboBox1.Items.Add("640 × 480")
ComboBox1.Items.Add("800 × 600")
ComboBox1.Items.Add("1024 × 768")
ComboBox1.Items.Add("1600 × 1200")
ComboBox1.Items.Add(Screen.PrimaryScreen.Bounds.Width & " × " & Screen.PrimaryScreen.Bounds.Height)
End Sub