TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Licenciando Cantinas
NA
14
1.8k
Can Convert a String Type to System.Windows.Forms.Screen???
Apr 4 2017 11:32 PM
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
;
}
}
Reply
Answers (
2
)
How to install multiple version of Chrome (35 and 40) browse
how to use pivot for this task