pcd Posted July 8, 2014 Share Posted July 8, 2014 Well the best solution that I can find for now is find the DLLs and App Extention files of the previous version of Paint.Net (3.5.11), and find out if that works or not. Quote Link to comment Share on other sites More sharing options...
Rick Brewster Posted July 8, 2014 Share Posted July 8, 2014 pcd, If you give me a ZIP file with your solution/project files, I can take a look at it and see if there are any changes in Paint.NET that might be causing this. I never use the designer myself anymore, there were just too many things it got in the way of over the years, but that's just me. Quote The Paint.NET Blog: https://blog.getpaint.net/ Donations are always appreciated! https://www.getpaint.net/donate.html Link to comment Share on other sites More sharing options...
pcd Posted July 8, 2014 Share Posted July 8, 2014 Try this one: http://expirebox.com/download/5ea061ced486fa47660b3e47c970294a.html (only available for two days) This is basically a blank template for VS 2013 Express that was fixed so it can be compiled out of the box. I already solved this problem temporary by going back to the previous version of Paint.Net (3.5.11). But it could also be tried if 4.0 is installed just to see if anyone runs into any problems with this. Quote Link to comment Share on other sites More sharing options...
Rick Brewster Posted July 9, 2014 Share Posted July 9, 2014 It works fine if I reset its references to my installed Paint.NET 4.0's DLLs (in c:\program files\paint.net), and set the project to target .NET 4.5 (the zip you gave me was targetting 3.5 for some reason?). Wait, nevermind, I see what you mean ... the moment I tried resizing the dialog in the designer, it flew off into outer space Quote The Paint.NET Blog: https://blog.getpaint.net/ Donations are always appreciated! https://www.getpaint.net/donate.html Link to comment Share on other sites More sharing options...
MOP3E Posted August 11, 2014 Share Posted August 11, 2014 This template use Windows Forms to build plugin interface. Possible to use WPF? Where can I read the documentation of Paint.Net plugin API? Quote Link to comment Share on other sites More sharing options...
Bruce Kinchin Posted August 24, 2014 Share Posted August 24, 2014 Can I ask that this topic get pinned. Many thanks to Ego ... got me up to speed very fast. An update for VS2013 / PDN4 would be nice, would be happy to help if you want. Thanks again Ego. Quote Link to comment Share on other sites More sharing options...
Ego Eram Reputo Posted August 24, 2014 Share Posted August 24, 2014 You're welcome Bruce. This thread is a bit all-over-the-place so I won't pin it. I did start rewriting the tutorial and template - but PDN4 got in the way. Now it's buried under other (more important) projects. Don't worry - it will resurface in one form or another soon(ish). Quote ebook: Mastering Paint.NET | resources: Plugin Index | Stereogram Tut | proud supporter of Codelab plugins: EER's Plugin Pack | Planetoid | StickMan | WhichSymbol+ | Dr Scott's Markup Renderer | CSV Filetype | dwarf horde plugins: Plugin Browser | ShapeMaker Link to comment Share on other sites More sharing options...
xod Posted November 18, 2017 Share Posted November 18, 2017 (edited) I know it's a very old thread, but has anyone found the solution to this problem? I have the same problem as user @pcd. I tried resizing the dialog in the designer but it flew off into outer space. Edited November 18, 2017 by xod Quote Link to comment Share on other sites More sharing options...
Ego Eram Reputo Posted November 18, 2017 Share Posted November 18, 2017 Mine does that too. It won't anchor top left in the designer either. Restarting VS sometimes helps, as does deleting the contents of the /obj folder (forces VS to rebuild everything - or something). To resize or relocate something, I often type the new dimensions/location into the Properties fields. 1 Quote ebook: Mastering Paint.NET | resources: Plugin Index | Stereogram Tut | proud supporter of Codelab plugins: EER's Plugin Pack | Planetoid | StickMan | WhichSymbol+ | Dr Scott's Markup Renderer | CSV Filetype | dwarf horde plugins: Plugin Browser | ShapeMaker Link to comment Share on other sites More sharing options...
xod Posted November 18, 2017 Share Posted November 18, 2017 Ok, thank you for your suggestions. Quote Link to comment Share on other sites More sharing options...
xod Posted January 26, 2018 Share Posted January 26, 2018 In my project made with Visual Studio Template I set UseAppThemeColor = True for my form. But the buttons have white text in Dark Theme (invisible) and black text in Default Theme (OK). What should I do? Quote Link to comment Share on other sites More sharing options...
toe_head2001 Posted January 26, 2018 Share Posted January 26, 2018 (edited) On 1/26/2018 at 6:43 PM, xod said: In my project made with Visual Studio Template I set UseAppThemeColor = True for my form. But the buttons have white text in Dark Theme (invisible) and black text in Default Theme (OK). What should I do? Set the ForeColor of the Buttons to SystemColors.ControlText EDIT: Set the FlatStyle property to System. https://forums.getpaint.net/topic/112962-guide-dark-theme-support-for-custom-configdialog/ Edited July 4, 2018 by toe_head2001 Quote My Gallery | My Plugin Pack Layman's Guide to CodeLab Link to comment Share on other sites More sharing options...
xod Posted January 26, 2018 Share Posted January 26, 2018 I did this, but there is a build error: this.UseAppThemeBackColor = true; If I transform this into a comment then I can build but the colors come back. Quote Link to comment Share on other sites More sharing options...
toe_head2001 Posted January 26, 2018 Share Posted January 26, 2018 That error is irrelevant to the button text. Is ControlText shown in bold in the property window? It needs to show in Bold; otherwise it's not really set, and will just inherit from the Form. 1 Quote My Gallery | My Plugin Pack Layman's Guide to CodeLab Link to comment Share on other sites More sharing options...
xod Posted January 26, 2018 Share Posted January 26, 2018 Very strange. Now it is working. And I've tried that many times. Thanks. Quote Link to comment Share on other sites More sharing options...
xod Posted March 6, 2018 Share Posted March 6, 2018 How to set the ForeColor of a label (without control) to match the selected app theme? Quote Link to comment Share on other sites More sharing options...
toe_head2001 Posted March 6, 2018 Share Posted March 6, 2018 6 minutes ago, xod said: How to set the ForeColor of a label (without control) to match the selected app theme? If the label's ForeColor hasn't been explicitly set, it should just inherit the color from the Form. Try resetting the ForeColor value, so it's not explicitly set. Otherwise, it can be manually set like this: label.ForeColor = this.ForeColor 1 Quote My Gallery | My Plugin Pack Layman's Guide to CodeLab Link to comment Share on other sites More sharing options...
xod Posted March 7, 2018 Share Posted March 7, 2018 Yes, thanks now works very well. if (!checkBox1.Checked) { label8.ForeColor = Color.Gray;//disabled ... } else { label8.ForeColor = this.ForeColor;//enabled ... } Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.