|
Or even:
string[] GetAllColorNames()
{
return Enum.GetNames(typeof(KnownColor));
}
"These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer
|
|
|
|
|
|
Don't you just hate it when that happens? So aggravating.
I don't know whether it's just the light but I swear the database server gives me dirty looks everytime I wander past.
-Chris Maunder
Microsoft has reinvented the wheel, this time they made it round.
-Peterchen on VS.NET
|
|
|
|
|
|
The only problem with Remoting is the lack of any really good explanatory material on it. I've only seen one book that just goes into Remoting. I've thought about getting it. It's from Microsoft Press, and it's called .NET Remoting (Great Title! )
BTW, do you use Reflector[^]? It's always saved me a lot of time when looking at a new namespace...or working with old ones for that matter.
I don't know whether it's just the light but I swear the database server gives me dirty looks everytime I wander past.
-Chris Maunder
Microsoft has reinvented the wheel, this time they made it round.
-Peterchen on VS.NET
|
|
|
|
|
|
Hi,
I'm searching for a .net (preferable written in c#) library which handles ID3V2. I've already found some good ones for ID3V1 but not for ID3V2...
Any help would be highly apreciated
Martin Leonhartsberger
mleonhartsberger@gmx.de
|
|
|
|
|
|
Thanks!
Although I also need write support, it's better than nothing...
Somehow i can't belive that nobody has written a complete library until now...
Martin Leonhartsberger
mleonhartsberger@a1.net
|
|
|
|
|
|
true, but i believe that changes between those versions are somewhat minor, or else they would have named it 3.x. (of course i could be wrong about this )
I just think, if someone has written a complete library for reading, if the whole structure is already there (and it is, judging from the 2 versions mentioned above), it can't be too hard to implement writing?
Just my thoughts
|
|
|
|
|
Can anyone tell me how can I access Btrieve database using C#?
Many Thanks,
Jassim Rahma
|
|
|
|
|
I'm using Regex to identify if a token is alpha [a-zA-Z] but it will not recognize french accents like É, Ô ... Does anyone know what the expression should be?
|
|
|
|
|
You will need to include the character codes for those accented characters in your Regex. I don't know what they are but you should be able to look them up.
The Regex is just matching characters a through z and A through Z. It does not know anything about those accented characters until you add them to the expression.
Hope this helps,
Nathan
---------------------------
Hmmm... what's a signature?
|
|
|
|
|
Did you try the \w (lower case!) expression?
I see dumb people
|
|
|
|
|
I did but something like 34A returns alpha. That not what I want. I have another regex checking for alphanumeric.
|
|
|
|
|
I think I figured it out, at least if I understand you correctly.
You can look at this Ascii table[^].
So to match those characters you need to enter in the extended ascii codes. You can do this in windows by holding down alt and typing the 3 digit ascii codes on the numpad.
Example:
É = alt + 144 <must be="" on="" the="" numpad="">
So then to get a range of these characters do:
[a-zA-ZÉ-ô]
I don't know exactly what characters you need, so you will have to enter them yourself. The alt + combination doesn't seem to work in Internet Explorer, but it does work in Visual Studio on WindowsXP English.
Hope this help clarify more,
Nathan
---------------------------
Hmmm... what's a signature?
|
|
|
|
|
Entering the range Ã-ÿ does seem to work. The ASCII table in your link seems to be code page 850 (American). If you bring up the character map, under Accessories, you can see the values for those characters (Windows code page which I think is 1252??)
The problem is that I will be parsing data from databases. With databases you can specify the code page to use. This would cause a problem with using the range you specified. I found a few links
http://www.unicode.org/reports/tr18/
http://www.microsoft.com/mspress/books/sampchap/5957.asp
There is a [/p{Greek}] and a few other languages but no French.
I'll try your solution for now.
Thanks,
Rome
|
|
|
|
|
I would like to build a server monitor in C#. Anyone have any good ideas ? I know checking the server is still running can be done w/ Ping.
What about the FTP service ?
What about the web server ? ( Sure we can do this w/ WebRequest Obj. and just look for a string but is there a better way ??)
Anyone ?
|
|
|
|
|
I have a custom collection that I built that contains strings, doubles and datetimes. When I try and retrieve that collection from the server I get the following error:
"The type BarCollection in Assembly, Version=1.0.1106.204, Culture=neutral, PublicKeyToken=null is not marked as serializable."
I've derived from CollectionBase and implemented my Add and an indexer (strongly typed). The collection contains a structure that contains the aforementioned strings, doubles and datetimes. I've declared it as [Serializable].
<br />
[Serializable]<br />
public class BarData<br />
{<br />
public DateTime BarDateTime;<br />
public string BarName;<br />
public double d1;<br />
public double d2;<br />
public double d3;<br />
}<br />
and here's a snippet of my collection
<br />
public class BarCollection : CollectionBase<br />
{<br />
public void Add(BarData bar)<br />
{<br />
List.Add(bar);<br />
}<br />
<br />
public BarData this[int Index]<br />
{<br />
get<br />
{<br />
return (BarData)List[Index];<br />
}<br />
set<br />
{<br />
List[Index] = value;<br />
}<br />
}<br />
}<br />
<br />
...<br />
I assume the problem is with the non string members, but what else do I need to do to get this sucker over the wire?
Thanks.
Give me one more medicated peaceful moment
|
|
|
|
|
|
Right above my class definition for BarCollection I have the [Serializable] attribute. Do I need to do something else?
Give me one more medicated peaceful moment
|
|
|
|
|
|
Thanks for the suggestions, however, I figured out the problem. Yes, BarData had to be marked as serializable, but even though BarCollection is derived from CollectionBase which is supposedly already serialized, I still have to add the [Serializable] attribute above that class as well.
This is probably something that is glaringly obvious to anyone that knows anything about remoting ... but did I mention that this is the first day that I've tried it?
Thanks for the replies!
Give me one more medicated peaceful moment
|
|
|
|
|
whats the easyest way too adjust a track bar value from 1 too 100, into a double starting at 1.0 and working its way down to .0001 (for form opacity).
i have it working with a huge switch, but i want a cleaner way to take the int value of say 100 too the double value of .0001
|
|
|
|