I save the name of one of my screen where an app is running. so, pass the name in a
String Var with this:
str_DisplayName=Screen.FromPoint(this.Location).DeviceName);
then i save str_DisplayName in MyApp.ini
when i restart my App i read MyApp.ini and load into str_DisplayName the name of the screen when i closed my App Lastime.
How Can i Convert str_DisplayName in a System.Windows.Forms.Screen object??
--------------------------------------------------------------------
Could this Class serve some purpose?
private class ScreenObj
{
public Screen screen = null;
public ScreenObj(Screen scr)
{
screen = scr;
}
public override string ToString()
{
return screen.DeviceName;
}
}