Hello! So, I use a picturebox, textbox and 2 buttons for change items. Almost everything working fine:::
private void buttonPicNext_Click(object sender, EventArgs e)
{
if (pic == pictures.Length - 1 && txt == text.Length - 1)
{ buttonPicNext.Enabled = false; }
else
{ buttonPicBack.Enabled = true; pic++; txt++; }
pictureBox1.Image = Image.FromFile("images/Word/" + pictures[pic]);
textBox1.Text = text[txt];
}
Pictures and texts are in array.
This one button give ++ both, because picture and text are couple.
// The other [--] button has no problem.
Well, for example I have 5 pictures/texts. When I reach the last item (5th) I have one more click which disable this button and this click designate the whole last (5th) text.
[Textbox:: ImeMode:NoControl, MultiLine:True, ReadOnly:True +vertical scrollbar]
If Textbox / Behavior / Enabled is false, it's ok, but text is grey and hard to read.
Are there other solutions to avoid this problem?