whenever i run the program i can actually write something on it.
should combo box's value depend on its drop down list? isn't it?

Not really. That's why it's called a "combo box" because it combines both a listbox feel with a textbox functionality. To give it the feel that you are after, however, simply change it's style property to 2, and it will behave like you want.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.