Jay1b Posted September 11, 2003 Posted September 11, 2003 form1.caption = "New Form Title"? Is there a SIMPLE way of doing this now? Thanks. Quote
Administrators PlausiblyDamp Posted September 11, 2003 Administrators Posted September 11, 2003 dim f as new Form1 f.Text = "New Form Title" Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
Jay1b Posted September 11, 2003 Author Posted September 11, 2003 Argh......I should really be spotting a pattern by now, shouldnt I? Dont know why they changed that things like that - they worked fine before - maybe added in the extra option of doing it like that, but not forced you. Thanks yet again. Quote
*Gurus* Derek Stone Posted September 11, 2003 *Gurus* Posted September 11, 2003 They changed things because of a little known concept called inheritance. Quote Posting Guidelines
Jay1b Posted September 11, 2003 Author Posted September 11, 2003 Even still, but why couldnt they of made it support both ways? Quote
*Experts* Volte Posted September 11, 2003 *Experts* Posted September 11, 2003 That makes for messy coding and even more confusing situations, since there would be two properties to do exactly the same thing. Without change there is no progess. Quote
Jay1b Posted September 11, 2003 Author Posted September 11, 2003 hmmm.....never thought about messy coding. Although from that point of view, i found about half a dozen different ways to display the path that the program was running from. Quote
*Gurus* Derek Stone Posted September 11, 2003 *Gurus* Posted September 11, 2003 Because having two properties that do the same thing is just dumb. Things change. Either brace the changes that are in fact beneficial, wether they appear to be or not, or switch back to Visual Basic 6. The fact that the Text property is now unified across controls as opposed to Visual Basic 6, which used both Text and Caption properties, makes a number of tasks a bit easier on the developer. I mean really... how much work would it take to execute a find/replace on ".Caption". Come on now... Quote Posting Guidelines
*Experts* Volte Posted September 11, 2003 *Experts* Posted September 11, 2003 Yes, but they are all different (properties of different objects or they return slightly different values, or something). An object with two properties that return exactly the same thing is unneeded. Different methods of doing things is fine, but duplication of any sort in programming is generally to be avoided. Especially when it is simply to cater to programmers who are used to old methods. [edit](Yay, 1337 posts. :D)[/edit] [edit]D'oh! Derek beat me. :p[/edit] Quote
Jay1b Posted September 11, 2003 Author Posted September 11, 2003 i have no problem typing text instead of caption, infact its shorter. I was previously referring to the inheritance bit - but i acknowledged that on my last post. I like to embrace change, but to embrace it, i believe you must first understand it...........hence the 'silly questions' on why its changed. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.