But Why..... Any one know

If you need help with a project or need to know how to do something specific in VB.NET then please ask your questions 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.
3 posts Page 1 of 1
Contributors
User avatar
muttley1968
Hardcore Programmer
Hardcore Programmer
Posts: 622
Joined: Thu Jun 17, 2010 11:54 pm

But Why..... Any one know
muttley1968
Hi Added this code to my project a while ago and it works fine but for some reason it has stoped working and it is for one of the most important parts of the project anyone know why its not working I don't get any errors just does not add the controls
Code: Select all
        Dim btnTop As Integer = 0
        For i As Integer = 0 To Faves.Items.Count - 1
            Dim favebtn As ToolStripButton
            favebtn.Text = Faves.Items(i).ToString()
            favebtn.ForeColor = Color.White
            ToolStrip1.Items.Add(favebtn)
            AddHandler favebtn.Click, AddressOf btnclicked
            int = int + 1
            btnTop += 30
        Next
is suppose to add all the itms of a listbox to a toolstrip menu it works one by one adding them with the button but :P not all the items please someone help me :P
Filip
Coding Guru
Coding Guru
Posts: 833
Joined: Wed Jan 05, 2011 3:59 pm

Re: But Why..... Any one know
Filip
Hi try to do
Code: Select all
Dim favebutton As New ToolStripButton
CodenStuff wrote:
Nope, it's just your sick and dirty mind. You sick twisted warped little pervo :D
User avatar
muttley1968
Hardcore Programmer
Hardcore Programmer
Posts: 622
Joined: Thu Jun 17, 2010 11:54 pm

Re: But Why..... Any one know
muttley1968
#visioncrO Thanks soo mutch haha I did not think of that retard moment for me there :p
3 posts Page 1 of 1
Return to “Coding Help & Support”