Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8514381
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T04:51:06+00:00 2026-06-11T04:51:06+00:00

So I spent 2 hours trying to figure out this weird error in VB.NET.

  • 0

So I spent 2 hours trying to figure out this weird error in VB.NET. Finally figured it out but I can’t figure out why it sometimes would work and sometimes won’t. I had 2 DLLs both of which had a MODULE called _Main.vb which had a variable called “MDIParentForm”. If I import both DLLs as references for a third assembly and do:

MDIParentForm = Something

Which “MDIParentForm” am I setting? The one in the first Assembly? in the second Assembly? Seemed like if I ran it in “Debug” mode it would set one Assembly and in “Release” it would set the other assembly and break my code… I’m a C#/Java programmer by nature so don’t really get how “Module” works in VB.NET and since no namespace or classname is required to call its members how the heck do you know what member you are setting?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T04:51:08+00:00Added an answer on June 11, 2026 at 4:51 am

    VB has more than one ‘feature’ that can lead to coding horrors such as this one.
    The solution is to qualify the module member with the module name.

    The fact that VB allows you to use unqualified module members doesn’t mean that this is a good idea.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I just spent the last 3 hours trying to figure out this error. I
I've spent a couple hours now trying to figure this out, but I just
spent a few hours trying to figure this out, but cannot for the life
I have now spent several hours trying to figure this out. I have this
I've spent ~6 hours trying to figure this out. I'm hoping a perl guru
I have an issue that I've spent hours trying to figure out, but since
Alright, I've spent about 5 hours trying to figure this out. Absolutely none of
So I spent 2 hours trying to figure this out, minimizing the code as
I've spent quite a few hours researching and trying to figure out why I'm
I'm sorry to ask this question but I have spent hours trying to understand

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.