|
Upvoted ! A good solution.
One issue to examine is whether you want to special case the Button's Click event to distinguish whether it's a "regular" click, or a click whose purpose is to set focus to the Button so that you can then move it with the arrow keys.
After all, we use a Button Click event to trigger some action.
Another consideration is whether to confine Button movement so it stays within the bounds of its container.
If I have time, I may post some code addressing these points.
«Where is the Life we have lost in living? Where is the wisdom we have lost in knowledge? Where is the knowledge we have lost in information?» T. S. Elliot
|
|
|
|
|
You attached the key handler to the button.
You should (probably) attach it at the form level and see what has focus from there; intercept the keys; etc.
Your "view" is too narrow.
"(I) am amazed to see myself here rather than there ... now rather than then".
― Blaise Pascal
|
|
|
|
|
Gerry Schmitz wrote: You attached the key handler to the button. You should (probably) attach it at the form level The potential advantage I see in choosing to make the Button move facility self-contained is that you can easily define the sub-classed Button as a custom component ... a separate project ... then you can re-use it, mount it in the ToolBox in VS, etc.
«Where is the Life we have lost in living? Where is the wisdom we have lost in knowledge? Where is the knowledge we have lost in information?» T. S. Elliot
|
|
|
|
|
Hello guys, could you help me for plotting real time graph with c# GUI use toolbox "chart" and the data from arduino or acceleration scencors(MPU9150)?
|
|
|
|
|
Which part?
"(I) am amazed to see myself here rather than there ... now rather than then".
― Blaise Pascal
|
|
|
|
|
All of them, do you want to guide me to make my own graph step by step?
|
|
|
|
|
Step 1: Get some data.
Step 2: Show evidence of said data.
"(I) am amazed to see myself here rather than there ... now rather than then".
― Blaise Pascal
|
|
|
|
|
|
Yes. Buy me some equipment so I can reproduce your situation.
"(I) am amazed to see myself here rather than there ... now rather than then".
― Blaise Pascal
|
|
|
|
|
I don't think anyone is really going to write a small book just for you. This would take quite more than a few forum posts to explain.
|
|
|
|
|
What have you tried?
Where are you stuck?
What help do you need?
Sent from my Amstrad PC 1640
Never throw anything away, Griff
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
could you help me for create my real time graph?
i have task for c# language to make GUI for plotting real time MPU9150 from arduino
|
|
|
|
|
And what would we get out of this? What I see here is you wanting us to do your job for you.
This space for rent
|
|
|
|
|
Member 14142133 wrote: i have task
Go back to whoever gave you the task and tell them you have no idea how to achieve the goal. Maybe they can find someone with more knowledge to do the job.
Never underestimate the power of human stupidity -
RAH
I'm old. I know stuff - JSOP
|
|
|
|
|
Quote: All of them, do you want to guide me to make my own graph step by step?
We are more than willing to help those that are stuck: but that doesn't mean that we are here to do it all for you! We can't do all the work, you are either getting paid for this, or it's part of your grades and it wouldn't be at all fair for us to do it all for you.
So we need you to do the work, and we will help you when you get stuck. That doesn't mean we will give you a step by step solution you can hand in!
Start by explaining where you are at the moment, and what the next step in the process is. Then tell us what you have tried to get that next step working, and what happened when you did.
Sent from my Amstrad PC 1640
Never throw anything away, Griff
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
come on bro, i just wanna somebody help me. i have gave everything for create it
|
|
|
|
|
No, you haven't - you just said "I want this" without telling us what you have tried so far.
Sent from my Amstrad PC 1640
Never throw anything away, Griff
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
Hi,
if you search CodeProject for real time plot , you'll find an inspirational article series by DaveAuld. I haven't read it but it looks good; and I did read and appreciate lots of Dave's stuff in the past.
modified 7-Feb-19 12:00pm.
|
|
|
|
|
thank's bro, do you have more information about my problem. could we talking more about this
|
|
|
|
|
No
|
|
|
|
|
Hi,
Very new to this so appreciate the help.
I am creating an C# application that has a simple database .mdf inside with a table that will hold numbers. Headings are REF and ID as a primary key.
the .csv file will be formatted as:
number,
number,
number,
My application can browse the file path to a text box but then I need to use an 'Import' button to cycle through the numbers in the .csv file and update the table in the database and place them in the REF column.
I can read the .csv into a DataGridView but would rather it just went into the table and didn't create any duplicates when doing so.
Any help appreciated.
Thanks
|
|
|
|
|
|
You need to do some basic research, there are many examples for this process, CSV to Table to CSV (shameless plug)[^]
Then all you need to do is write it to the database and there are a myriad of examples for that as well.
Never underestimate the power of human stupidity -
RAH
I'm old. I know stuff - JSOP
|
|
|
|
|
How to convert docx,pdf or doc files into html file use c# ?
only use Microsoft class + library, without using third party library
|
|
|
|
|