Sign in to follow this  
qwertyuu

Help needed: Using Visual Studio instead of CodeLab for developing

Recommended Posts

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.

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

This template use Windows Forms to build plugin interface.  Possible to use WPF?

 

Where can I read the documentation of Paint.Net plugin API?

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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.

  • Upvote 1

Share this post


Link to post
Share on other sites

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?

Share this post


Link to post
Share on other sites
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 by toe_head2001

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

That error is irrelevant to the button text.

 

Is ControlText shown in bold in the property window?

ControlText.png

 

It needs to show in Bold; otherwise it's not really set, and will just inherit from the Form.

  • Upvote 1

Share this post


Link to post
Share on other sites

Very strange. Now it is working. And I've tried that many times.
Thanks.

Share this post


Link to post
Share on other sites

How to set the ForeColor of a label (without control) to match the selected app theme?

Share this post


Link to post
Share on other sites
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

 

  • Upvote 1

Share this post


Link to post
Share on other sites

Yes, thanks now works very well.

if (!checkBox1.Checked) 
  {
  label8.ForeColor = Color.Gray;//disabled
  ...
  }
else
  {
  label8.ForeColor = this.ForeColor;//enabled
  ...
  }

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this