This question is locked. New answers and comments are not allowed.
Hi!
I've reinstalled my computer, and now my project won't build.
"The type or namespace name 'RadPopupForm' could not be found (are you missing a using directive or an assembly reference?)"
I'm using VS 2005 and WinForms 2010.1.10.308_dev
If I comment out this section, everything else is ok. And it was ok before reinstalling windows7.
I've reinstalled my computer, and now my project won't build.
"The type or namespace name 'RadPopupForm' could not be found (are you missing a using directive or an assembly reference?)"
I'm using VS 2005 and WinForms 2010.1.10.308_dev
If I comment out this section, everything else is ok. And it was ok before reinstalling windows7.
private void radComboBoxAgreement_DropDownOpened(object sender, EventArgs e) |
{ |
//getting the popup form which size should be set |
RadPopupForm popup = (RadPopupForm)radComboBoxAgreement.Items[0].ElementTree.Control; |
int desiredWidth = (int)radComboBoxAgreement.ComboBoxElement.ListBoxElement.Viewport.DesiredSize.Width; |
RadScrollLayoutPanel scrollPanel = (RadScrollLayoutPanel)radComboBoxAgreement.ComboBoxElement.ListBoxElement.Children[2]; |
if (desiredWidth > radComboBoxAgreement.Width) |
{ |
if (scrollPanel.CanVerticalScroll) |
{ |
desiredWidth += radComboBoxAgreement.ComboBoxElement.ListBoxElement.ScrollThickness; |
} |
//adding border width (both left and right) of the inner listbox element. |
desiredWidth += radComboBoxAgreement.ComboBoxElement.ListBoxElement.BorderThickness.Horizontal; |
popup.Size = new Size(desiredWidth, popup.Height); |
} |
} |