Click here to Skip to main content
15,893,622 members
Home / Discussions / C#
   

C#

 
Questionc# double pointer Pin
wwwxyz28-Jun-08 11:24
wwwxyz28-Jun-08 11:24 
AnswerRe: c# double pointer Pin
Luc Pattyn28-Jun-08 12:12
sitebuilderLuc Pattyn28-Jun-08 12:12 
GeneralRe: c# double pointer Pin
wwwxyz28-Jun-08 18:40
wwwxyz28-Jun-08 18:40 
AnswerRe: c# double pointer Pin
Guffa28-Jun-08 23:41
Guffa28-Jun-08 23:41 
GeneralRe: c# double pointer Pin
Luc Pattyn29-Jun-08 2:20
sitebuilderLuc Pattyn29-Jun-08 2:20 
Questionproblem to Refresh Control after it's value changed. Pin
hdv21228-Jun-08 11:16
hdv21228-Jun-08 11:16 
AnswerRe: problem to Refresh Control after it's value changed. Pin
Luc Pattyn28-Jun-08 12:15
sitebuilderLuc Pattyn28-Jun-08 12:15 
GeneralRe: problem to Refresh Control after it's value changed. Pin
hdv21228-Jun-08 23:08
hdv21228-Jun-08 23:08 
thanks for reply
no matter which font is used, the problem is that how to refresh my control to display new caption value after i set it in designTime.
here is my ful source Code :
public partial class UserControl1 : UserControl
    {
        private string _caption;

        public string Caption
        {
            get { return _caption; }
            set { _caption = value; }
        }
        public UserControl1()
        {
            InitializeComponent();
            this.Height = 20;
            this.Width = 100;
            this.BackColor = Color.White;
        }

        protected override void OnPaint(PaintEventArgs e)
        {            
            e.Graphics.DrawString(this.Caption, new Font("tahoma", 8), Brushes.Black, 0, 4);
            base.OnPaint(e);
        }
    }

thanks
GeneralRe: problem to Refresh Control after it's value changed. Pin
Luc Pattyn29-Jun-08 2:13
sitebuilderLuc Pattyn29-Jun-08 2:13 
GeneralRe: problem to Refresh Control after it's value changed. Pin
hdv21229-Jun-08 4:50
hdv21229-Jun-08 4:50 
QuestionProblem with WebBrowser.DocumentText Pin
That Asian Guy28-Jun-08 10:43
That Asian Guy28-Jun-08 10:43 
GeneralRe: Problem with WebBrowser.DocumentText Pin
That Asian Guy28-Jun-08 12:51
That Asian Guy28-Jun-08 12:51 
QuestionSaveing tabs and content when closing app Pin
SilverAdder28-Jun-08 9:59
SilverAdder28-Jun-08 9:59 
AnswerRe: Saveing tabs and content when closing app Pin
Giorgi Dalakishvili28-Jun-08 10:49
mentorGiorgi Dalakishvili28-Jun-08 10:49 
GeneralRe: Saveing tabs and content when closing app Pin
SilverAdder30-Jun-08 5:22
SilverAdder30-Jun-08 5:22 
GeneralRe: Saveing tabs and content when closing app Pin
Giorgi Dalakishvili30-Jun-08 5:36
mentorGiorgi Dalakishvili30-Jun-08 5:36 
GeneralRe: Saveing tabs and content when closing app Pin
SilverAdder30-Jun-08 6:41
SilverAdder30-Jun-08 6:41 
GeneralRe: Saveing tabs and content when closing app Pin
Giorgi Dalakishvili30-Jun-08 6:47
mentorGiorgi Dalakishvili30-Jun-08 6:47 
GeneralRe: Saveing tabs and content when closing app Pin
SilverAdder30-Jun-08 7:41
SilverAdder30-Jun-08 7:41 
GeneralRe: Saveing tabs and content when closing app Pin
Giorgi Dalakishvili30-Jun-08 8:21
mentorGiorgi Dalakishvili30-Jun-08 8:21 
Questioncommunicate with windows Pin
Shaahinm28-Jun-08 9:58
Shaahinm28-Jun-08 9:58 
AnswerRe: communicate with windows Pin
subai28-Jun-08 18:04
subai28-Jun-08 18:04 
QuestionHow to get a file name from a FileDialog? Pin
Admin88728-Jun-08 9:52
Admin88728-Jun-08 9:52 
AnswerRe: How to get a file name from a FileDialog? Pin
Shaahinm28-Jun-08 10:15
Shaahinm28-Jun-08 10:15 
AnswerRe: How to get a file name from a FileDialog? Pin
Luis Alonso Ramos28-Jun-08 16:08
Luis Alonso Ramos28-Jun-08 16:08 

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.