The Syncfusion native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
Hi.
I was wondering what the best way would be to determine which grid (or any control type) on a windows form had the focus just prior to the user pressing a toolbar button.
I''m trying to put a generic "Query Data" button on a toolbar, which will refresh the data of any data-bound control that has focus when the button was pressed.
Thanks for your help.
Ross.
Perhaps Form.ActiveControl is what you''re looking for?
>Hi.
>
>I was wondering what the best way would be to determine which grid (or any control type) on a windows form had the focus just prior to the user pressing a toolbar button.
>
>I''m trying to put a generic "Query Data" button on a toolbar, which will refresh the data of any data-bound control that has focus when the button was pressed.
>
>Thanks for your help.
>
>Ross.
RPRoss PrestmoJuly 29, 2005 02:43 PM UTC
Thanks. Yeah that will do it.
I thought that the toolbar button would get returned as the ActiveControl as soon as I pressed it, like a normal button control does.
Lots to learn ... :)