Click here to Skip to main content
15,902,908 members
Home / Discussions / C#
   

C#

 
Question.NET Remotable Types Pin
conor2018-Jun-08 5:39
conor2018-Jun-08 5:39 
QuestionType casting Pin
indian14318-Jun-08 5:04
indian14318-Jun-08 5:04 
AnswerRe: Type casting Pin
DaveyM6918-Jun-08 5:08
professionalDaveyM6918-Jun-08 5:08 
AnswerRe: Type casting Pin
led mike18-Jun-08 5:21
led mike18-Jun-08 5:21 
AnswerRe: Type casting Pin
Pete O'Hanlon18-Jun-08 8:37
mvePete O'Hanlon18-Jun-08 8:37 
QuestionCustom Control implementation at Runtime via Code vs. Designtime via Toolbox Pin
rcaciopp18-Jun-08 5:01
rcaciopp18-Jun-08 5:01 
AnswerRe: Custom Control implementation at Runtime via Code vs. Designtime via Toolbox Pin
led mike18-Jun-08 5:26
led mike18-Jun-08 5:26 
GeneralRe: Custom Control implementation at Runtime via Code vs. Designtime via Toolbox Pin
rcaciopp18-Jun-08 6:24
rcaciopp18-Jun-08 6:24 
Think so. This code compiles and runs without error. If I do a step through, I clearly see the code hit the control's constructor but skips the OnPaint() method.

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace TestNewControls
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void Form1_Load(object sender, EventArgs e)
        {
            ProgressBarLabel.ProgressBarLabel myPBL = new ProgressBarLabel.ProgressBarLabel();
            myPBL.ProgressBarBackColor = Color.Blue;
            myPBL.ProgressBarWidthRatio = 0.5F;
            myPBL.Text = "Runtime";
            myPBL.Location = new Point(15, 15);
            this.Controls.Add(myPBL);
        }
    }
}

GeneralRe: Custom Control implementation at Runtime via Code vs. Designtime via Toolbox Pin
darkelv18-Jun-08 6:31
darkelv18-Jun-08 6:31 
GeneralRe: Custom Control implementation at Runtime via Code vs. Designtime via Toolbox Pin
rcaciopp18-Jun-08 6:48
rcaciopp18-Jun-08 6:48 
GeneralRe: Custom Control implementation at Runtime via Code vs. Designtime via Toolbox Pin
darkelv18-Jun-08 6:58
darkelv18-Jun-08 6:58 
AnswerRe: Custom Control implementation at Runtime via Code vs. Designtime via Toolbox Pin
rcaciopp18-Jun-08 7:26
rcaciopp18-Jun-08 7:26 
QuestionCulture independant Dates? Pin
Megidolaon18-Jun-08 3:59
Megidolaon18-Jun-08 3:59 
AnswerRe: Culture independant Dates? Pin
Luc Pattyn18-Jun-08 4:17
sitebuilderLuc Pattyn18-Jun-08 4:17 
AnswerRe: Culture independant Dates? Pin
PIEBALDconsult18-Jun-08 4:45
mvePIEBALDconsult18-Jun-08 4:45 
GeneralRe: Culture independant Dates? Pin
Megidolaon19-Jun-08 21:01
Megidolaon19-Jun-08 21:01 
Questionxcopy in post build event Pin
Russell Jones18-Jun-08 3:29
Russell Jones18-Jun-08 3:29 
QuestionListViewItem image overlay [modified] Pin
ajtunbridge18-Jun-08 2:59
ajtunbridge18-Jun-08 2:59 
AnswerRe: ListViewItem image overlay Pin
led mike18-Jun-08 5:24
led mike18-Jun-08 5:24 
GeneralRe: ListViewItem image overlay Pin
ajtunbridge18-Jun-08 5:48
ajtunbridge18-Jun-08 5:48 
Questionhow to check the database connected is readonly? Pin
nicolus18-Jun-08 2:46
nicolus18-Jun-08 2:46 
AnswerRe: how to check the database connected is readonly? Pin
Bert delaVega18-Jun-08 16:27
Bert delaVega18-Jun-08 16:27 
Questionfloat representation Pin
George_George18-Jun-08 2:24
George_George18-Jun-08 2:24 
AnswerRe: float representation Pin
Alan Balkany18-Jun-08 3:14
Alan Balkany18-Jun-08 3:14 
GeneralRe: float representation Pin
George_George18-Jun-08 3:29
George_George18-Jun-08 3:29 

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.