473,396 Members | 1,702 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

How to conver string to color

Dear all,
is it possible to convert string "Blue" into system.drawing.color.blue.
Thanks a lot,
Boni
Nov 21 '05 #1
3 1134
"Boni" <oilia@nospam> schrieb:
is it possible to convert string "Blue" into system.drawing.color.blue.


\\\
c = Color.FromName(...)
///

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>
Nov 21 '05 #2
Your question is not clear. Please retry.

-Pamela

dim Color as Color
if string="Blue" then Color=color.blue

?????????????????

Nov 21 '05 #3
Thanks, just what I needed
"Herfried K. Wagner [MVP]" <hi***************@gmx.at> schrieb im Newsbeitrag
news:e1**************@TK2MSFTNGP12.phx.gbl...
"Boni" <oilia@nospam> schrieb:
is it possible to convert string "Blue" into system.drawing.color.blue.


\\\
c = Color.FromName(...)
///

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Nov 21 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: John Muñoz | last post by:
thanks -- La vida tb esta orientada a objetos
1
by: khipra | last post by:
Hi! I'm try to convert a String to Datetime, but convert only works for some format: my value is: "20040719 16:00" This is the String that I want to convert to Datetime. I testing with some...
2
by: Kylin | last post by:
any function for this directly In asp.net ? -- FireCrow Studio Kylin Garden QQ:462042991 ICQ:156134382
1
by: oviam packirisamy | last post by:
how to convert number to string in sqlserver eg:- 10 -> ten display *** Sent via Developersdex http://www.developersdex.com ***
2
by: Franky | last post by:
This should be easy to find but I've been looking and looking at the doc and can't find it. Maybe it can't be done. In the IDE editors find/replace I want to use regular expression to change the...
8
by: vunet.us | last post by:
How can I convert today's time (9:30:00) to seconds (34200) without using calculations like (9*3600)+(30*60)+0? Is there an easy function? Thank you
1
by: palang | last post by:
how to conver centimeter to pixel in c#.net
0
by: phanimadhav | last post by:
please help me.Actually i am new one of this ASP.NET.i don't know how to conver the file .XML to .CSV format.please help me it's urgent.Actually i can transform the sqlserver database values to...
1
by: intimate2ramya | last post by:
hi i have a string like dd.MM.yyy. i want to convert to date like dd-MM-yyyy. if u have any suggestion pls reply me
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.