I am working on a small application that I can do either in WinForms or in WPF. I would like to play the a la Chrome tab control. However, I'm not sure how to get tabs on the window border, as Chrome does.
Any ideas? Thank.
Set FormBorderStyle(WinForms) or WindowStyle(WPF) to None, then draw your own tabbed title bar on it.
FormBorderStyle
WindowStyle
None
To get glass, you need to use the DWM API .
Alternatively, you can process the message WM_NCPAINT.
WM_NCPAINT
.
There is no window style in Chrome, the buttons are not standard either, so it looks like a tab in the window border.
System.Windows.Forms.Form form = ... form.FormBorderStyle = FormBorderStyle.None
Source: https://habr.com/ru/post/1788562/More articles:[[: Command not found - bashChange the selected tab UITabBar - iphoneText format on the Android market - androidHow to switch from php MySQL sql injection of vulnerable queries to MySQLi non-vulnerable queries - phphttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1788561/sharepoint-timer-job-and-access-to-the-httpruntime-cache-object&usg=ALkJrhh4Ui8pULEh7v6crmKVPIu1xE5ZXwUnknown field in MPI_status - mpiклиент silverlight не понимает ошибку - silverlightCreating Tabs in the Windows Header Area in C # - c #Using parameters in a SQL query with a subquery - sqlSleep mode: multiple result sets - javaAll Articles