|
-
May 8th, 2005, 11:57 PM
#1
Thread Starter
Frenzied Member
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
-
May 9th, 2005, 03:45 AM
#2
Thread Starter
Frenzied Member
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);
}
-
May 10th, 2005, 04:21 PM
#3
-
May 10th, 2005, 10:45 PM
#4
Thread Starter
Frenzied Member
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!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|