Page 2 of 2

Re: WebBrowser [TabPaged] with FavIcon in the [TabPage]?

Posted: Tue Feb 21, 2012 6:47 am
by CodenStuff
Oh I think I know what it may be. If youve added an imagelist to your project select the tabcontrol and in the properties window change the ImageList property to ImageList1

Or just put this in the form_load event:
Code: Select all
TabControl1.ImageList = ImageList1

Re: WebBrowser [TabPaged] with FavIcon in the [TabPage]?

Posted: Tue Feb 21, 2012 8:57 pm
by GaiaonlineHD
CodenStuff wrote:
Do you get any type of error?
no just didnt load or set the Icon to the TabPage

Re: WebBrowser [TabPaged] with FavIcon in the [TabPage]?

Posted: Tue Feb 21, 2012 9:25 pm
by GaiaonlineHD
Im making a V.O.S and i wanted to know if theres a way to make all the desktop items be shown on the Prgram not only the Files not the Programs is there a way to make it show all here is the code i have
Code: Select all
#Region "desktop items"
    Dim fileName As String = ""
    Dim folderLocation As String = My.Computer.FileSystem.SpecialDirectories.Desktop
    Private Sub Desktop_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        For Each I In My.Computer.FileSystem.GetFiles(My.Computer.FileSystem.SpecialDirectories.Desktop)
            Dim Desktop_Icon_add As System.Drawing.Icon = Icon.ExtractAssociatedIcon(I)
            DesktopImages.Images.Add(Desktop_Icon_add.ToBitmap)
            I = I.Replace(My.Computer.FileSystem.SpecialDirectories.Desktop & "\", "")
            Desktop.Items.Add(I, DesktopImages.Images.Count - 1)
        Next
    End Sub
    Private Sub Desktop_ItemSelectionChanged(ByVal sender As Object, ByVal e As System.Windows.Forms.ListViewItemSelectionChangedEventArgs) Handles Desktop.ItemSelectionChanged
        fileName = My.Computer.FileSystem.SpecialDirectories.Desktop + "\" + e.Item.Text
    End Sub
    Private Sub Desktop_DoubleClick(ByVal sender As Object, ByVal e As System.EventArgs) Handles Desktop.DoubleClick
        Process.Start(fileName)
    End Sub
#End Region
Not my code i think i downloaded it from here tho :/