Click here to Skip to main content
15,917,176 members
Home / Discussions / C#
   

C#

 
GeneralRe: Delete a word everytime the program see it. Pin
ahlm9-Dec-09 18:31
ahlm9-Dec-09 18:31 
QuestionSqlCeResultSet Problem [modified] Pin
Stanciu Vlad9-Dec-09 6:25
Stanciu Vlad9-Dec-09 6:25 
AnswerRe: SqlCeResultSet Problem Pin
Migounette9-Dec-09 12:19
Migounette9-Dec-09 12:19 
QuestionRe: SqlCeResultSet Problem Pin
Stanciu Vlad9-Dec-09 20:09
Stanciu Vlad9-Dec-09 20:09 
QuestionUpdate own written TabPage Pin
Tagamoga9-Dec-09 4:18
Tagamoga9-Dec-09 4:18 
AnswerRe: Update own written TabPage Pin
The Man from U.N.C.L.E.9-Dec-09 7:01
The Man from U.N.C.L.E.9-Dec-09 7:01 
GeneralRe: Update own written TabPage Pin
Tagamoga9-Dec-09 8:28
Tagamoga9-Dec-09 8:28 
GeneralRe: Update own written TabPage Pin
The Man from U.N.C.L.E.9-Dec-09 10:18
The Man from U.N.C.L.E.9-Dec-09 10:18 
hmm...

First a couple of observations that won't directly effect the update.
You should have the dlg.Dispose() outside the if statement or it won't be disposed if you cancel.
You shouldn't ever have to call Update or Refresh. Setting the Text property causes the control to repaint anyway.

As to the Label failing to update. Nothing jumps out at me as obviously wrong. However you have subclassed the TabPage itself, and tabpages are often a pain.

Would I be correct in assuming that your Label is in the TabPage? Or is it in a Panel on the Tabpage?

One possible issue is that if the Label BackColor is set to Transparent it may cause painting issues when used on a TabPage.

Try using a standard System.Windows.Forms.TabPage and updating the label text from the monatsUebersichtNeueAuswertung_Click method.

Finally, good post. To many posts here have not syntax colouring, no use of code tags, and often no code either. Thanks.

If you have knowledge, let others light their candles at it.
Margaret Fuller (1810 - 1850)
[My Articles]  [My Website]

GeneralRe: Update own written TabPage Pin
Tagamoga9-Dec-09 12:24
Tagamoga9-Dec-09 12:24 
GeneralRe: Update own written TabPage Pin
The Man from U.N.C.L.E.10-Dec-09 1:27
The Man from U.N.C.L.E.10-Dec-09 1:27 
QuestionPreventing InvalidDeploymentException exceptions Pin
Jim Crafton9-Dec-09 4:16
Jim Crafton9-Dec-09 4:16 
AnswerRe: Preventing InvalidDeploymentException exceptions Pin
Paulo Zemek9-Dec-09 5:24
Paulo Zemek9-Dec-09 5:24 
GeneralRe: Preventing InvalidDeploymentException exceptions Pin
Jim Crafton9-Dec-09 5:30
Jim Crafton9-Dec-09 5:30 
AnswerRe: Preventing InvalidDeploymentException exceptions Pin
N a v a n e e t h9-Dec-09 14:58
N a v a n e e t h9-Dec-09 14:58 
QuestionHow to get first and last date given a year and a weeknr Pin
livez9-Dec-09 3:30
livez9-Dec-09 3:30 
AnswerRe: How to get first and last date given a year and a weeknr Pin
Richard MacCutchan9-Dec-09 3:42
mveRichard MacCutchan9-Dec-09 3:42 
GeneralRe: How to get first and last date given a year and a weeknr Pin
livez9-Dec-09 3:49
livez9-Dec-09 3:49 
GeneralRe: How to get first and last date given a year and a weeknr Pin
Richard MacCutchan9-Dec-09 4:06
mveRichard MacCutchan9-Dec-09 4:06 
GeneralRe: How to get first and last date given a year and a weeknr Pin
livez9-Dec-09 4:43
livez9-Dec-09 4:43 
GeneralRe: How to get first and last date given a year and a weeknr Pin
Richard MacCutchan9-Dec-09 5:03
mveRichard MacCutchan9-Dec-09 5:03 
GeneralRe: How to get first and last date given a year and a weeknr Pin
livez9-Dec-09 20:06
livez9-Dec-09 20:06 
GeneralRe: How to get first and last date given a year and a weeknr Pin
livez9-Dec-09 23:00
livez9-Dec-09 23:00 
AnswerRe: How to get first and last date given a year and a weeknr Pin
Abhinav S9-Dec-09 4:03
Abhinav S9-Dec-09 4:03 
AnswerRe: How to get first and last date given a year and a weeknr Pin
OriginalGriff9-Dec-09 4:04
mveOriginalGriff9-Dec-09 4:04 
AnswerRe: How to get first and last date given a year and a weeknr Pin
David Skelly9-Dec-09 4:14
David Skelly9-Dec-09 4:14 

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.