Property SelectedMessage
SelectedMessage
Gets currently selected message.
[Browsable(false)]
public string SelectedMessage { get; }
Property Value
Examples
Here is how to use a SelectedMessage in the C# code:
using System;
using Alternet.Scripter.Debugger;
using Alternet.Scripter.Debugger.UI;
public partial class Form1 : Form
{
private Output outputControl;
private void Form1_Load(object sender, EventArgs e)
{
var debugger = new ScriptDebugger();
outputControl = new Output();
outputControl.Dock = System.Windows.Forms.DockStyle.Fill;
outputControl.Debugger = debugger;
}
private void Button_Click(object sender, EventArgs e)
{
Windows.Forms.MessageBox.Show(outputControl.SelectedMessage);
}
}
Here is how to use a SelectedMessage in the Visual Basic code:
Imports System
Imports Alternet.Scripter.Debugger
Imports Alternet.Scripter.Debugger.UI
Partial Public Class Form1
Inherits Form
Private outputControl As Output
Private Sub Form1_Load(ByVal sender As Object, ByVal e As EventArgs)
Dim debugger = New ScriptDebugger()
outputControl = New Output()
outputControl.Dock = Windows.Forms.DockStyle.Fill
outputControl.Debugger = debugger
End Sub
Private Sub Button_Click(ByVal sender As Object, ByVal e As EventArgs)
Windows.Forms.MessageBox.Show(outputControl.SelectedMessage)
End Sub
End Class
Remarks
The SelectedMessage property can be changed by clicking on the appropriate message in the log\console messages list displayed by this control.