StreamWriter.WriteLine(CRF)\r
StreamWriter.WriteLine(advH264)\r
StreamWriter.Close()\r
- MessageBox.Show("STATUS: Your profile has been sucessfully saved.")\r
+ MessageBox.Show("Your profile has been sucessfully saved.", "STATUS", MessageBoxButtons.OK, MessageBoxIcon.Asterisk)\r
Catch\r
- MessageBox.Show("ERROR: Unable to write to the file. Please make sure the location has the correct permissions for file writing.")\r
+ MessageBox.Show("Unable to write to the file. Please make sure the location has the correct permissions for file writing.", "ERROR", MessageBoxButtons.OK, MessageBoxIcon.Hand)\r
End Try\r
End If\r
End Sub\r
SliderValue.Text = slider_videoQuality.Value & "%"\r
\r
Catch ex As Exception\r
- MessageBox.Show("ERROR: Unable to load profile.")\r
+ MessageBox.Show("Unable to load profile.", "ERROR", MessageBoxButtons.OK, MessageBoxIcon.Hand)\r
End Try\r
End If\r
\r
lAvailableSpace = Drv.AvailableSpace\r
lAvailableSpace = lAvailableSpace / 1024 / 1024 / 1024\r
If lAvailableSpace < 4 Then\r
- MessageBox.Show("Warning: Low on Disk Space. There is: " & lAvailableSpace & "GB Available")\r
+ MessageBox.Show("Low on Disk Space. There is: " & lAvailableSpace & "GB Available", "WARNING", MessageBoxButtons.OK, MessageBoxIcon.Warning)\r
End If\r
\r
Dim lTotalSpace As Long\r
Dim ApplicationPath As String = Application.StartupPath\r
\r
If (frmQueue.list_queue.Items.Count > 0) Then\r
- MessageBox.Show("ALERT: You have items on the video queue. If you wish to run the queue, click the Enocde Videos button on the Queue window.")\r
+ MessageBox.Show("You have items on the video queue. If you wish to run the queue, click the Enocde Videos button on the Queue window.", "ALERT", MessageBoxButtons.OK, MessageBoxIcon.Asterisk)\r
End If\r
\r
Try\r
If (QueryEditorText.Text = "") Then\r
query = GenerateTheQuery()\r
Shell("""" + ApplicationPath + "\hbcli.exe""" + query)\r
- MessageBox.Show("The Handbrake encoder (CLI) will now start and should be encoding your video.")\r
+ MessageBox.Show("The Handbrake encoder (CLI) will now start and should be encoding your video.", "ALERT", MessageBoxButtons.OK, MessageBoxIcon.Asterisk)\r
\r
'Lets start the process monitor to keep an eye on things.\r
hbcliMonitor = New ProcessMonitor()\r
Else\r
query = QueryEditorText.Text\r
Shell("""" + ApplicationPath + "\hbcli.exe""" + query)\r
- MessageBox.Show("The Handbrake encoder (CLI) will now start and should be encoding your video.")\r
+ MessageBox.Show("The Handbrake encoder (CLI) will now start and should be encoding your video.", "ALERT", MessageBoxButtons.OK, MessageBoxIcon.Asterisk)\r
End If\r
Catch ex As Exception\r
MessageBox.Show("Unable to Launch the Encoder.")\r
\r
Try\r
If (chapterFinish < chapterStart) Then\r
- MessageBox.Show("Error: Invalid Chapter Range! - Final chapter can not be smaller than the starting chapter.")\r
+ MessageBox.Show("Invalid Chapter Range! - Final chapter can not be smaller than the starting chapter.", "WARNING", MessageBoxButtons.OK, MessageBoxIcon.Warning)\r
End If\r
Catch ex As Exception\r
MessageBox.Show("Invalid Character Entered")\r
\r
Try\r
If (chapterStart > chapterFinish) Then\r
- MessageBox.Show("Error: Invalid Chapter Range! - Start chapter can not be larger than the Final chapter.")\r
+ MessageBox.Show("Invalid Chapter Range! - Start chapter can not be larger than the Final chapter.", "WARNING", MessageBoxButtons.OK, MessageBoxIcon.Warning)\r
End If\r
Catch ex As Exception\r
- MessageBox.Show("Invalid Character Entered")\r
+ MessageBox.Show("Invalid Character Entered", "ERROR", MessageBoxButtons.OK, MessageBoxIcon.Hand)\r
End Try\r
End Sub\r
\r
\r
\r
If (source = "") Then\r
- MessageBox.Show("ERROR: No Source has been selected.")\r
+ MessageBox.Show("No Source has been selected.", "WARNING", MessageBoxButtons.OK, MessageBoxIcon.Warning)\r
Else\r
source = " -i " + """" + source + """"\r
End If\r
Dim height As String = text_height.Text\r
\r
If (destination = "") Then\r
- MessageBox.Show("ERROR: No destination has been selected.")\r
+ MessageBox.Show("No destination has been selected.", "WARNING", MessageBoxButtons.OK, MessageBoxIcon.Warning)\r
Else\r
destination = " -o " + """" + destination + """"\r
End If\r
' The hbcli processes has exited at this point. Lets throw a messagebox at the user telling him the enocode has completed.\r
Sub TheadCompletedMonitor(ByVal isRunning As Integer) Handles hbcliMonitor.ThreadComplete\r
Dim ApplicationPath As String = Application.StartupPath ' The applications start parth\r
- MessageBox.Show("Status: The encoding process has ended.")\r
+ MessageBox.Show("The encoding process has ended.", "ALERT", MessageBoxButtons.OK, MessageBoxIcon.Asterisk)\r
+\r
End Sub\r
'------------------------------------------------\r
\r
Try\r
Shell("cmd /c """"" + ApplicationPath + "\hbcli.exe"" -i """ + frmMain.text_source.Text + """" & " -t0 >" + """" + ApplicationPath + "\dvdinfo.dat""" + " 2>&1""")\r
Catch ex As Exception\r
- MessageBox.Show("ERROR: There was a problem launching the encoder. Code: frmS-1")\r
+ MessageBox.Show("Unable to launch the CLI encoder.", "ERROR", MessageBoxButtons.OK, MessageBoxIcon.Hand)\r
MessageBox.Show(ex.ToString)\r
End Try\r
End Sub\r
'# Stage 4 - Write the parsed data out into a file. \r
'# But, if theres a problem, display an error message instead\r
If errStatus = 1 Then\r
- MessageBox.Show("ERROR: Error Reading the DVD. Some Title information may not be available.")\r
+ MessageBox.Show("Some DVD Title information may be missing however you may still be able to select your required title for encoding!", "Alert", MessageBoxButtons.OK, MessageBoxIcon.Asterisk)\r
End If\r
\r
If titleError = True Then\r
- MessageBox.Show("ERROR: No Title(s) found.")\r
+ MessageBox.Show("No Title(s) found. Please make sure you have selected a valid, non-copy protected source.", "ERROR", MessageBoxButtons.OK, MessageBoxIcon.Hand)\r
+\r
End If\r
\r
Try\r
DataWriter.Close()\r
\r
Catch ex As Exception\r
- MessageBox.Show("ERROR: Unable to write Data file. Please make sure the application has admin privileges.")\r
+ MessageBox.Show("Unable to write Data file. Please make sure the application has admin privileges.", "ERROR", MessageBoxButtons.OK, MessageBoxIcon.Hand)\r
End Try\r
\r
Me.Close()\r
str(1) = titleInfo(1).Trim.Substring(12) ' Duration\r
Catch ex As Exception\r
MessageBox.Show(ex.ToString)\r
- MessageBox.Show("ERROR: Incomplete DVD data found. Please copy the data on the View DVD Information tab and report this error.")\r
+ MessageBox.Show("ERROR: Incomplete DVD data found. Please copy the data on the View DVD Information tab and report this error.", "ERROR", MessageBoxButtons.OK, MessageBoxIcon.Hand)\r
End Try\r
\r
'Now lets add the info to the main form dropdowns\r