Message 1 of 6
Trouble populating a ComboBox in a VB.NET Windows Form
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Community,
I am developing a VB.NET add-in (DLL) for AutoCAD.
I have a Windows Form with a ComboBox on it.
For debugging purposes, I have manually added items to the ComboBox within the main subroutine.
cboSelCust.Clear
cboSelCust.Items.Add("ABC")
cboSelCust.Items.Add("DEF")
During debugging, the ComboBox shows that it has two items:
However, when I show the dialog box,
' Declare form and show it
Dim myForm As New MainForm
Autodesk.AutoCAD.ApplicationServices.Application.ShowModalDialog(myForm)
the ComboBox is empty.
I hope it is something simple that I have overlooked to get the names to show in the ComboBox.
Thanks for your time and attention. I look forward to your replies.
Regards,
Jerry
-----------------------------------------------------------------------------------------
CAD Administrator
Using AutoCAD & Inventor 2025
Autodesk Certified Instructor
Autodesk Inventor 2020 Certified Professional
Autodesk AutoCAD 2017 Certified Professional
CAD Administrator
Using AutoCAD & Inventor 2025
Autodesk Certified Instructor
Autodesk Inventor 2020 Certified Professional
Autodesk AutoCAD 2017 Certified Professional