FloW
FloW
CC#
Created by FloW on 5/22/2024 in #help
WinForms
then why do they do what they are not supposed to?
21 replies
CC#
Created by FloW on 5/22/2024 in #help
WinForms
no , the problem is that grey panel on the left and on the top somehow counts as form
21 replies
CC#
Created by FloW on 3/31/2024 in #help
✅ Why doesnt "this." work here?
sorry
3 replies
CC#
Created by FloW on 3/31/2024 in #help
✅ Why doesnt "this." work here?
done, all was fine but I put this code in Ready instead of _Process
3 replies
CC#
Created by FloW on 11/24/2023 in #help
✅ Text box color changing
Thank you all
129 replies
CC#
Created by FloW on 11/24/2023 in #help
✅ Text box color changing
Good luck
129 replies
CC#
Created by FloW on 11/24/2023 in #help
✅ Text box color changing
To find textbox and change color
129 replies
CC#
Created by FloW on 11/24/2023 in #help
✅ Text box color changing
I can use value like id
129 replies
CC#
Created by FloW on 11/24/2023 in #help
✅ Text box color changing
Hm
129 replies
CC#
Created by FloW on 11/24/2023 in #help
✅ Text box color changing
But how can I know that later won't be generated textbox which contain larger number?
129 replies
CC#
Created by FloW on 11/24/2023 in #help
✅ Text box color changing
All task sounds like Find the largest number for num%8==0 and make textbox which contains it Red
129 replies
CC#
Created by FloW on 11/24/2023 in #help
✅ Text box color changing
Just example
129 replies
CC#
Created by FloW on 11/24/2023 in #help
✅ Text box color changing
For example red
129 replies
CC#
Created by FloW on 11/24/2023 in #help
✅ Text box color changing
No , because it's contain some value
129 replies
CC#
Created by FloW on 11/24/2023 in #help
✅ Text box color changing
int[,] arr = new int[15, 20];
private void button1_Click(object sender, EventArgs e)
{
Random randomGenerator = new Random();
for (int i = 0; i<15; i++)
{
for (int j = 0; j<20; j++)
{
int TextNum = randomGenerator.Next((int)numericUpDown1.Value, (int)numericUpDown2.Value);
arr[i, j] = TextNum;
TextBox textBox = new TextBox()
{
Text = TextNum.ToString(),
Location = new Point(40 + 105 * i, 40 + 30 * j),
Width = 100,
Height = 25,
};

Controls.Add(textBox);
}
}

for (int i=0; i<15; i++)
{
for (int j = 0; j < 20; j++)
{
Console.WriteLine(arr[i, j]);
}
}
}
int[,] arr = new int[15, 20];
private void button1_Click(object sender, EventArgs e)
{
Random randomGenerator = new Random();
for (int i = 0; i<15; i++)
{
for (int j = 0; j<20; j++)
{
int TextNum = randomGenerator.Next((int)numericUpDown1.Value, (int)numericUpDown2.Value);
arr[i, j] = TextNum;
TextBox textBox = new TextBox()
{
Text = TextNum.ToString(),
Location = new Point(40 + 105 * i, 40 + 30 * j),
Width = 100,
Height = 25,
};

Controls.Add(textBox);
}
}

for (int i=0; i<15; i++)
{
for (int j = 0; j < 20; j++)
{
Console.WriteLine(arr[i, j]);
}
}
}
129 replies
CC#
Created by FloW on 11/24/2023 in #help
✅ Text box color changing
±
129 replies
CC#
Created by FloW on 11/24/2023 in #help
✅ Text box color changing
.
129 replies