Skip to content

Conversation

ricardobossan
Copy link
Member

@ricardobossan ricardobossan commented Mar 3, 2025

Fixes #12987

Root Cause

  • Added strings to DropDownItems instead of adding controls.

Proposed changes

  • Add proper working ToolStripMenuItem controls to DropDownItems.

Customer Impact

  • Interaction with DemoConsole fixed DropDownItems will be possible.

Regression?

  • No

Risk

  • Minimal

Screenshots

Before

before

After

after

Test methodology

  • Manual

Test environment(s)

  • 10.0.100-preview.3.25125.5
Microsoft Reviewers: Open in CodeFlow

Fixes dotnet#12987

- Added strings to `DropDownItems` instead of adding controls.

- Add proper working `ToolStripMenuItem` controls to `DropDownItems`.

- Interaction with `DemoConsole` fixed `DropDownItems` will be possible.

- No

- Minimal

- Manual

- 10.0.100-preview.3.25125.5
@ricardobossan ricardobossan added the waiting-review This item is waiting on review by one or more members of team label Mar 3, 2025
@ricardobossan ricardobossan self-assigned this Mar 3, 2025
@ricardobossan ricardobossan requested a review from a team as a code owner March 3, 2025 21:18
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR Overview

This PR fixes bug #12987 by replacing the addition of plain string items in DropDownItems with properly instantiated ToolStripMenuItem controls to enhance menu interaction in the DemoConsole.

  • Replace string entries with ToolStripMenuItem objects
  • Update the text for dropdown items to correct previous typos

Reviewed Changes

File Description
src/System.Windows.Forms/tests/IntegrationTests/DesignSurface/DemoConsole/MainForm.cs Updated to add proper ToolStripMenuItem controls to DropDownItems

Copilot reviewed 1 out of 1 changed files in this pull request and generated no comments.

@Tanya-Solyanik Tanya-Solyanik removed the waiting-review This item is waiting on review by one or more members of team label Mar 3, 2025
Copy link

codecov bot commented Mar 3, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 76.13835%. Comparing base (4bcc8a9) to head (e1533aa).
Report is 7 commits behind head on main.

Additional details and impacted files
@@                 Coverage Diff                  @@
##                main      #13065          +/-   ##
====================================================
- Coverage   96.95044%   76.13835%   -20.81209%     
====================================================
  Files           1225        3275        +2050     
  Lines         357134      643803      +286669     
  Branches        5537       47445       +41908     
====================================================
+ Hits          346243      490181      +143938     
- Misses         10049      150062      +140013     
- Partials         842        3560        +2718     
Flag Coverage Δ
Debug 76.13835% <ø> (-20.81209%) ⬇️
integration 18.13346% <ø> (?)
production 50.21087% <ø> (?)
test 96.95016% <ø> (-0.00029%) ⬇️
unit 47.55694% <ø> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

@ricardobossan ricardobossan merged commit 98322e5 into dotnet:main Mar 3, 2025
8 checks passed
@dotnet-policy-service dotnet-policy-service bot added this to the 10.0 Preview3 milestone Mar 3, 2025
LeafShi1 pushed a commit to LeafShi1/winforms that referenced this pull request Mar 6, 2025
…otnet#13065)

Add proper working `ToolStripMenuItem` controls to `DropDownItems`.

Fixes dotnet#12987

- Added strings to `DropDownItems` instead of adding controls.

- Add proper working `ToolStripMenuItem` controls to `DropDownItems`.

- Interaction with `DemoConsole` fixed `DropDownItems` will be possible.

- No

- Minimal

- Manual

- 10.0.100-preview.3.25125.5

Co-authored-by: Ricardo Bossan (BEYONDSOFT CONSULTING INC) (from Dev Box) <[email protected]>
@github-actions github-actions bot locked and limited conversation to collaborators Apr 3, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Unable to select existing MenuStrip/ToolStrip items in DemoConsole application
2 participants