Click here to Skip to main content
15,175,959 members
Home / Discussions / C#
   

C#

 
QuestionUpdate/refresh Combobox in Form1 after doing an add from Form 2 Pin
Richard A Knox2-Dec-21 6:19
MemberRichard A Knox2-Dec-21 6:19 
AnswerRe: Update/refresh Combobox in Form1 after doing an add from Form 2 Pin
BillWoodruff2-Dec-21 6:58
mveBillWoodruff2-Dec-21 6:58 
GeneralRe: Update/refresh Combobox in Form1 after doing an add from Form 2 Pin
Richard A Knox4-Dec-21 7:08
MemberRichard A Knox4-Dec-21 7:08 
GeneralRe: Update/refresh Combobox in Form1 after doing an add from Form 2 Pin
Gerry Schmitz5-Dec-21 9:04
mveGerry Schmitz5-Dec-21 9:04 
QuestionReading username Pin
Luis M. Rojas1-Dec-21 5:45
MemberLuis M. Rojas1-Dec-21 5:45 
AnswerRe: Reading username Pin
lmoelleb3-Dec-21 19:36
Memberlmoelleb3-Dec-21 19:36 
QuestionHow can I make the timer stay active after the program is closed? Pin
Duke Jason30-Nov-21 20:34
MemberDuke Jason30-Nov-21 20:34 
AnswerRe: How can I make the timer stay active after the program is closed? Pin
OriginalGriff30-Nov-21 21:09
mveOriginalGriff30-Nov-21 21:09 
It depends on what you are actually trying to do with your timer: you can't set up a timer within your application and have it run after the app is closed, so it you are doing this to "time" an exam or similar, then it's totally the wrong approach as it's very simple to bypass - bring up task manager and terminate the app process.

So you need to think about exactly what you are trying to use the timer for: what purpose does it serve? What should happen when it expires? What if the use logs out? Turns off the computer? Runs two copies of the app?

There are ways - pretty simple ones - to say "this task must be completed by hh:mm today" and persist that between runs of the app, but that may not be appropriate, depending on your use case.
Similarly, there are ways to minimize the app when it's told to close - but those are nothing like infalible so again, it depends on your use case if that is appropriate.

And we have no idea what you are trying to do with this - we have no access to your system, and only get exactly what you type to work with!
"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: How can I make the timer stay active after the program is closed? Pin
Pete O'Hanlon30-Nov-21 22:24
mvaPete O'Hanlon30-Nov-21 22:24 
AnswerRe: How can I make the timer stay active after the program is closed? Pin
Dave Kreskowiak1-Dec-21 2:20
mveDave Kreskowiak1-Dec-21 2:20 
AnswerRe: How can I make the timer stay active after the program is closed? Pin
Gerry Schmitz1-Dec-21 19:09
mveGerry Schmitz1-Dec-21 19:09 
QuestionCode cast InvalidCastException when it "Shouldn't" Pin
Evilfish200029-Nov-21 20:28
MemberEvilfish200029-Nov-21 20:28 
AnswerRe: Code cast InvalidCastException when it "Shouldn't" Pin
OriginalGriff29-Nov-21 22:24
mveOriginalGriff29-Nov-21 22:24 
GeneralRe: Code cast InvalidCastException when it "Shouldn't" Pin
Evilfish200030-Nov-21 3:24
MemberEvilfish200030-Nov-21 3:24 
GeneralRe: Code cast InvalidCastException when it "Shouldn't" Pin
OriginalGriff30-Nov-21 3:50
mveOriginalGriff30-Nov-21 3:50 
GeneralRe: Code cast InvalidCastException when it "Shouldn't" Pin
Evilfish200030-Nov-21 23:05
MemberEvilfish200030-Nov-21 23:05 
GeneralRe: Code cast InvalidCastException when it "Shouldn't" Pin
OriginalGriff30-Nov-21 23:19
mveOriginalGriff30-Nov-21 23:19 
GeneralRe: Code cast InvalidCastException when it "Shouldn't" Pin
Eddy Vluggen30-Nov-21 9:02
professionalEddy Vluggen30-Nov-21 9:02 
AnswerRe: Code cast InvalidCastException when it "Shouldn't" Pin
#realJSOP30-Nov-21 0:25
mva#realJSOP30-Nov-21 0:25 
Questionwhile run the code got no such element found exception seleniumc# Pin
Member 1407570327-Nov-21 21:01
MemberMember 1407570327-Nov-21 21:01 
AnswerRe: while run the code got no such element found exception seleniumc# Pin
OriginalGriff27-Nov-21 21:17
mveOriginalGriff27-Nov-21 21:17 
QuestionList-box item of PropertyGrid in C# could showing only once Pin
wuxianzhong26-Nov-21 3:40
Memberwuxianzhong26-Nov-21 3:40 
AnswerRe: List-box item of PropertyGrid in C# could showing only once Pin
OriginalGriff26-Nov-21 6:01
mveOriginalGriff26-Nov-21 6:01 
QuestionRe: List-box item of PropertyGrid in C# could showing only once Pin
Eddy Vluggen30-Nov-21 8:59
professionalEddy Vluggen30-Nov-21 8:59 
QuestionI want to make 2 Process Synchronization in C# with Mutex Pin
Bharat Bodage24-Nov-21 21:17
MemberBharat Bodage24-Nov-21 21:17 

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.