![]() One possible way of doing this is to sub-class the Textbox control and override the winProc method. I know fully well that I may just as well fail completely though, or just never finish it :p But that is another story. ![]() to sum up: I'm doing it to learn and to try make an even better version of it. Like this one :) There are also some features I think are lacking in that Oscar's Renamer. Since it has some interesting problems that needs to be solved. Why go through the trouble of making something like this when it already exists? Well, I am curious to see if I could do it, and thought it could be a nice excercise to learn a few things along the way. Removing a line should also not be allowed since you would then be missing a name for a file. Adding a new line shouldn't be allowed since you only have those files in that folder. Reason for constant n lines in textbox is then of course that line n is the name of file n. When you are happy with your changes, you write them back. You give it a folder, and it loads the filenames into a textbox where you can do changes pretty much like you do in a text editor. Reason: I want to make a file renamer kind of like Oscar's Renamer. Would have to take into account both keyboard input and also things like cut and paste, etc. How would you prevent the user from adding or removing lines in a TextBox? By that I mean, if I set the text in a textbox to 7 lines with some text, how can I make sure that it will always be 7 lines of text there? The user must be able to edit those lines like usual, but not remove a line entirely, and not add any new ones.
0 Comments
Leave a Reply. |