Visual Basic Dot Net adds imports to my forms causing controls to be unrecognized

Microsoft Visual Studio Community 2022 (64-bit)
Windows 11

Sometimes when I’m working, Visual Studio (I presume that is what is doing it) will “seize” for a short period after which some of the controls that have been working perfectly become unrecognizable to the compiler. I have found the resolution, I just don’t understand why it happens and how I might prevent it.

Something is causing IMPORTs statements to be added to the list at the top of my form/class. These always seem to be at the end of the list and I finally figured out I could just comment them out or delete them and everything goes back to normal.

The IMPORTs statements are not always referencing the same namespace. I only know now to look here because I’ve spent the time lumbering through online documentation, object browser, etc.

I have an example right now I’m trying to figure out in one of my classes.

“DoEvents” is not a member of “Application”

This is an odd one and I know that DoEvents is not a recommended event call. More often it is that ‘treeview’ is not recognized as an object, or something very similar. This one is the one I’m dealing with and led me to finally ask the world about.

This is NOT an urgent problem. I can get past my current issue by just removing these calls in the class having the problem but the calls are NOT causing issues in quite a few of my other classes in the same project.

In the class where it is failing, I have the following IMPORTS

Imports System.IO
Imports System.Reflection.MethodBase
Imports System.Windows

In one of the ones that does not have the issue, I have the following imports:

Imports System.Security.Cryptography
Imports System.Text

Neither of these imports lists was changed (by me) any time recently and I’m not sure either has changed at all from when they were created.

I am primarily interested in WHAT is causing this. I’m happy to figure out what happened or what I must do to fix it on my own. I would really like to know what I’m doing that is causing it.

Thank you for any insight you can provide.

e.g.bell

Post Script:
I resolved the problem by removing the

Imports System.Windows 

statement from the list in the offending class. I should have tried that before I posted this long question, but it would still leave me without an understanding of WHY it happens, so I would still appreciate any help anyone can provide.

Thx

1

Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa Dịch vụ tổ chức sự kiện 5 sao Thông tin về chúng tôi Dịch vụ sinh nhật bé trai Dịch vụ sinh nhật bé gái Sự kiện trọn gói Các tiết mục giải trí Dịch vụ bổ trợ Tiệc cưới sang trọng Dịch vụ khai trương Tư vấn tổ chức sự kiện Hình ảnh sự kiện Cập nhật tin tức Liên hệ ngay Thuê chú hề chuyên nghiệp Tiệc tất niên cho công ty Trang trí tiệc cuối năm Tiệc tất niên độc đáo Sinh nhật bé Hải Đăng Sinh nhật đáng yêu bé Khánh Vân Sinh nhật sang trọng Bích Ngân Tiệc sinh nhật bé Thanh Trang Dịch vụ ông già Noel Xiếc thú vui nhộn Biểu diễn xiếc quay đĩa Dịch vụ tổ chức tiệc uy tín Khám phá dịch vụ của chúng tôi Tiệc sinh nhật cho bé trai Trang trí tiệc cho bé gái Gói sự kiện chuyên nghiệp Chương trình giải trí hấp dẫn Dịch vụ hỗ trợ sự kiện Trang trí tiệc cưới đẹp Khởi đầu thành công với khai trương Chuyên gia tư vấn sự kiện Xem ảnh các sự kiện đẹp Tin mới về sự kiện Kết nối với đội ngũ chuyên gia Chú hề vui nhộn cho tiệc sinh nhật Ý tưởng tiệc cuối năm Tất niên độc đáo Trang trí tiệc hiện đại Tổ chức sinh nhật cho Hải Đăng Sinh nhật độc quyền Khánh Vân Phong cách tiệc Bích Ngân Trang trí tiệc bé Thanh Trang Thuê dịch vụ ông già Noel chuyên nghiệp Xem xiếc khỉ đặc sắc Xiếc quay đĩa thú vị
Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa
Thiết kế website Thiết kế website Thiết kế website Cách kháng tài khoản quảng cáo Mua bán Fanpage Facebook Dịch vụ SEO Tổ chức sinh nhật