vb.net [not C#] - Taskbar Apps

Toby Winter 1 Reputation point
2023-12-29T10:10:41.03+00:00

I've been making my own Shell for Windows and I am trying to make the small little apps on the bottom of the taskbar, like this.

sample6

I don't know how to make it though. Any suggestions for help? I will be using a PictureBox and a TextLabel on top.

Also, here's what the shell looks like so far [both taskbars]:

sample4

--

sample5

Thanks..

.NET
.NET
Microsoft Technologies based on the .NET software framework.
4,097 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Olaf Helper 45,881 Reputation points
    2023-12-29T10:14:14.7833333+00:00

    small little apps on the bottom of the taskbar,

    You mean "pin to taskbar"?

    See Pin apps and folders to the desktop or taskbar


  2. Jiachen Li-MSFT 33,451 Reputation points Microsoft Vendor
    2024-01-02T07:12:49.54+00:00

    Hi @Toby Winter ,
    If you open other application from your application, then you can consider using Icon.ExtractAssociatedIcon(String) Method to get the icon of the application.

    Then add the icon to your custom taskbar.

            Try
                ' Start another application
                Dim newProcess As Process = Process.start(appPath)
                ' Display its icon in the taskbar upon successful launch
                If newProcess IsNot Nothing Then
                    ' Retrieve the icon of the application
                    Dim appIcon As Icon = Icon.ExtractAssociatedIcon(appPath)
    
                    ' Then add the icon to your custom taskbar
    
                End If
            Catch ex As Exception
                MessageBox.Show("Unable to start the application: " & ex.Message)
            End Try
    

    Best Regards.

    Jiachen Li


    If the answer is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.