ฉันต้องแทนที่ Tabcontrol GetTabRect
protected override Rectangle GetTabRect(int index)
{...}
ฉันได้รับข้อผิดพลาดนี้
ข้อผิดพลาด 1 'TabControl.GetTabRect(int)': ไม่สามารถเปลี่ยนตัวปรับเปลี่ยนการเข้าถึงได้เมื่อแทนที่สมาชิกที่สืบทอดมา 'สาธารณะ' 'System.Windows.Forms.TabControl.GetTabRect(int)'
Error2'TabControl.GetTabRect(int)': ไม่สามารถแทนที่สมาชิกที่สืบทอดมา 'System.Windows.Forms.TabControl.GetTabRect(int)' ได้เนื่องจากไม่ได้ทำเครื่องหมายเสมือน นามธรรม หรือแทนที่
ฉันจะทำเช่นนี้ได้อย่างไร?
แก้ไข
ถ้าฉันใช้สาธารณะ:
TabControl.GetTabRect(int)': cannot override inherited member 'System.Windows.Forms.TabControl.GetTabRect(int)' because it is not marked virtual, abstract, or override
virtual
ดังนั้นคุณจึงไม่สามารถแทนที่ได้ (โดยไม่คำนึงถึงตัวดัดแปลงการเข้าถึง) - person BrokenGlass   schedule 31.03.2011