| Author |
Message |
bachus

Joined: Feb 29, 2004 Posts: 2922 Location: Up in that tree over there.
Audio files: 5
|
Posted: Wed May 19, 2010 4:19 am Post subject:
Array of ComboBoxes in .NET |
 |
|
Someone was looking for a "simple" way to dynamically build an arbitrary number of ComboBoxes in .NET and use them in an array. Be glad to answer any remaining questions.
I will note that one either has to have a single event handler and a switch in the handler method to process individual combos as is done here (to demonstrate how to do it that way) or one must create an event method for each combo and assign a handler for it.
| Description: |
|
| Filesize: |
44.91 KB |
| Viewed: |
356 Time(s) |
| This image has been reduced to fit the page. Click on it to enlarge. |

|
| Description: |
|
| Filesize: |
130.42 KB |
| Viewed: |
361 Time(s) |
| This image has been reduced to fit the page. Click on it to enlarge. |

|
_________________ The question is not whether they can talk or reason, but whether they can suffer. -- Jeremy Bentham |
|
|
Back to top
|
|
 |
v-un-v
Janitor


Joined: May 16, 2005 Posts: 8932 Location: Birmingham, England, UK
Audio files: 11
G2 patch files: 1
|
Posted: Wed May 19, 2010 5:19 am Post subject:
|
 |
|
Why don't you use Mono instead of .NET?
Mono is cross platform. dotnet is afaik, a closed framework.
http://www.mono-project.com/Main_Page _________________ ACHTUNG!
ALLES TURISTEN UND NONTEKNISCHEN LOOKENPEEPERS!
DAS KOMPUTERMASCHINE IST NICHT FÜR DER GEFINGERPOKEN UND MITTENGRABEN! ODERWISE IST EASY TO SCHNAPPEN DER SPRINGENWERK, BLOWENFUSEN UND POPPENCORKEN MIT SPITZENSPARKSEN.
IST NICHT FÜR GEWERKEN BEI DUMMKOPFEN. DER RUBBERNECKEN SIGHTSEEREN KEEPEN DAS COTTONPICKEN HÄNDER IN DAS POCKETS MUSS.
ZO RELAXEN UND WATSCHEN DER BLINKENLICHTEN. |
|
|
Back to top
|
|
 |
bachus

Joined: Feb 29, 2004 Posts: 2922 Location: Up in that tree over there.
Audio files: 5
|
Posted: Wed May 19, 2010 5:59 am Post subject:
|
 |
|
.NET actually is an open platform but M$ is not likely to advance it that way for $$$$ reasons.
1) I did not think Mono mature enough when I looked at it a year ago. And in Mono's case migration is a relatively trivial exercise. As my projects are open source that can be done by anyone at the time of their choosing.
2) Mono Tools for Visual Studio cost $99.00 and AFAIK only works with M$ VS-Pro at $799.00 and my goal was to creat a project that one could engage at no cost and M$'s C# Express fits that bill. MonoDevelop is free but doesn't make me want to leave VS...yet. _________________ The question is not whether they can talk or reason, but whether they can suffer. -- Jeremy Bentham |
|
|
Back to top
|
|
 |
v-un-v
Janitor


Joined: May 16, 2005 Posts: 8932 Location: Birmingham, England, UK
Audio files: 11
G2 patch files: 1
|
Posted: Wed May 19, 2010 8:16 am Post subject:
|
 |
|
| bachus wrote: |
1) I did not think Mono mature enough when I looked at it a year ago.
|
Hmm, Unity don't appear to think so.
http://unity3d.com/
| bachus wrote: | | As my projects are open source that can be done by anyone at the time of their choosing. |
Just as long as you've paid $$$ for a copy of Windows?  _________________ ACHTUNG!
ALLES TURISTEN UND NONTEKNISCHEN LOOKENPEEPERS!
DAS KOMPUTERMASCHINE IST NICHT FÜR DER GEFINGERPOKEN UND MITTENGRABEN! ODERWISE IST EASY TO SCHNAPPEN DER SPRINGENWERK, BLOWENFUSEN UND POPPENCORKEN MIT SPITZENSPARKSEN.
IST NICHT FÜR GEWERKEN BEI DUMMKOPFEN. DER RUBBERNECKEN SIGHTSEEREN KEEPEN DAS COTTONPICKEN HÄNDER IN DAS POCKETS MUSS.
ZO RELAXEN UND WATSCHEN DER BLINKENLICHTEN. |
|
|
Back to top
|
|
 |
