dear all, i m facing the following issue when i pressed shortcut key which is "Ctrl + F" register in my application using the following code.
[code]
this.grdMain.GridViewElement.Shortcuts.Add(new RadShortcut(Keys.Control, Keys.F));
this.grdMain.GridBehavior = new ModifiedGridActions();
[/code]
and overriding the keyprocess function in grid behaviors using the following code
[code]
public class ModifiedGridActions : BaseGridBehavior
{
public override bool ProcessKey(KeyEventArgs keys)
{
try
{
if (keys.Control && keys.KeyCode == Keys.F) // issue on this line
{
this.GridControl.MasterView.TableFilteringRow.Cells["cName"].BeginEdit();
}
}
catch (Exception ex)
{
}
return base.ProcessKey(keys);
}
}
[/code]
when i press ctrl + f above override function triggers but its parameter only contains keys.control is true and keys.keycode property contains 17 which also ctrl code. what i expect is to get keys.control is true and keys.keycode should contains keys.F so that my logic can execute am i implementing somthing wrong.

| ToolWindow window = new ToolWindow(); |
| _documentTabStrip.Controls.Add(window); |
| window.Tag = "Tag"; // Here I assign a tag |
| _radDock.DockControl(window, DockPosition.Top, DockType.ToolWindow); |
| // The Tag property of the docked toolwindow is null (_radDock.ToolWindows[0].Tag is null) |
Is there any way to find the docked window in the _radDock to set its Tag.
Please help.
Burhan Eyimaya

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
