-
Enumeration Members
Can one loop through an enumeration in code? Or write something to get a random member of the enumeration?
For instance. I'm testing this treeview control. Got many borderstyles. So just want to add a button and when i click it, set the borderstyle to anoter on in the Borderstyle enumeration
-
Re: Enumeration Members
foreach (string s in Enum.GetNames(typeof (System.Web.UI.WebControls.BorderStyle)))
{
TreeView1.BorderStyle = ...what do in do here???? System.Threading.Thread.Sleep(1000);
}
-
Re: Enumeration Members
I moved the thread form the Codebank. The codebank is only for posting code samples, not questions.
-
Re: Enumeration Members
Oh my....I must have posted it there by accident, I'm so sorry.
Cuz after I posted it the "first time", I did not see it in the forum (C#), thought I must have messed up, and posted it again.
Sorry hey!