dotnet / dotnet/winforms

ControlDesigner GetHitTest is not supported under net6.0

Open
#12,112 5 comments 0 reactions 1 assignee Claimed by @KlausLoeffelmann View on GitHub
area-VSDesigner
Dominant language
C#
Stars
4.9k
Forks
1.1k
Avg merge
20h 23m
Merged PRs (30d)
103

Description

### Environment

17.11.3

### .NET version

net6.0 - net8.0

### Did this work in a previous version of Visual Studio and/or previous .NET release?

framework **all** is normal

### Issue description

my custom controls cannot capture mouse clicks, but `System.Windows.Forms.TabControl` can

### Steps to reproduce

Here is a demo, the **framework 4.8** can capture the mouse in the designer, but I hope the designer can also capture the mouse normally under **net6.0**

[TestDesignGetHitTest.zip](https://github.com/user-attachments/files/16956778/TestDesignGetHitTest.zip)

### Diagnostics

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.