Jump to content

Help needed: Using Visual Studio instead of CodeLab for developing


qwertyuu

Recommended Posts

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.

The Paint.NET Blog: https://blog.getpaint.net/

Donations are always appreciated! https://www.getpaint.net/donate.html

forumSig_bmwE60.jpg

Link to comment
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.

Link to comment
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

The Paint.NET Blog: https://blog.getpaint.net/

Donations are always appreciated! https://www.getpaint.net/donate.html

forumSig_bmwE60.jpg

Link to comment
Share on other sites

  • 1 month later...
  • 2 weeks later...

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

Link to comment
Share on other sites

  • 3 years later...

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

  • 2 months later...
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

(September 25th, 2023)  Sorry about any broken images in my posts. I am aware of the issue.

bp-sig.png
My Gallery  |  My Plugin Pack

Layman's Guide to CodeLab

Link to comment
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

(September 25th, 2023)  Sorry about any broken images in my posts. I am aware of the issue.

bp-sig.png
My Gallery  |  My Plugin Pack

Layman's Guide to CodeLab

Link to comment
Share on other sites

  • 1 month later...
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

(September 25th, 2023)  Sorry about any broken images in my posts. I am aware of the issue.

bp-sig.png
My Gallery  |  My Plugin Pack

Layman's Guide to CodeLab

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...