Click here to Skip to main content
15,892,746 members
Home / Discussions / Visual Basic
   

Visual Basic

 
Questiondatabase access Pin
Mshindi6-Apr-15 8:30
Mshindi6-Apr-15 8:30 
AnswerRe: database access Pin
Dave Kreskowiak6-Apr-15 8:40
mveDave Kreskowiak6-Apr-15 8:40 
QuestionDetect if any of controls inside a TableLayoutPanel is clicked Pin
dilkonika5-Apr-15 17:39
dilkonika5-Apr-15 17:39 
AnswerRe: Detect if any of controls inside a TableLayoutPanel is clicked Pin
Richard MacCutchan5-Apr-15 22:03
mveRichard MacCutchan5-Apr-15 22:03 
GeneralRe: Detect if any of controls inside a TableLayoutPanel is clicked Pin
dilkonika6-Apr-15 6:15
dilkonika6-Apr-15 6:15 
GeneralRe: Detect if any of controls inside a TableLayoutPanel is clicked Pin
Dave Kreskowiak6-Apr-15 6:32
mveDave Kreskowiak6-Apr-15 6:32 
GeneralRe: Detect if any of controls inside a TableLayoutPanel is clicked Pin
dilkonika6-Apr-15 6:37
dilkonika6-Apr-15 6:37 
GeneralRe: Detect if any of controls inside a TableLayoutPanel is clicked Pin
Dave Kreskowiak6-Apr-15 7:32
mveDave Kreskowiak6-Apr-15 7:32 
Again, the TableLayoutPanel is NOT a control you can click on. It is an extension to other controls where it adds properties to them to change the way they layout in their parent container, such as a Form or Panel.

There is no way to differentiate where a Click event came from. It's always going to be from the button itself.

If you're kicking off a Click event from code, you're doing it wrong. Move the code from inside the event handler into it's own method and call it from both your code and from the Click event handler.
A guide to posting questions on CodeProject

Click this: Asking questions is a skill.
Seriously, do it.

Dave Kreskowiak

GeneralRe: Detect if any of controls inside a TableLayoutPanel is clicked Pin
Sascha Lefèvre6-Apr-15 6:35
professionalSascha Lefèvre6-Apr-15 6:35 
GeneralRe: Detect if any of controls inside a TableLayoutPanel is clicked Pin
dilkonika6-Apr-15 6:39
dilkonika6-Apr-15 6:39 
GeneralRe: Detect if any of controls inside a TableLayoutPanel is clicked Pin
Sascha Lefèvre6-Apr-15 6:59
professionalSascha Lefèvre6-Apr-15 6:59 
GeneralRe: Detect if any of controls inside a TableLayoutPanel is clicked Pin
dilkonika6-Apr-15 7:02
dilkonika6-Apr-15 7:02 
GeneralRe: Detect if any of controls inside a TableLayoutPanel is clicked Pin
dilkonika6-Apr-15 7:05
dilkonika6-Apr-15 7:05 
GeneralRe: Detect if any of controls inside a TableLayoutPanel is clicked Pin
Sascha Lefèvre6-Apr-15 7:11
professionalSascha Lefèvre6-Apr-15 7:11 
GeneralRe: Detect if any of controls inside a TableLayoutPanel is clicked Pin
dilkonika6-Apr-15 7:13
dilkonika6-Apr-15 7:13 
GeneralRe: Detect if any of controls inside a TableLayoutPanel is clicked Pin
Sascha Lefèvre6-Apr-15 7:19
professionalSascha Lefèvre6-Apr-15 7:19 
GeneralRe: Detect if any of controls inside a TableLayoutPanel is clicked Pin
dilkonika6-Apr-15 7:26
dilkonika6-Apr-15 7:26 
GeneralRe: Detect if any of controls inside a TableLayoutPanel is clicked Pin
Sascha Lefèvre6-Apr-15 7:39
professionalSascha Lefèvre6-Apr-15 7:39 
GeneralRe: Detect if any of controls inside a TableLayoutPanel is clicked Pin
dilkonika6-Apr-15 7:49
dilkonika6-Apr-15 7:49 
GeneralRe: Detect if any of controls inside a TableLayoutPanel is clicked Pin
Sascha Lefèvre6-Apr-15 8:00
professionalSascha Lefèvre6-Apr-15 8:00 
QuestionScroll controls in a TableLayoutPanel using code Pin
dilkonika3-Apr-15 18:45
dilkonika3-Apr-15 18:45 
AnswerRe: Scroll controls in a TableLayoutPanel using code Pin
Richard MacCutchan3-Apr-15 21:50
mveRichard MacCutchan3-Apr-15 21:50 
AnswerRe: Scroll controls in a TableLayoutPanel using code Pin
Dave Kreskowiak4-Apr-15 3:47
mveDave Kreskowiak4-Apr-15 3:47 
AnswerRe: Scroll controls in a TableLayoutPanel using code Pin
Sascha Lefèvre4-Apr-15 13:18
professionalSascha Lefèvre4-Apr-15 13:18 
GeneralRe: Scroll controls in a TableLayoutPanel using code Pin
dilkonika4-Apr-15 14:38
dilkonika4-Apr-15 14:38 

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.