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;
}
}

Khaja MoizuddinRank #270 · 9.4K reputationPosted Apr 7, 2017, 8:01 PM EDT
Licenciando Cantinas11 reputationPosted Apr 15, 2017, 4:40 PM EDT
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