Phidgets Programming Error(out of range exception)

Supporting Visual Studio on Windows
dousabao
Phidgetsian
Posts: 6
Joined: Mon Feb 06, 2012 1:25 am
Contact:

Phidgets Programming Error(out of range exception)

Postby dousabao » Mon Feb 06, 2012 1:32 am

Hi,
i have problem when i programmed my phidget textLCD. i encountered this problem when i debug it.

private void textBox1_TextChanged(object sender, EventArgs e)
{
TextBox box = (TextBox) sender;
lcd.rows[0].DisplayString = box.Text;
}
it give an message that "Arguments out of range exception was unhandled (index was out of range. Must be non-negative and less than the size of the collection. Parameter name: index.)

anybody can help me to solve this? i am quite weak at programming. Thanks in advance :D

User avatar
Patrick
Lead Developer
Posts: 3155
Joined: Mon Jun 20, 2005 8:46 am
Location: Canada
Contact:

Re: Phidgets Programming Error(out of range exception)

Postby Patrick » Mon Feb 06, 2012 10:09 am

Are you using the 1204? You probably need to set the ScreenSize.

-Patrick

dousabao
Phidgetsian
Posts: 6
Joined: Mon Feb 06, 2012 1:25 am
Contact:

Re: Phidgets Programming Error(out of range exception)

Postby dousabao » Mon Feb 06, 2012 7:15 pm

YES!! i'm using the 1204, how do i set the screensize? thanks for your help!! really appreciate it!!

Regards,
Edwin.


Return to “C#.NET”

Who is online

Users browsing this forum: No registered users and 2 guests