Conner
Conner
CC#
Created by Conner on 5/1/2024 in #help
Newly added resource cannot be used
In a WinForms project I am adding an image to the Resources.resx file. I am assigning this image to a picture box. It appears in the list that pops up when selecting the background image! As soon as I try to build, I get the error that Properties.Resources.ImageName does not exist. Checking the resx its still there.
13 replies
CC#
Created by Conner on 12/7/2023 in #help
.csproj cannot be found in newly created solution
No description
117 replies
CC#
Created by Conner on 9/5/2023 in #help
❔ Cannot deserialize System.Drawing.Color from JSON
106 replies
CC#
Created by Conner on 7/13/2023 in #help
❔ I have trouble understanding AutoSize
Winforms There is an AutoSize property on most containers, the documentation says that it will make the container automatically fit its contents. However to me it seems that it just works arbitrarily. My layout of my control is as follows: * User Control * Docked Panel
- Text Box
- Another Docked Panel
Both the first docked panel and the User Control have AutoSize set to true but the control either doesnt resize at all or shrinks down to 1x1 pixel, which I wouldnt really consider to fit my content 🤔
4 replies
CC#
Created by Conner on 7/9/2023 in #help
❔ Control initialisation is very slow
I have a custom user control, used to display some data. Now, loading one of those user controls is not a problem, however, sometimes I have to load a list of these user controls (In the worst case up to 64!!). But even with only 3 or 4 loaded you can still see them getting generated and initialised. This on its own, while an inconvenience, wouldn't be as bad but this is in combination with a combobox (to let the user select the data to display), which can be scrolled over. And the constant loading makes the combobox buffer the scroll input and delay everything even more. I'm not sure if there is a way to make the loading faster, I can't really think of anything at least. Maybe there is a way to initialize all the user controls at once rather than one after the other?
45 replies
CC#
Created by Conner on 6/19/2023 in #help
❔ AutoSize always shrinks my control to 1 px even with content
4 replies
CC#
Created by Conner on 4/9/2023 in #help
❔ Failed to create component; Invalid URI: The hostname could not be parsed
3 replies