تقييم الموضوع :
  • 0 أصوات - بمعدل 0
  • 1
  • 2
  • 3
  • 4
  • 5
تصحيح هذا الكود
#2
يا أسامة،

جرب هذا التعديل
PHP كود :
private void InvalidateScroll()
{
    
Debug.Print(Convert.ToString(Height));
    if (
Convert.ToInt32(Math.Round((decimal)((_Items.Count) * ItemHeight) / _SelectedHeight)) < Convert.ToDouble((((_Items.Count) * ItemHeight) / _SelectedHeight))) {
        
VerticalScrollbar._Maximum Convert.ToInt32(Math.Ceiling((decimal)((_Items.Count) * ItemHeight) / _SelectedHeight));
    } else if (
Convert.ToInt32(Math.Round((decimal)((_Items.Count) * ItemHeight) / _SelectedHeight)) == 0) {
        
VerticalScrollbar._Maximum 1;
    } else {
        
VerticalScrollbar._Maximum Convert.ToInt32(Math.Round((decimal)((_Items.Count) * ItemHeight) / _SelectedHeight));
    }
    
Invalidate();

الرد }}}
تم الشكر بواسطة: أسامة


الردود في هذا الموضوع
تصحيح هذا الكود - بواسطة أسامة - 05-07-16, 06:09 AM
RE: تصحيح هذا الكود - بواسطة الوادي - 05-07-16, 04:54 PM
RE: تصحيح هذا الكود - بواسطة أسامة - 05-07-16, 07:06 PM


التنقل السريع :


يقوم بقرائة الموضوع: