-
EnvironmentEdition - Windows 11 Enterprise .NET version.Netcore 6,7,8 Did this work in a previous version of Visual Studio and/or previous .NET release?No, it doesn't work on previous NetCore versions. Issue descriptionI'm trying to switch the tabs by using the mouse click at DesignTime but can't be able to switch. But can be able to be switching by using the TabKey. Steps to reproduce1.Switch the tabs by using the TabKey. Expected Behavior: While switch using the mouse, the selected tab needs to be switched. DiagnosticsNo response |
Beta Was this translation helpful? Give feedback.
Replies: 12 comments 2 replies
-
@Olina-Zhang can your team please confirm? |
Beta Was this translation helpful? Give feedback.
-
@elachlan there have a known issue in the designer repo to track https://github.com/microsoft/winforms-designer/issues/3201. |
Beta Was this translation helpful? Give feedback.
-
Hi @elachlan , |
Beta Was this translation helpful? Give feedback.
-
Hi @Sekar47, the link provided is for the designer repo and it's currently private. |
Beta Was this translation helpful? Give feedback.
-
@Sekar47 we're investigating in our internal designer repo. We'll update this when we have an investigation. |
Beta Was this translation helpful? Give feedback.
-
Hi @merriemcgaw , Is there any update for this issue? |
Beta Was this translation helpful? Give feedback.
-
@Sekar47 not yet, I'm sorry. |
Beta Was this translation helpful? Give feedback.
-
Hi @merriemcgaw , Is there any update for this issue? |
Beta Was this translation helpful? Give feedback.
-
@Sekar47 this is on our backlog, but I don't have an estimate for when we'll have a fix. That said, we have confirmed that you can access the desired tab directly if you select it via the PropertyBrowser or DocumentOutline windows in Visual Studio. Given that there are multiple ways to get to any TabPage that you need, it may take us just a little longer to address this specific issue. |
Beta Was this translation helpful? Give feedback.
-
@Sekar47 - mouse click is processed by the VisualStudio process and is forwarded to the DesignTOolsProcess as an input message to be processed by the corresponding ControlBodyGlyphs. |
Beta Was this translation helpful? Give feedback.
-
@Sekar47 I can't open the Form designer of your provided project, but in .net8.0/.net9.0 projects, the tabs can be switched by using mouse But this issue https://github.com/microsoft/winforms-designer/issues/3201 does exist. When the mouse is constantly clicked on the spinner, the tab cannot be switched continuously. |
Beta Was this translation helpful? Give feedback.
-
Try the following change CustomTabControlDesigner.cs
protected override bool GetHitTest(Point point)
{
if (tabControl != null)
{
for (int i = 0; i < tabControl.TabPages.Count; i++)
{
Point clientPoint = tabControl.PointToClient(point);
if (tabControl.GetTabRect(i).Contains(clientPoint))
{
return true;
}
}
}
return base.GetHitTest(point);
} |
Beta Was this translation helpful? Give feedback.
Try the following change