Click here to Skip to main content
15,886,963 members
Home / Discussions / C#
   

C#

 
GeneralRe: C# Unable to update data table values Pin
OriginalGriff10-Apr-21 8:00
mveOriginalGriff10-Apr-21 8:00 
GeneralRe: C# Unable to update data table values Pin
Richard MacCutchan10-Apr-21 21:07
mveRichard MacCutchan10-Apr-21 21:07 
GeneralRe: C# Unable to update data table values Pin
jschell17-Apr-21 7:09
jschell17-Apr-21 7:09 
AnswerRe: C# Unable to update data table values Pin
Mou_kol10-Apr-21 3:00
Mou_kol10-Apr-21 3:00 
SuggestionRe: C# Unable to update data table values Pin
Richard Deeming11-Apr-21 21:23
mveRichard Deeming11-Apr-21 21:23 
GeneralRe: C# Unable to update data table values Pin
Mou_kol12-Apr-21 7:06
Mou_kol12-Apr-21 7:06 
QuestionHour and minute slider Pin
Valakik8-Apr-21 9:49
Valakik8-Apr-21 9:49 
AnswerRe: Hour and minute slider Pin
OriginalGriff8-Apr-21 22:20
mveOriginalGriff8-Apr-21 22:20 
Create a UserControl, and start there.
Give it a fixed height, and add four "points": minimum, maximum, low, high.
These are probably integer values which do not relate in any way directly to hours and minutes, so the control can be flexible.
Handle the Paint event to draw the control and two "handles" that you can move.
Handle the MouseDown, MouseUp, and MouseMove events to let you move the handles.
As they move, update the low and high values.

Provide properties to read the values, and in there translate the integers to hours and minutes - perhaps return a timespan? One digit move could be your fifteen minutes.

Provide an event to indicate "slider changed" so the outside world can react to it.
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!

AnswerRe: Hour and minute slider Pin
BillWoodruff9-Apr-21 4:19
professionalBillWoodruff9-Apr-21 4:19 
QuestionC# Linq Get Count of Joined Records Pin
Kevin Marois8-Apr-21 9:34
professionalKevin Marois8-Apr-21 9:34 
AnswerRe: C# Linq Get Count of Joined Records Pin
OriginalGriff8-Apr-21 9:40
mveOriginalGriff8-Apr-21 9:40 
GeneralRe: C# Linq Get Count of Joined Records Pin
Kevin Marois8-Apr-21 9:50
professionalKevin Marois8-Apr-21 9:50 
GeneralRe: C# Linq Get Count of Joined Records Pin
OriginalGriff8-Apr-21 10:05
mveOriginalGriff8-Apr-21 10:05 
QuestionClient Server Pin
Member 141922168-Apr-21 8:18
Member 141922168-Apr-21 8:18 
AnswerRe: Client Server Pin
OriginalGriff8-Apr-21 8:45
mveOriginalGriff8-Apr-21 8:45 
AnswerRe: Client Server Pin
SeanChupas8-Apr-21 9:26
SeanChupas8-Apr-21 9:26 
GeneralRe: Client Server Pin
Member 141922168-Apr-21 10:53
Member 141922168-Apr-21 10:53 
GeneralRe: Client Server Pin
Dave Kreskowiak8-Apr-21 12:12
mveDave Kreskowiak8-Apr-21 12:12 
AnswerRe: Client Server Pin
Dave Kreskowiak8-Apr-21 10:34
mveDave Kreskowiak8-Apr-21 10:34 
AnswerRe: Client Server Pin
Mycroft Holmes8-Apr-21 12:24
professionalMycroft Holmes8-Apr-21 12:24 
GeneralRe: Client Server Pin
jschell9-Apr-21 14:44
jschell9-Apr-21 14:44 
AnswerRe: Client Server Pin
jschell9-Apr-21 14:49
jschell9-Apr-21 14:49 
QuestionCheck List Box Posting back to SQL Column Pin
Mike Mullins 20218-Apr-21 5:29
Mike Mullins 20218-Apr-21 5:29 
AnswerRe: Check List Box Posting back to SQL Column Pin
Mycroft Holmes8-Apr-21 12:28
professionalMycroft Holmes8-Apr-21 12:28 
GeneralRe: Check List Box Posting back to SQL Column Pin
Mike Mullins 20219-Apr-21 3:44
Mike Mullins 20219-Apr-21 3:44 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.