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

C#

 
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 
I have no idea what you would want to see. Other than than the fact that I am using a regular System.Windows.Forms form, I have no idea what else matters. All that I should need to do is write an overridden onpaint method... doing this has worked in other applications. that is the only thing that I know is relevant. I have simply written a method override. Here is the content but its all commented out because except for the call to the base method because it wasn't working. Putting a break point in here indicates that the method isn't being executed at all. It is working fine in other applications where I have overwritten the OnPaint method.

C#
protected override void OnPaint(PaintEventArgs e)
		{
			base.OnPaint(e);
			/*if (designMode)
				base.OnPaint(e);
			else
			{
				switch (DisplayMode)
				{
					case DisplayMode.DesktopWidget:
						if (UseWorkerAPI)
						{
							IntPtr dc = GetDCEx(hWorkerAPI, IntPtr.Zero, (DeviceContextValues)0x403);
							base.OnPaint(new PaintEventArgs(Graphics.FromHdc(dc), e.ClipRectangle));
						}
						break;
					case DisplayMode.WindowWidget:
						base.OnPaint(e);
						break;
					default:
						break;
				}
			}*/
		}

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 
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 

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.