C# Show a text in a label
To show some text in a label
label26.Text = aMinhaVariavel;
Example
private void inquire_Click(object sender, EventArgs e)
{
DrawingHandler MyDrawingHandler = new DrawingHandler();
if (MyDrawingHandler.GetConnectionStatus())
{
Drawing Drawing = MyDrawingHandler.GetActiveDrawing();
var xxs = Drawing.GetType().Name ;
label26.Text = xxs;
MessageBox.Show( xxs);
}
}
Also could be useful show some text in MessageBox
MessageBox.Show( aMinhaVariavel);
label26.Text = aMinhaVariavel;
Example
private void inquire_Click(object sender, EventArgs e)
{
DrawingHandler MyDrawingHandler = new DrawingHandler();
if (MyDrawingHandler.GetConnectionStatus())
{
Drawing Drawing = MyDrawingHandler.GetActiveDrawing();
var xxs = Drawing.GetType().Name ;
label26.Text = xxs;
MessageBox.Show( xxs);
}
}
Also could be useful show some text in MessageBox
MessageBox.Show( aMinhaVariavel);
Comentários
Enviar um comentário