Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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

  • Administrators
Posted

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.

Posting Guidelines FAQ Post Formatting

 

Intellectuals solve problems; geniuses prevent them.

-- Albert Einstein

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...