SONU GUPTA

SONU GUPTA

  • NA
  • 40
  • 3.9k

how can i write inside panel using label ?

May 7 2018 6:18 AM

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace WindowsFormsApplication31
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}


private void A(object sender, EventArgs e)
{


int row, column;

for (row = 0; row <= 6; row++)
{
for (column = 0; column <= 6; column++)
{
if ((column == 1 && row != 0 && row != 6) || ((row == 0 || row == 6) && column > 1 && column < 5) || (row == 3 && column > 2 && column < 6) || (column == 5 && row != 0 && row != 2 && row != 6))
textBox1.AppendText("*");
else
textBox1.AppendText(" ");
}
textBox1.AppendText(Environment.NewLine);
}
textBox1.AppendText(Environment.NewLine);
}
}
}

 
here is the code for writing letter G with * representation inside text box .... now i want to write this inside panel how can i do it....
 

Answers (1)