| | |
Need advice on matrix input
Please support our C# advertiser: $4.95 a Month - ASP.NET Web Hosting – Click Here!
Thread Solved
![]() |
I'd like to write a matrix evaluation tool.(add, multiply, inverse etc.)
So I need some way to manually input the values of a matrix.
I don't want the input to be console like : "Give val for r1,c2" or something like that.
I want a forms app with a table input.
I can think of two options here:
1) A TableLayoutPanel filled with TextBoxes
2) A DataGridView
What should I decide on? Are there other and possibly better alternatives? Any help on this matter is more than welcome.
So I need some way to manually input the values of a matrix.
I don't want the input to be console like : "Give val for r1,c2" or something like that.
I want a forms app with a table input.
I can think of two options here:
1) A TableLayoutPanel filled with TextBoxes
2) A DataGridView
What should I decide on? Are there other and possibly better alternatives? Any help on this matter is more than welcome.
Today is a gift, that's why it is called "The Present".
Make love, no war. Cave ab homine unius libri.
Danny
Make love, no war. Cave ab homine unius libri.
Danny
•
•
Join Date: Aug 2008
Posts: 1,735
Reputation:
Solved Threads: 186
Either would work, but I guess in the long term it depends more on excactly how you're going to process your matrix - of course the perfect answer would be to device a matrix input component, which consists of either of your ideas, but done so you can drop a Matrix onto your form and size and so on.
Did I just hear "You gotta help us, Doc. We've tried nothin' and we're all out of ideas" ? Is this you? Dont let this be you! I will put in as much effort as you seem to.
•
•
Join Date: Aug 2008
Posts: 1,735
Reputation:
Solved Threads: 186
Yep, make your own up, that you can then reuse as your "matrix" input, but it would then allow all that class to do the validation etc.
Wether you stem it from textboxes or a datagrid is kinda down to how you want it to work I guess, in the short term textboxes maybe easier to work with though
Wether you stem it from textboxes or a datagrid is kinda down to how you want it to work I guess, in the short term textboxes maybe easier to work with though
Did I just hear "You gotta help us, Doc. We've tried nothin' and we're all out of ideas" ? Is this you? Dont let this be you! I will put in as much effort as you seem to.
Yes, if I were you, I'd make it UserControl
1- You have constant control (be used in this App and others)
2- You need this control to give you "a matrix" more than textboxs values, some how you isolate logic from UI and UI controls from UI processing elements.
1- You have constant control (be used in this App and others)
2- You need this control to give you "a matrix" more than textboxs values, some how you isolate logic from UI and UI controls from UI processing elements.
BI Developer | LINKdotNET
B.Sc Computer Science, Helwan University
Technical blog | http://ramymahrous.wordpress.com
LinkedIn | http://www.linkedin.com/in/ramymahrous
B.Sc Computer Science, Helwan University
Technical blog | http://ramymahrous.wordpress.com
LinkedIn | http://www.linkedin.com/in/ramymahrous
If you need me to work with you it's much appreciated from you, unemployed state feels me sadness
BI Developer | LINKdotNET
B.Sc Computer Science, Helwan University
Technical blog | http://ramymahrous.wordpress.com
LinkedIn | http://www.linkedin.com/in/ramymahrous
B.Sc Computer Science, Helwan University
Technical blog | http://ramymahrous.wordpress.com
LinkedIn | http://www.linkedin.com/in/ramymahrous
•
•
Join Date: Aug 2008
Posts: 1,735
Reputation:
Solved Threads: 186
yes and no. You can do a dataview to something in memory, such as a list.. I believe even an arraylist.. so.. maybe theres food for thought in that.
The key thing is how your user is going to feel using it. You need to decide which would be easiest to work with to give you what you wanted.
The key thing is how your user is going to feel using it. You need to decide which would be easiest to work with to give you what you wanted.
Did I just hear "You gotta help us, Doc. We've tried nothin' and we're all out of ideas" ? Is this you? Dont let this be you! I will put in as much effort as you seem to.
![]() |
Similar Threads
- Memory game (Python)
- Help with Appending Number Matrix (Python)
- need help (C)
Other Threads in the C# Forum
- Previous Thread: Simple <Form> data error
- Next Thread: Open file dialog
| Thread Tools | Search this Thread |
.net access algorithm animation array bitmap box c# check checkbox client combobox control conversion csharp customactiondata database datagrid datagridview dataset datastructure date/time datetime datetimepicker degrees directrobot dll draganddrop drawing encryption enum excel file filename files form format formbox forms function gdi+ gis gtk hash image input install java label list mandelbrot math mouseclick mp3 mysql native operator outlook2003 packaging path photoshop picturebox pixelinversion pixelminversion post print process programming radians regex remoting richtextbox safari server sleep snooze socket sql statistics string table tables tcp text textbox thread time timer update usercontrol usercontrols validation visualstudio webbrowser webcam wfa wia winforms wpf xml






