Click here to Skip to main content
15,887,746 members
Home / Discussions / C#
   

C#

 
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 
AnswerRe: Overridden OnPaint method not called on form Pin
Luc Pattyn18-Feb-19 8:21
sitebuilderLuc Pattyn18-Feb-19 8:21 
GeneralRe: Overridden OnPaint method not called on form Pin
pr1mem0ver18-Feb-19 10:28
pr1mem0ver18-Feb-19 10:28 
QuestionNet Core qustion Pin
pkfox13-Feb-19 23:39
professionalpkfox13-Feb-19 23:39 
AnswerRe: Net Core qustion Pin
Richard Deeming14-Feb-19 2:00
mveRichard Deeming14-Feb-19 2:00 
GeneralRe: Net Core qustion Pin
pkfox14-Feb-19 3:25
professionalpkfox14-Feb-19 3:25 
AnswerRe: Net Core qustion Pin
Wastedtalent14-Feb-19 3:14
professionalWastedtalent14-Feb-19 3:14 
AnswerRe: Net Core qustion Pin
jschell17-Feb-19 6:15
jschell17-Feb-19 6:15 
QuestionHow to count files and change directory using FTP/C# Pin
mlong3012-Feb-19 14:38
mlong3012-Feb-19 14:38 
AnswerRe: How to count files and change directory using FTP/C# Pin
OriginalGriff12-Feb-19 20:02
mveOriginalGriff12-Feb-19 20:02 
AnswerRe: How to count files and change directory using FTP/C# Pin
Richard Deeming13-Feb-19 10:46
mveRichard Deeming13-Feb-19 10:46 

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.