Skip to main content
20 events
when toggle format what by license comment
Feb 5, 2022 at 18:52 comment added Tommaso @PeterCsala oh sorry, your answer definitely opened my mind to some things that i didn't even know you could do
Feb 5, 2022 at 18:51 vote accept Tommaso
Feb 5, 2022 at 16:49 comment added Peter Csala @Tommaso Did you find my post useful? If so please consider to upvote and/or accept as the answer.
Jan 28, 2022 at 18:00 history tweeted twitter.com/StackCodeReview/status/1487123318796959754
Jan 28, 2022 at 15:46 answer added Peter Csala timeline score: 3
Jan 28, 2022 at 15:11 comment added aepot ToolStripMenu with Copy item, readonly TextBox, many ways to copy/paste.
Jan 28, 2022 at 15:04 comment added Tommaso @PeterCsala Should've guessed there was a way to make it do that. thanks!
Jan 28, 2022 at 15:03 comment added Peter Csala @Tommaso By double clicking on it will copy the content to the clipboard. That's the default behaviour.
Jan 28, 2022 at 15:01 comment added Tommaso @PeterCsala yeah
Jan 28, 2022 at 14:52 comment added aepot button.Click += index switch { 0 => button1_click, 1 => button1_click ... };
Jan 28, 2022 at 14:51 comment added Peter Csala @Tommaso Do you mean copying to the clipboard?
Jan 28, 2022 at 14:48 comment added Tommaso @PeterCsala it would make sense apart from the fact that you can't copy text off labels (as far as i know)
Jan 28, 2022 at 14:44 comment added Peter Csala @Tommaso Are the tbox_entry and tbox_expression editable? Based on the shared code base their Text can be only changed by button clicks (or via keystroke if you have specified shortcuts). If that's the case then would it make sense to use labels instead?
Jan 28, 2022 at 14:31 comment added Tommaso @PeterCsala Any significant piece of code can be more or less efficient than another, i guess it's not a big deal here but some things can always be tweaked to run a little better/faster i assume
Jan 28, 2022 at 14:15 comment added Peter Csala @Tommaso What do mean by efficiency? Your code consists of mathematical operations, assignments and string concatenations. What kind of efficiency related problem can your program have?
Jan 28, 2022 at 13:50 comment added Tommaso @aepot nice! i was trying to implement this but had no idea how, however i don't really get how i'm supposed to handle events and stuff if the controls aren't in the designer. I'll try to turn it into a version i can work with
Jan 28, 2022 at 11:25 comment added aepot One more UI tip in a project. Note that window is sizable, check the behavior. UI only, no button handlers attached but you can improve it.
Jan 28, 2022 at 7:21 comment added Tommaso @aepot thank you! that basically cut it in half
Jan 27, 2022 at 23:19 comment added aepot A tip: you can merge 10 handlers for digits into 1. private void btn_digit_Click(object sender, EventArgs e) { Add_to_entry((sender as Button).Text); } and assign this handler to all 10 digit buttons. Other repetitive code can be eliminated in the same way.
Jan 27, 2022 at 16:37 history asked Tommaso CC BY-SA 4.0