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

  • Home
  • SEARCH
  • 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 202223
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T17:16:06+00:00 2026-05-11T17:16:06+00:00

I have VB.NET code in Visual Studio 2008 using an obsolete method and would like to

  • 0

I have VB.NET code in Visual Studio 2008 using an obsolete method and would like to suppress the warning. Unfortunately, following the recommendation is not a good solution, because it requires using a different class, which works differently, in important ways.

I’m trying to suppress the warning using System.Diagnostics.CodeAnalysis.SuppressMessage, but I don’t know what to write as the parameters for the attribute and can’t find any relevant reference.

I should also say that, right-clicking on the error in the error list I don’t have any ‘Suppress Message’ option.

  • 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-05-11T17:16:06+00:00Added an answer on May 11, 2026 at 5:16 pm

    If you’re using Visual Studio you can do the following.

    1. Right click on the project and select “unload”
    2. Right click on the project and select “Edit SomeProjectName.vbproj”
    3. You should see two XML element tags with the name “NoWarn”. Add the number 40000 to the list of numbers already present (make sure to do this for every NoWarn tag in the file)
    4. Save the file
    5. Right click on the project and select reload (you’ll have to close the .vbproj file)

    This will get rid of the warning. The number 40000 is the VB.Net error number for the obselete warning. You can suppress any warning in this fashion.

    Note: If the NoWarn tag is not present, add it to the main PropertyGroup element with the following values

    <NoWarn>40000</NoWarn>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 167k
  • Answers 167k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer A CSV from the General Register Office of Scotland with… May 12, 2026 at 1:28 pm
  • Editorial Team
    Editorial Team added an answer It's the line: self = item; You're setting self to… May 12, 2026 at 1:28 pm
  • Editorial Team
    Editorial Team added an answer you can have tables - user (user_id, name ...) permission… May 12, 2026 at 1:28 pm

Related Questions

I would like to refactor a large legacy application originally written in Visual Basic
I typically code in VB.NET, but I'm going through a tutorial in C# .NET
I have a VB6 program that someone recently helped me convert to VB.NET In
I have inherited a VB.net web app that I'm making some changes on. I'm

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.