Click here to Skip to main content
15,914,444 members
Home / Discussions / C#
   

C#

 
AnswerRe: C# Member initialization question Pin
Luc Pattyn12-Jun-07 4:23
sitebuilderLuc Pattyn12-Jun-07 4:23 
GeneralRe: C# Member initialization question Pin
jayart12-Jun-07 4:43
jayart12-Jun-07 4:43 
GeneralRe: C# Member initialization question Pin
Luc Pattyn12-Jun-07 5:09
sitebuilderLuc Pattyn12-Jun-07 5:09 
QuestionStringFormat..Trimming Pin
Gareth H12-Jun-07 3:22
Gareth H12-Jun-07 3:22 
AnswerRe: StringFormat..Trimming Pin
Luc Pattyn12-Jun-07 3:28
sitebuilderLuc Pattyn12-Jun-07 3:28 
GeneralRe: StringFormat..Trimming Pin
Gareth H12-Jun-07 3:49
Gareth H12-Jun-07 3:49 
QuestionInformation Pin
Icarus12312-Jun-07 3:11
Icarus12312-Jun-07 3:11 
Questionproblem with Extending DataGridView With GDI+. Pin
hdv21212-Jun-07 2:49
hdv21212-Jun-07 2:49 
hi i want to extend the standard DataGridView in vs 2005 mySelf, and i want to add footer to DataGridView,this is my code to override paint method :

public partial class ExGridView : DataGridView<br />
    {<br />
        private int _footerHeight;<br />
        public ExGridView()<br />
        {<br />
            InitializeComponent();<br />
            _footerHeight = 20;<br />
        }<br />
<br />
        public int FooterHeight<br />
        {<br />
            get<br />
            {<br />
                return _footerHeight;<br />
            }<br />
            set<br />
            {<br />
                if (_footerHeight != value)<br />
                {<br />
                    _footerHeight = value;<br />
                    Invalidate();<br />
                }<br />
            }<br />
        }<br />
<br />
        protected override void OnPaint(PaintEventArgs e)<br />
        {<br />
            base.OnPaint(e);<br />
            Rectangle rOrginal = this.ClientRectangle;<br />
            Rectangle rFooter = new Rectangle(0, this.Height, this.Width, _footerHeight);<br />
            e.ClipRectangle.Offset(0, _footerHeight);<br />
            e.Graphics.DrawRectangle(Pens.Black, rFooter);<br />
            e.Graphics.DrawString("Test", this.Font, Brushes.Black, new PointF((float)rFooter.X + 10, (float)rFooter.Y + 5));            <br />
        }<br />
    }

but when compile my app and add myControl (ExGridView) to my form, nothing occured, where does problem and how to solve it ?
QuestionAdding controls to FlowLayoutPanel Pin
zaboboa12-Jun-07 2:48
zaboboa12-Jun-07 2:48 
AnswerRe: Adding controls to FlowLayoutPanel Pin
Scott Dorman13-Jun-07 4:26
professionalScott Dorman13-Jun-07 4:26 
QuestionException of type java.lang.ExceptionInInitializerError was thrown Pin
Nafiseh Salmani12-Jun-07 2:41
Nafiseh Salmani12-Jun-07 2:41 
Questionhow to use shortcut keys in a Windows Form Pin
Rocky#12-Jun-07 2:38
Rocky#12-Jun-07 2:38 
AnswerRe: how to use shortcut keys in a Windows Form Pin
Luc Pattyn12-Jun-07 2:51
sitebuilderLuc Pattyn12-Jun-07 2:51 
QuestionSystem.Configuration or Enterprise Library Config 3.0 for C# 2.0 [modified] Pin
shubhabratam12-Jun-07 2:33
shubhabratam12-Jun-07 2:33 
AnswerRe: System.Configuration or Enterprise Library Config 3.0 for C# 2.0 Pin
Not Active12-Jun-07 3:54
mentorNot Active12-Jun-07 3:54 
QuestionRe: System.Configuration or Enterprise Library Config 3.0 for C# 2.0 Pin
shubhabratam12-Jun-07 6:04
shubhabratam12-Jun-07 6:04 
AnswerRe: System.Configuration or Enterprise Library Config 3.0 for C# 2.0 Pin
Not Active12-Jun-07 6:28
mentorNot Active12-Jun-07 6:28 
GeneralRe: System.Configuration or Enterprise Library Config 3.0 for C# 2.0 Pin
shubhabratam12-Jun-07 6:45
shubhabratam12-Jun-07 6:45 
QuestionRemoving $ from string Pin
digsy_12-Jun-07 2:27
digsy_12-Jun-07 2:27 
AnswerRe: Removing $ from string Pin
DavidNohejl12-Jun-07 2:31
DavidNohejl12-Jun-07 2:31 
AnswerRe: Removing $ from string Pin
Thomas Stockwell12-Jun-07 3:03
professionalThomas Stockwell12-Jun-07 3:03 
GeneralRe: Removing $ from string Pin
Not Active12-Jun-07 3:47
mentorNot Active12-Jun-07 3:47 
GeneralRe: Removing $ from string Pin
Thomas Stockwell12-Jun-07 4:06
professionalThomas Stockwell12-Jun-07 4:06 
GeneralRe: Removing $ from string Pin
ScottM112-Jun-07 3:48
ScottM112-Jun-07 3:48 
AnswerRe: Removing $ from string Pin
Giorgi Dalakishvili12-Jun-07 6:34
mentorGiorgi Dalakishvili12-Jun-07 6:34 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.