The first thing to do is start by converting the number in the textbox into a numeric format that you can work with. For that, use TryParse:
double val;
if (!double.TryParse(myTextBox.Text, out val))
{
...
return;
}
Now you can use the value in
val
to add up your total.
You "sync" it with the progress bar by setting the bars Value property - by setting the Maximum and Minimum properties to cover the whole range, so your values fit between those.
Saving to a DB is more complex - if you can't cope with a ProgressBar yet, then I'd leave that for a while and consider using something simpler, like a settings file:
Using Settings in C#[
^]