Thanks! That is what I was looking for. I heard there was something like
this, just couldn't find it.
"Erik Frey" <er*******@hotmail.com> wrote in message
news:eS*************@TK2MSFTNGP11.phx.gbl...
Is there a easy way (meaning not spliting on each . ) to compare version
strings to find out which is greater?
use System.Version:
string s1 ="001.001.002", s2 = "001.001.001";
Version v1 = new Version(s1), v2 = new Version(s2);
if (v1 > v2)
MessageBox.Show("Yes");
Erik