Change ComboBox to TextBox

I have a Windows.Forms.ComboBox that I would like to change to a TextBox.
What is the easiest way to do this?
LVL 1
allelopathAsked:
Who is Participating?
 
AndyAinscowFreelance programmer / ConsultantCommented:
You could manually edit the .cs file - replace ComboBox with TextBox.
0
 
Kyle AbrahamsSenior .Net DeveloperCommented:
Delete the combo box
Add a textbox

Update the code for any selecteditems/values.
0
 
allelopathAuthor Commented:
I guess what I'm asking is there a way to refactor it using the GUI editor.
0
 
AndyAinscowFreelance programmer / ConsultantCommented:
ps.  Not possible in the GUI editor to change a control type.
0
 
allelopathAuthor Commented:
AndyAinscow:
This is what I had done, simply change the class and fix the fallout from there. Not all that bad, but again, was just wondering if there was a better way.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.