Click here to Skip to main content
15,898,222 members
Home / Discussions / C#
   

C#

 
GeneralRe: C# and MySQL Pin
Evgeni579-Mar-10 21:01
Evgeni579-Mar-10 21:01 
QuestionRemap a COM port programmatically Pin
taralex9-Mar-10 9:01
taralex9-Mar-10 9:01 
AnswerRe: Remap a COM port programmatically Pin
Luc Pattyn9-Mar-10 10:45
sitebuilderLuc Pattyn9-Mar-10 10:45 
GeneralRe: Remap a COM port programmatically Pin
taralex9-Mar-10 11:07
taralex9-Mar-10 11:07 
QuestionEasy question about Custom Controls from a newbie. Pin
Kanetakeo9-Mar-10 8:16
Kanetakeo9-Mar-10 8:16 
AnswerRe: Easy question about Custom Controls from a newbie. Pin
DaveyM699-Mar-10 8:50
professionalDaveyM699-Mar-10 8:50 
GeneralRe: Easy question about Custom Controls from a newbie. Pin
Kanetakeo9-Mar-10 10:32
Kanetakeo9-Mar-10 10:32 
GeneralRe: Easy question about Custom Controls from a newbie. Pin
DaveyM699-Mar-10 13:20
professionalDaveyM699-Mar-10 13:20 
Yes - a simple experiment would verify this for you.

This is the idea:
C#
// UserControl with TextBox dropped on and handlng the textBox's Click event
public partial class MyUserControl : UserControl
{
    public MyUserControl()
    {
        InitializeComponent();
    }

    private void textBox_Click(object sender, EventArgs e)
    {
        OnClick(e);
    }
}
C#
//Form with MyUserControl dropped on and handling the myUserControl's Click event
public partial class Form1 : Form
{
    public Form1()
    {
        InitializeComponent();
    }

    private void myUserControl_Click(object sender, EventArgs e)
    {
        MessageBox.Show("Click Event");
    }
}
As you will see, the TextBox's Click event is now 'bubbled' up to the surface by the MyUserControl.
Dave

Binging is like googling, it just feels dirtier. (Pete O'Hanlon)

BTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)
Why are you using VB6? Do you hate yourself? (Christian Graus)

QuestionA new, open source, Outlook panel plugin in C# Pin
François-Denis Gonthier9-Mar-10 7:21
François-Denis Gonthier9-Mar-10 7:21 
AnswerRe: A new, open source, Outlook panel plugin in C# Pin
Wes Aday9-Mar-10 8:53
professionalWes Aday9-Mar-10 8:53 
GeneralRe: A new, open source, Outlook panel plugin in C# Pin
François-Denis Gonthier9-Mar-10 9:04
François-Denis Gonthier9-Mar-10 9:04 
GeneralRe: A new, open source, Outlook panel plugin in C# Pin
Garth J Lancaster9-Mar-10 10:40
professionalGarth J Lancaster9-Mar-10 10:40 
GeneralRe: A new, open source, Outlook panel plugin in C# Pin
François-Denis Gonthier15-Mar-10 5:43
François-Denis Gonthier15-Mar-10 5:43 
Questionwhat is the optimal method for handling time-triggered processing Pin
TimWallace9-Mar-10 6:29
TimWallace9-Mar-10 6:29 
AnswerRe: what is the optimal method for handling time-triggered processing Pin
Not Active9-Mar-10 6:46
mentorNot Active9-Mar-10 6:46 
GeneralRe: what is the optimal method for handling time-triggered processing Pin
TimWallace9-Mar-10 6:55
TimWallace9-Mar-10 6:55 
GeneralRe: what is the optimal method for handling time-triggered processing Pin
Dan Mos9-Mar-10 7:11
Dan Mos9-Mar-10 7:11 
GeneralRe: what is the optimal method for handling time-triggered processing Pin
TimWallace9-Mar-10 7:48
TimWallace9-Mar-10 7:48 
GeneralRe: what is the optimal method for handling time-triggered processing Pin
Dan Mos9-Mar-10 9:57
Dan Mos9-Mar-10 9:57 
GeneralRe: what is the optimal method for handling time-triggered processing Pin
Not Active9-Mar-10 7:15
mentorNot Active9-Mar-10 7:15 
GeneralRe: what is the optimal method for handling time-triggered processing Pin
TimWallace9-Mar-10 7:46
TimWallace9-Mar-10 7:46 
GeneralRe: what is the optimal method for handling time-triggered processing Pin
Not Active9-Mar-10 7:59
mentorNot Active9-Mar-10 7:59 
AnswerRe: what is the optimal method for handling time-triggered processing Pin
Matthew Klein9-Mar-10 7:48
Matthew Klein9-Mar-10 7:48 
GeneralRe: what is the optimal method for handling time-triggered processing Pin
TimWallace9-Mar-10 7:51
TimWallace9-Mar-10 7:51 
GeneralRe: what is the optimal method for handling time-triggered processing Pin
Not Active9-Mar-10 8:01
mentorNot Active9-Mar-10 8:01 

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.