Selected listbox item?
Do you need something made? then ask in here.
Forum rules
Please LOCK your topics once you have found the solution to your question so we know you no longer require help with your query.
Please LOCK your topics once you have found the solution to your question so we know you no longer require help with your query.
4 posts
Page 1 of 1
im making a office theme changer for my program but im making it simpler but how do i make it so when a certain item is selected and you hit the button then it shows a current theme ?
Nailing my feet to the floor is easier than using my own muscles to balance, but you don't see me doing that 

Hello Zach, to use the selected item in the listbox you can do something like this :
you could change "MsgBox(ListBox1.SelectedItem.ToString)" so it would change your theme.
Code: Select all
what that will do is it will give you a MsgBox saying the selected item.Try
MsgBox(ListBox1.SelectedItem.ToString)
Catch ex As Exception
MsgBox(ex.Message)
End Try
you could change "MsgBox(ListBox1.SelectedItem.ToString)" so it would change your theme.
Code: Select all
If ListBox1.Text = "Office Theme" Then
'office theme is used
End If
thanks both of them worked 

Nailing my feet to the floor is easier than using my own muscles to balance, but you don't see me doing that 

4 posts
Page 1 of 1
Copyright Information
Copyright © Codenstuff.com 2020 - 2023