 |
|
 |
I would also like to use your control in a commercial piece of software. Can you please clarify if this is allowable? I've seen the question asked but not answered by yourself.
|
|
|
|
 |
|
 |
When I wrote RangeBar control in 2002 I don't consider about any open source code license. In these years .Net was new and for me it was only a practice.
So, I allow you to use (and if neccessary to modify ) C# RangeBar control in your commercial project. I take no licence fee, you can feel free to reward my work.
D. Neunherz
|
|
|
|
 |
|
 |
Thank you very much
|
|
|
|
 |
|
 |
Will it be easy to change range bar to select a date range?
|
|
|
|
 |
|
 |
When you think about adapting range bar to date type then you have to be clear about time minimum resolution. Days, minutes, seconds, ...
D. Neunherz
|
|
|
|
 |
|
 |
I currently have a timeseries that has four time steps : yearly , monthly, daily and hourly time.
if i could implement it for the general date format (seconds) i guess i would be happy, as well as other people too!
|
|
|
|
 |
|
|
 |
|
 |
What is the license fo this open source? e.g., CPOL, MIT, or BSD license?
|
|
|
|
 |
|
 |
CPOL sounds good. I'm very astonished that this old practice control is already in use.
|
|
|
|
 |
|
|
 |
|
 |
Hello,
I just found your custom component and rearanged it to work for my needs!
I also create custom components for my C# projects, becouse it is great
So thanks again for your source code.
Good Day
Boštjan
|
|
|
|
 |
|
 |
I'am glad that this seven years old code is furthermore in usage.
Thank you
D. Neunherz
|
|
|
|
 |
|
 |
thanx very nice.
|
|
|
|
 |
|
 |
Hi, I wanted to know that is there any liceinsing formality if I use this control in a commercial application. Plps let me know about this at the earliest. Thank you.
|
|
|
|
 |
|
 |
Hi, your controll is nice, also good usable just as example on how to make a new controll.
I have following problem: when in vertical orientation, i want the upper (left) slide to be max and lower (right) slide to be min. For now i have just swapped the names, but it aint working properly because of the checks if min>max etc. Could you give me any advice what to change to have it diferent in vertical orientation. I am combining it with some oher controlls and its getting a bit messy.
Could you also send me the improvments for shifting a range, thank you.
Grats.
kalin
|
|
|
|
 |
|
 |
Very good program but there is a logical error.
Total Range must no be greater than Selected Range you must include a condition to avoid this error...
Thanks again...
|
|
|
|
 |
|
 |
Plz plz plz help me, I want to run this rangebar control, so I downloaded ur code, now tell me how it is one directory in another directory. I thought Test RangeBar should be the main window application and ZzzzRangeBar should be the project of type Windows Control Library. Tell me where am I wrong....plz plz plz help me. I want to run ur application. And one more thing if u can help me I want to create some resource file(.resx), how to do it? I know I have to get the ResEditor tool first. I want to do from command prompt? What is going to be the command?
Thanks.
|
|
|
|
 |
|
 |
I liked this control, but I thought it would be nice to be able to shift the range up or down.
In other words, it is now possible to move both marks simultaneously by clicking in the region between them. (This selects both marks and they move together.)
For example, if the range is 10 with a minimum of 20 and a max of 30, the user might want to keep the range equal to 10, but shift it down to start at 5 and end at 15.
I enabled this functionality with both the mouse and keyboard.
If anyone else thinks this is useful, let me know and I'll post my changes.
Caveat: by the time I made all these changes, the code started getting a bit messy. It's not too bad -- there's just more duplicate code than there should be. (Ideally, there should be no duplicate code, but that isn't the style in which this control was originally written.) I think the whole control is really due for some refactoring, especially after my changes.
I followed the original style of coding, but with the additional functionality, it would be much better to break certain sections out into their own methods (to reduce the code duplication). I haven't done this.
I also think some of the rectangle calculations I did could possibly be made more efficient.
|
|
|
|
 |
|
 |
Good ideas! Can you send me your changes ?
D. Neunherz
|
|
|
|
 |
|
 |
I emailed the code to you. You are welcome to integrate any of my code into your project if you wish. Just treat it as your own code and do whatever you wish.
Thanks for the nice control!
|
|
|
|
 |
|
 |
Hey,
can you please email me your changes or post your changes here!?
Thanks
Steffen
|
|
|
|
 |
|
 |
I'm trying to convert this solution to a VS.NET 2002 solution. So far I haven't gotten it to work. Can anyone provide some suggestions? Has anyone else already done this? Thanks
|
|
|
|
 |
|
 |
the "Enabled" is not working.
|
|
|
|
 |
|
 |
Thank you for your hint. I will proof this bug.
Week ago, I have programmed a new version with a lot new features like horizontal, vertical orientation and so on.
|
|
|
|
 |
|
 |
Hello,
This is a very good sample of wich can be doing with C#. I have meade some minor improvments to complete the keyboard navigation interface:
private void OnEnter(object sender, System.EventArgs e)
{
ActiveMark = ActiveMarkType.left;
Invalidate(true);
}
Also, your OnLeave() event managet is missing the Invalidate(true). The last one modification is on the first lines of OnKeyPress event:
private void OnKeyPress(object sender,Windows.Forms.KeyPressEventArgs e)
{
if(e.KeyChar.ToString().ToUpper()=="L")
ActiveMark=ActiveMarkType.left;
if(e.KeyChar.ToString().ToUpper()=="R")
ActiveMark=ActiveMarkType.right ;
With this little changes the control is completly usable with keyboard only.
Saludos,
Rafael Barbera
|
|
|
|
 |