1 Replies - 268 Views - Last Post: 24 April 2014 - 07:01 AM Rate Topic: -----

#1 Pikey85  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 12
  • Joined: 15-November 13

hscroll bar arrows not working

Posted 24 April 2014 - 06:58 AM

Hey I have got the scroll bar working if i click and drag the block but if I press the arrows nothing happens. Can anyone help with what I'm missing?

private void hScrollBar_Genre_ValueChanged(object sender, EventArgs e)
        {

            if (hScrollBar_Genre.Value == 0)
            {
                textBox_GenreTitle.Text = MyArrayGenre[0, 0];
                listBox_GenreList.Items.Clear();
                listBox_GenreList.Items.Add(MyArrayGenre[0, 1]);
            }

            if (hScrollBar_Genre.Value == 1)
            {
                textBox_GenreTitle.Text = MyArrayGenre[1, 0];
                listBox_GenreList.Items.Clear();
                listBox_GenreList.Items.Add(MyArrayGenre[1, 1]);
            }
            
            if (hScrollBar_Genre.Value == 2)
            {
                textBox_GenreTitle.Text = MyArrayGenre[2, 0];
                listBox_GenreList.Items.Clear();
                listBox_GenreList.Items.Add(MyArrayGenre[2, 1]);
                listBox_GenreList.Items.Add(MyArrayGenre[2, 2]);
                listBox_GenreList.Items.Add(MyArrayGenre[2, 3]);
                listBox_GenreList.Items.Add(MyArrayGenre[2, 4]);
            }


Is This A Good Question/Topic? 0
  • +

Replies To: hscroll bar arrows not working

#2 Skydiver  Icon User is offline

  • Code herder
  • member icon

Reputation: 3578
  • View blog
  • Posts: 11,130
  • Joined: 05-May 12

Re: hscroll bar arrows not working

Posted 24 April 2014 - 07:01 AM

If you set a breakpoint on your code, does your code even get called when you use the arrows?
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1