Click here to Skip to main content
16,015,583 members
Home / Discussions / C#
   

C#

 
QuestionUsing the office 2007 Ribbon ( drag-n-drop a window without using the border ) [modified] Pin
Mahhouraaaaaa14-Sep-08 1:22
Mahhouraaaaaa14-Sep-08 1:22 
AnswerRe: Using the office 2007 Ribbon ( drag-n-drop a window without using the border ) Pin
The Cake of Deceit14-Sep-08 9:37
The Cake of Deceit14-Sep-08 9:37 
QuestionDebugging External .exe Pin
Jammer14-Sep-08 1:03
Jammer14-Sep-08 1:03 
AnswerRe: Debugging External .exe Pin
Jimmanuel14-Sep-08 9:18
Jimmanuel14-Sep-08 9:18 
QuestionWhat am I doing wrong with this OnPaint override? Pin
Dewald14-Sep-08 0:17
Dewald14-Sep-08 0:17 
AnswerRe: What am I doing wrong with this OnPaint override? Pin
Anthony Mushrow14-Sep-08 0:57
professionalAnthony Mushrow14-Sep-08 0:57 
GeneralRe: What am I doing wrong with this OnPaint override? Pin
Dewald14-Sep-08 2:08
Dewald14-Sep-08 2:08 
QuestionRe: What am I doing wrong with this OnPaint override? [modified] Pin
Dewald14-Sep-08 3:59
Dewald14-Sep-08 3:59 
Oh bother! It seems my problem is bigger than just that. But at least, I suspect that if I can sort this one out it will be a sollution to the above as well.

I've now tried to implement an OnClick event for the Panels by adding this:
newPanel.Click += new EventHandler(panelTab_Click);
just before this:
this.Controls.Add(newPanel);

and defining panelTab_Click as follows:
private void panelTab_Click(object sender, EventArgs e)
{
   // My code here
}


However, even though the tabs are being added to the control they wouldn't respond to mouse clicks and the function above is never called. I'm reasonably sure that I'm adding the event handler correctly so I think my problem is with the way I'm adding these panels to the control in the first place. Any ideas?

modified on Sunday, September 14, 2008 1:42 PM

Questionhow can i send data to database without repetition Pin
ahmedhassan9613-Sep-08 23:23
ahmedhassan9613-Sep-08 23:23 
AnswerRe: how can i send data to database without repetition Pin
User 665813-Sep-08 23:55
User 665813-Sep-08 23:55 
AnswerRe: how can i send data to database without repetition Pin
Blue_Boy13-Sep-08 23:59
Blue_Boy13-Sep-08 23:59 
AnswerRe: how can i send data to database without repetition Pin
nelsonpaixao14-Sep-08 12:51
nelsonpaixao14-Sep-08 12:51 
QuestionHow can we find windows Temp folder ? Pin
Mohammad Dayyan13-Sep-08 20:44
Mohammad Dayyan13-Sep-08 20:44 
AnswerRe: How can we find windows Temp folder ? Pin
M Harris13-Sep-08 23:10
M Harris13-Sep-08 23:10 
AnswerRe: How can we find windows Temp folder ? Pin
Giorgi Dalakishvili13-Sep-08 23:24
mentorGiorgi Dalakishvili13-Sep-08 23:24 
AnswerRe: How can we find windows Temp folder ? Pin
DaveyM6914-Sep-08 23:33
professionalDaveyM6914-Sep-08 23:33 
GeneralRe: How can we find windows Temp folder ? Pin
Mohammad Dayyan15-Sep-08 3:08
Mohammad Dayyan15-Sep-08 3:08 
GeneralRe: How can we find windows Temp folder ? Pin
DaveyM6915-Sep-08 3:48
professionalDaveyM6915-Sep-08 3:48 
GeneralRe: How can we find windows Temp folder ? Pin
Mohammad Dayyan15-Sep-08 9:47
Mohammad Dayyan15-Sep-08 9:47 
QuestionNative Image not found help Pin
Silvyster13-Sep-08 15:51
Silvyster13-Sep-08 15:51 
AnswerRe: Native Image not found help Pin
Anthony Mushrow13-Sep-08 16:27
professionalAnthony Mushrow13-Sep-08 16:27 
GeneralRe: Native Image not found help Pin
Silvyster13-Sep-08 16:32
Silvyster13-Sep-08 16:32 
AnswerRe: Native Image not found help Pin
Karthik Kalyanasundaram13-Sep-08 16:43
Karthik Kalyanasundaram13-Sep-08 16:43 
Questionhow can i get the last word from the string Pin
ahmedhassan9613-Sep-08 15:41
ahmedhassan9613-Sep-08 15:41 
AnswerRe: how can i get the last word from the string Pin
Steven A. Lowe13-Sep-08 16:01
Steven A. Lowe13-Sep-08 16: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.