|
-
Jan 20th, 2021, 07:00 AM
#3
Thread Starter
New Member
Re: System.NullReferenceException Error
 Originally Posted by jmcilhinney
Indexing the Controls collection with a name that doesn't exist will return Nothing, and you can't get a property of Nothing. Why do you think that ComboBoxes will just appear out of thin air? If you want ComboBoxes on your form then add them to your form. That said, if you added them to some other container, e.g. a Panel, then they will be in the Controls collection of that container, not of the form.
Hello jmcilhinney,
You are like The Dooo of programing I added the ComboBoxes in TabControl1, does this make a difference? If so how can i put it to my code?
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|