How to set screensize for P/N 1204?

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

How to set screensize for P/N 1204?

Postby dousabao » Wed Feb 08, 2012 12:36 am

Hi, i have trouble with my phidgetTextLCD, i can't display anything out and i was told to set the screensize but i don't know how. Is there anyone that can help me because i'm new to these stuff. Thanks in advance!!

My Code:

TextBox box = (TextBox) sender;
lcd.rows[0].DisplayString = box.Text;

it shows "Argument 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.)

Regards.

erik
King of the Lab
Posts: 476
Joined: Fri Mar 06, 2009 12:42 pm
Location: Calgary, Canada
Contact:

Re: How to set screensize for P/N 1204?

Postby erik » Wed Feb 08, 2012 9:35 am

it would be something like

Code: Select all

lcd.screens[0].ScreenSize = ...


Take a look at the ScreenSize enumeration documentation in the API Reference for C# under the Programming tab for all the possible screen sizes supported.


Return to “C#.NET”

Who is online

Users browsing this forum: No registered users and 1 guest