© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•5mo ago•
200 replies
0ri3lla-

help w homework (usercontrol)

this is the task i got:
"Program starts with 2 forms: Dog and Cat (pink).
Each form has:

-arrUC: 2 yellow UserControl1s (each holds Labels).
-Labels: Min_Max_label (“Min/Max”), Image_Text_label (“Image/Text”), bySize_byBrightness_label (“bySize/byBrightness”).
-Rule: “Text” → “bySize”, “Image” → “byBrightness”.
-RadioButtons: Red / Green.
-MinMax_Result_label: small white label for results.

Each UserControl holds an array of Labels with random size, Name (Dog/Cat), and one of 8 defined styles (Dog/Cat, Red/Green, text or image).

Section A (Clicks 1 & 2):
On click → collect Labels into CatList / DogList.
Filter by chosen RadioButton color (background for text, image color for image).
Find Min/Max Label by Min_Max_label + criteria (bySize = area / byBrightness).
Show result in MinMax_Result_label on both forms.

Section B (Clicks 3 & 4):
As a continuation of Section A, all controls from two filtered UserControls
• Should be sorted according to the “by Size” or “by Brightness” text of bySize_byBrightness_label
• Should be displayed in the two UserControls selected by the mouse clicks.

Note: Sections can be combined so that after clicks, both the Min/Max and the sorted order are shown."

Im in section B and I got stuck at a part in my code because whenver i press on my usercontrol i need it to kind of align in one after the other whetere its byasize or bybrightness, but when i click on it just kind of gets arranged one on top of the other... can someone help (i attached a vid of what hppend)?

code : https://paste.mod.gg/zmpfmzbnlucm/0
image.png
image.png
BlazeBin - zmpfmzbnlucm
A tool for sharing your source code with the world!
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources
Was this page helpful?

Similar Threads

Recent Announcements
Next page

Similar Threads

✅ help w homework (usercontrol)
C#CC# / help
5mo ago
✅ help w homework
C#CC# / help
7mo ago
✅ Homework Help
C#CC# / help
4y ago
✅ Help with Homework
C#CC# / help
3y ago