title: C# Form DropDownStyle different when called as class library from vbscript
body: <p>I have a windows form, that has a combo box. The combo box has property DropDownStyle. I have set its value to <strong>DropDownList</strong>. i.e. DropDownStyle: <strong>DropDownList</strong>. It works fine when the form is loaded as a windows application. But when I call it as class library from vbscript, it shows the the form with combo box having a different style (attached in screenshots). Can anyone suggest why is the difference occurring in its style?</p>
  
  <p>EDIT: vbscript code is:</p>
  
  <pre><code>dim objTest, intResult, strResult
  Set objTest = CreateObject ("Authentication.Initialize")
  strResult = objTest.showOptions ("username", "Methods", "method1,method2")
  Wscript.echo "Result = " &amp; strResult
  </code></pre>
  
  <p>Form appears like this</p>
  
  <p><a href="https://i.stack.imgur.com/pqKgo.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/pqKgo.png" alt="Form in design"></a></p>
  
  <p>whereas form in design is:</p>
  
  <p><a href="https://i.stack.imgur.com/uHnKg.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/uHnKg.png" alt="enter image description here"></a></p>