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

C#

 
AnswerRe: WHENTO Expect C# 8 to be released with Visual Studio and Default Interface Mathods (aka Multiple Inheritance). Pin
Dave Kreskowiak21-Feb-19 5:03
mveDave Kreskowiak21-Feb-19 5:03 
AnswerRe: WHENTO Expect C# 8 to be released with Visual Studio and Default Interface Mathods (aka Multiple Inheritance). Pin
OriginalGriff21-Feb-19 5:14
mveOriginalGriff21-Feb-19 5:14 
QuestionEnabling Control from Method Pin
ormonds20-Feb-19 12:22
ormonds20-Feb-19 12:22 
AnswerRe: Enabling Control from Method Pin
Dave Kreskowiak20-Feb-19 14:04
mveDave Kreskowiak20-Feb-19 14:04 
AnswerRe: Enabling Control from Method Pin
OriginalGriff20-Feb-19 20:18
mveOriginalGriff20-Feb-19 20:18 
PraiseRe: Enabling Control from Method Pin
ormonds20-Feb-19 21:14
ormonds20-Feb-19 21:14 
GeneralRe: Enabling Control from Method Pin
OriginalGriff20-Feb-19 21:27
mveOriginalGriff20-Feb-19 21:27 
GeneralRe: Enabling Control from Method Pin
Richard MacCutchan21-Feb-19 1:05
mveRichard MacCutchan21-Feb-19 1:05 
QuestionRetrieve all comments in a worksheet using OpenXML Pin
Gli Invicibili18-Feb-19 18:29
Gli Invicibili18-Feb-19 18:29 
AnswerRe: Retrieve all comments in a worksheet using OpenXML Pin
Richard MacCutchan18-Feb-19 21:32
mveRichard MacCutchan18-Feb-19 21:32 
Question(Kinda SOLVED) Active Directory update (do I really need "Run As Administrator"?!) Pin
Super Lloyd18-Feb-19 13:11
Super Lloyd18-Feb-19 13:11 
QuestionOverridden OnPaint method not called on form Pin
pr1mem0ver17-Feb-19 22:37
pr1mem0ver17-Feb-19 22:37 
AnswerRe: Overridden OnPaint method not called on form Pin
OriginalGriff17-Feb-19 23:02
mveOriginalGriff17-Feb-19 23:02 
GeneralRe: Overridden OnPaint method not called on form Pin
pr1mem0ver17-Feb-19 23:47
pr1mem0ver17-Feb-19 23:47 
GeneralRe: Overridden OnPaint method not called on form Pin
OriginalGriff18-Feb-19 0:04
mveOriginalGriff18-Feb-19 0:04 
SuggestionRe: Overridden OnPaint method not called on form Pin
Ralf Meier18-Feb-19 0:08
mveRalf Meier18-Feb-19 0:08 
QuestionRe: Overridden OnPaint method not called on form Pin
Richard MacCutchan18-Feb-19 0:45
mveRichard MacCutchan18-Feb-19 0:45 
GeneralRe: Overridden OnPaint method not called on form Pin
pr1mem0ver18-Feb-19 3:11
pr1mem0ver18-Feb-19 3:11 
Hello all who have made comments. I am replying to my own comment so that I can address all of your comments in one reply.

All of you except for OriginalGriff are asking questions that I have already implied or explicitly written answers too:

Perhaps some of you don't speak English so I will clarify. This statement implies that the code I provided above is in a class derived from System.Windows.Forms:
"Other than than the fact that I am using a regular System.Windows.Forms form"

As for why I commented code out, I answered that question with the statement:
"Here is the content but its all commented out because except for the call to the base method because it wasn't working."

If you don't understand any of the above statements, then ask about that. Otherwise please don't ask questions that I have already answered. It wastes everyone's time. For my part, I probably could have written that second statement better as:
"Here is the content but it's all commented out because, except for the call to the base method, because it wasn't working."


OriginalGriff:
1. Yes
2. Yes
3. No. I did not want the form drawn normally under certain conditions.

EVERYONE:
I wrote a test program to both figure this issue out and move forward with my purpose since that test program is working correctly. I have learned that overriding OnPaint will not accomplish what I am currently trying to do (which is to make the application into a desktop widget when the user decides... that means drawing it as part of the desktop). However, I would still like to troubleshoot this in case I need to override OnPaint for another reason... chances are good I may need to since this is a very customized form.
GeneralRe: Overridden OnPaint method not called on form Pin
Richard MacCutchan18-Feb-19 3:51
mveRichard MacCutchan18-Feb-19 3:51 
GeneralRe: Overridden OnPaint method not called on form Pin
pr1mem0ver18-Feb-19 10:31
pr1mem0ver18-Feb-19 10:31 
GeneralRe: Overridden OnPaint method not called on form Pin
Richard MacCutchan18-Feb-19 10:33
mveRichard MacCutchan18-Feb-19 10:33 
GeneralRe: Overridden OnPaint method not called on form Pin
Luc Pattyn18-Feb-19 12:13
sitebuilderLuc Pattyn18-Feb-19 12:13 
GeneralRe: Overridden OnPaint method not called on form Pin
Richard MacCutchan18-Feb-19 21:21
mveRichard MacCutchan18-Feb-19 21:21 
GeneralRe: Overridden OnPaint method not called on form Pin
pr1mem0ver27-Feb-19 6:29
pr1mem0ver27-Feb-19 6:29 
GeneralRe: Overridden OnPaint method not called on form Pin
Richard MacCutchan27-Feb-19 6:49
mveRichard MacCutchan27-Feb-19 6:49 

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.