I want to show a progress bar of week and month that how many hours has been passed till now

This Image form Example & Code Example Today Time
lbltoday.Text = (decimal.Parse(DateTime.Now.ToString("HH")) -1 / 24 * 100).ToString();
private void lbltoday_TextChanged(object sender, EventArgs e)
}
proToday.Value = (int)decimal.Parse(lbltoday.Text);
}
Guest UserPosted Jan 2, 2023, 4:24 PM
i will send my first code working for me
Pasang TamangPosted Jan 2, 2023, 11:31 AM
For windows form application, I think you should make the UI with multiple controls. Panel, progressbar, label might be the controls you needed. You can first try with Progress Bar control to see if that fits for your requirement or not. You place a progress bar control and just above the progressbar control, you place a label.
Regards,
Pasang
Guest UserPosted Jan 2, 2023, 4:10 AM
This is Windows Form application
with datetime
Pasang TamangPosted Jan 2, 2023, 3:39 AM
Hi,
I hav attached some code below.
I hope these will be helpful to you.
Regards,
Pasang