JovianPyx

Joined: Nov 20, 2007 Posts: 1988 Location: West Red Spot, Jupiter
Audio files: 224
|
Posted: Wed May 19, 2010 8:24 am Post subject:
|
 |
|
Bachus! Thank you.
I am the culprit here...
First, what this has to do with electronic music:
I design digital synthesizers for FPGAs. These synths do not have physical front panels. Instead, I have been writing patch editors in VB.NET using the _free_ Visual Studio Express Edition from Microsoft (and yes, it's legitimately free, not a hack/crack job). This version of VS.NET has everything I need to make this happen, so I have no need to deviate from .NET.
Some of the patch editors require many repetitions of the same controls arranged in rows. For example, I have a sine synth that has 32 sine oscillators. I wrote a patch editor that has slider controls for level, portamento, fine tuning, etc. It was painful to add each of the 32 sliders (trackbar object) one at a time. Also, each slider has a label display below it that indicates it's numeric value. I was looking for a way to describe the rows of slider/label pairs without having to add and align each one (hours of work) and also have access to the event handlers (in this case, I think I can manage the functionality with a single handler with a "pointer" to the exact object I need manipulated).
I will look at the Bachus code and attempt to translate it into VB.NET (I can read much of C#, just not good at writing new code, I'm much more familiar with VB.NET).
Thank you for starting this thread, Bachus! _________________ FPGA, dsPIC and Fatman Synth Stuff
Time flies like a banana. Fruit flies when you're having fun. BTW, Do these genes make my ass look fat? corruptio optimi pessima
|
|
|
Back to top
|
|
 |
bachus

Joined: Feb 29, 2004 Posts: 2922 Location: Up in that tree over there.
Audio files: 5
|
Posted: Wed May 19, 2010 4:00 pm Post subject:
|
 |
|
| v-un-v wrote: |
Just as long as you've paid $$$ for a copy of Windows?  |
If the interest is in running on multiple platforms rather than simultaneously developing on multiple platforms that is simply not relevant because only one person with a windows set up can produce the executable for Linux--and as even you know, only one of those is needed for every one to have one.
And if someone is set on parallel development -- no problem. They can take the source and load it into MonoDevelope. They just won't have that ever so sweet VS studio IDE. _________________ The question is not whether they can talk or reason, but whether they can suffer. -- Jeremy Bentham Last edited by bachus on Wed May 19, 2010 4:13 pm; edited 1 time in total |
|
|
Back to top
|
|
 |
bachus

Joined: Feb 29, 2004 Posts: 2922 Location: Up in that tree over there.
Audio files: 5
|
Posted: Wed May 19, 2010 4:11 pm Post subject:
|
 |
|
| JovianPyx wrote: | | This version of VS.NET has everything I need to make this happen, |
Yup, the free express editions of the .NET languages have virtually everything the Pro edition does. They just left out the automated testing facilities and advanced debugging. Over the past year I've spent more time using the express edition of C# than the VisualStudioPro version to convince my self of that. AFAICT it's the best piece of free software on the planet. _________________ The question is not whether they can talk or reason, but whether they can suffer. -- Jeremy Bentham |
|
|
Back to top
|
|
 |
JovianPyx

Joined: Nov 20, 2007 Posts: 1988 Location: West Red Spot, Jupiter
Audio files: 224
|
Posted: Wed May 19, 2010 4:30 pm Post subject:
|
 |
|
| bachus wrote: | | AFAICT it's the best piece of free software on the planet. |
I have to agree, I didn't want to download it at first thinking it would be dinky winky. A friend convinced me to give it a try, it's powerful. And for me, the output executable is fast. _________________ FPGA, dsPIC and Fatman Synth Stuff
Time flies like a banana. Fruit flies when you're having fun. BTW, Do these genes make my ass look fat? corruptio optimi pessima
|
|
|
Back to top
|
|
 |
|