TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
sajid jebran
NA
14
18.6k
Problem In Inheritence
Sep 6 2011 2:49 AM
Hello R/Sir
I asked a question yesterday and i got satisfactory answer, but now i have another problem, the problem is that i want to inherit a button to add new properties to it my code is as follows.
namespace newButton
{
public partial class UserControl1 : Button
{
string myad;
string arabicLang;
public UserControl1()
{
InitializeComponent();
}
public string myvalue
{
get { return arabicLang; }
set { arabicLang = value; }
}
}
}
now the problem is that the my value is visible in the properties panel when i add the button to the toolbox, but it is like a textbox and gets value from the keyboard, i want to make it like a combobox so that it show a list of values and user has to select from it. Please help me
Reply
Answers (
1
)
How to Implement c# desktop based application on network
Populate comboBox with actual relation name and rest records names