We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

setting new properties to custom controls in vb .net

Thread ID:





3760 Apr 6,2003 11:06 PM Apr 8,2003 03:07 PM Windows Forms 1
Tags: FAQ
Yogendra Patil
Asked On April 6, 2003 11:06 PM

Hi Prakash, thankx for helping me with windows formborderstyle.i have implemented it and its working perfectly allright. I have a new Problem which is mentioned below. I have designed a custom control having a text box , a button and a listview control. I want to create a property say 'behaviour 'property.This behaviour property can take either of the 2 values "TextBox" or "combobox". when user selects "textbox" only the textbox control in the custom control is visible else all 3 controls in custom control are visible.

Ramesh Praveen [Syncfusion]
Replied On April 8, 2003 03:07 PM

Easiest way to do this is to create a new enum with the appropriate "behaviors" and then set the Behavior property to this enum. -Praveen


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.