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??
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;
}
}
Licenciando CantinasPosted Apr 15, 2017, 8:40 PM
my Displays name are Display1, Display2 & Display3 i want to save the name as string on XML an then when i restart the app, read this XML and send the app to the Display where it was closed. so i got the name in string and want to pass this value to a string and convert it in to a Screen
Khaja MoizuddinPosted Apr 8, 2017, 12:01 AM