I have a progress bar. I have an increasing int. which i name questionindex I want the progress bar to move just as the integer increases. i.e i want the value of the progressbar to increase as the value of my incremented int increases. I wrote :
ProgressBar.value= questionindex;
questionindex is my Int An exemption was raised saying I can't convert Int to double
Then I used:
ProgressBar.value = questionindex.Tostring();
It said I can't convert string to double lacking an e. Property. Then I create a hidden textblock. I set the text property to my Int.
textBlock.Text= questionindex;
Then equated this to progress bar
ProgressBar.value= textBlock.Text
none of these bits worked.