mookie Posted February 17, 2005 Posted February 17, 2005 i have a filelist control that i am using to display all of the folders and files on my computer. I would like to add to it a "pattern" property. the problem is that when i set the property, the property "function" gets executed again and i end up with a stack overflow. Im also confused as what i need to do in order to retrieve this value from a different form. I was able to if i defined the property as shared, but i dont know if this is the way to go. Charles Quote
Administrators PlausiblyDamp Posted February 17, 2005 Administrators Posted February 17, 2005 Any chance you could post the relevant code? By the sound of it you are refering to the property name from inside the property e.g. Public ReadOnly Property Test as Integer Get return test end get end property what you would need to do is use some other way to store an internal value for the property e.g. private _test as integer Public ReadOnly Property Test as Integer Get return _test end get end property (sorry if the code is not exact, don't have VS on this PC) Also you may want to look at clicky for more information on using forms under .Net. Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
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.