Hi,
I'm creating password with track bar.
I do not know how to write code (TrackBar.Value):
Please check my code:
01.int PassLength = 0;02.static string Shuffle(string input)03.{04. var q = from c in input.ToCharArray()05. orderby Guid.NewGuid()06. select c;07. string s = string.Empty;08. foreach (var r in q)09. s += r;10. return s;11.}12.private void CreatePassword_Click(object sender, EventArgs e)13.{14. txt_CreatePass.Text = "";15. string text = "aAbBcCdDeEfFgGhHiIjJhHkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ01234567890123456789{,;:!*$@-_=^[}{,;:!*$@-_=^[}";16. text = Shuffle(text); //shuffle the above symbols using shuffle() method.17. text = text.Remove(PassLength); //cut the string size according to the chosen trackbar value.18. txt_CreatePass.Text = text;19.}20. 21.private void TrackBar_ValueChanged(object sender, EventArgs e)22.{23. 24. this.TrackBarCreatePass.Value = Convert.ToInt32(+1);25. lbl_Count.Text = PassLength.ToString();26. 27. //lbl_Count.Text = TrackBarCreatePass.Value.ToString();28. //PassLength = this.TrackBarCreatePass.Value;29.}30. 31.private void TrackBar1_CreatePass_ValueChanged(object sender, EventArgs e)32.{33. PassLength = TrackBar1_CreatePass.Value + 1; //trackbar value starts from 0, so I add +1 to make it understandable;34. lbl_Count.Text = PassLength.ToString();35.}Is there any way to apply a StyleRepository object to a control? I know I can do something like:
Theme currenTheme = ThemeRepository.FindTheme(ThemeResolutionService.ApplicationThemeName);
StyleRepository repositoryFromTheme = currenTheme.FindRepository("DisabledForeColor");
PropertySetting styleForeColor = repositoryFromTheme.FindSetting("ForeColor");
Color colorToSet = (Color)styleForeColor.Value;
myTextBox.Forecolor = colorToSet;
However, if I have multiple properties to set (say, multiple colors and maybe some transparency or a background image or something), this can get a bit tedious and it lacks flexibility. So, what I'd like to do is just take the StyleRepository object and apply it directly to the control. Alternately, I'd be fine with looping through the settings collection and applying each of those individually so long as I didn't have to hard code the names of the PropertySettings into my code. Something like:
foreach (PropertySetting currentPropertySetting in repositoryObjectFromTheme.Settings)
{
genericRadControl.SOMETHING = currentPropertySetting;
}
would work for me fine as well.
Any suggestions?


Hello,
There is a bug in gridview printiing with mode landscape only
with this gridview :
http://creiler.free.fr/window_gridview.jpg
My PrintStyle :
With oStyle
.FitWidthMode = PrintFitWidthMode.NoFitCentered
.PrintGrouping = False
.PrintSummaries = True
.PrintHeaderOnEachPage = True
.PrintHiddenColumns = False
.PrintHierarchy = True
.PrintAllPages = True
.HierarchyIndent = 0
.CellFont = New System.Drawing.Font("Arial", 8, FontStyle.Regular)
.HeaderCellFont = New System.Drawing.Font("Arial", 8, FontStyle.Regular)
.SummaryCellFont = New System.Drawing.Font("Arial", 8, FontStyle.Bold)
.GroupRowFont = New System.Drawing.Font("Arial", 8, FontStyle.Bold)
End With​
normal :
http://creiler.free.fr/gridview1.jpg
landscape :
http://creiler.free.fr/gridview2.jpg​​
Summary cells are shifting

Hi,
I have to add a ContextMenu to my MultiColumnComboBox. I already added a Winforms ContextMenuStrip and also set the ContextMenu Property.
Now when I click on my dropDownButton of the ComboBox the right ContextMenu is shown but if I click in the middle of the textboxelement of the Combobox I get another one I do not want. Setting the ContextMenu of the textboxelement doesnt change that behaviour.
THIS-OBJECT:MultiColumnComboBoxElement:TextBoxElement:TextBoxItem:HostedControl:ContextMenuStrip = THIS-OBJECT:contextMenuStripMain
Does anyone have an idea how to solve this ?
Sincerely,
Dominik

Hello
- Are there means to style hyperlinks in a html formatted RadLabel similar to css (.hover, .visited etc.)? couldn't find anything in the docs.
- When using a RadLabel with a hyperlink on a Rad Doc Document, the link seems to stay in .active mode after the webpage has opened. When I reopen the document the link goes into .visited style (as expected). I'd like it to revert to initial state or go into .visited state.
Regards
Erwin

