Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
100% Quality Score
Upvotes Received
1
Posts with Upvotes
1
Upvoting Members
1
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
0 Endorsements
~2K People Reached
Favorite Forums
Member Avatar for aulason

hi there, i'm designing a form in Right-to-Left mode. there are some autosize labels getting their text from the string table of the project's resources. however, when the text is inserted into the label at runtime, it enlarges to the left and goes out of the form. logically, the label …

Member Avatar for sknake
0
1K
Member Avatar for aulason

hi there, i want to randomly pick an element from an array, so i used the following code. [code=C#] Random rndCell = new Random((int)DateTime.Now.Ticks); while (true) { rndCell.Next(aCells.Length); int rndIndex = Convert.ToInt32(rndCell.ToString()); if (aCells[rndIndex] != null) { aCells[rndIndex] = SOMETHING; // DO SOMETHING ELSE WITH rndIndex... break; } } [/code] …

Member Avatar for ddanbe
0
209
Member Avatar for aulason

hi, i would like to create components at runtime. i've added a label to the form and set its properties at design time. now i want to create 8 more copies of the label when the program starts (oc with the same properties). how can i add them and refer …

Member Avatar for ddanbe
0
95
Member Avatar for aulason

hi there, there are 9 labels on the form with the name say [B]Label1[/B], [B]Label2[/B], [B]Label3[/B], ... now i would like to set their text to "". is there anyway to use a loop and find them just by knowing their name. any help is appreciated, Sean

Member Avatar for aulason
0
83