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 4324762
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T09:10:34+00:00 2026-05-21T09:10:34+00:00

how do I create a geometric shape as a class? Visual basic has a

  • 0

how do I create a geometric shape as a class? Visual basic has a Rectangle class pre-defined object that I would like to use, but I need to use a rectangle class that can use decimals for the 4 points to set its location. I do not want to draw a shape on the form for graphical reasons but I want to use the shape for an algorithm, how can I create a class for a rectangle using decimals? Thanks and I am a beginner using visual basic so I would appreciate help in as much detail as possible. Thanks again in advance

  • 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-21T09:10:35+00:00Added an answer on May 21, 2026 at 9:10 am

    If you need to use decimal values for the four points of the rectangle, you need to use the RectangleF structure, instead of the regular Rectangle structure. It accepts values of type Single, and is already built-in to the .NET Framework.

    The F at the end of the name stands for “floating-point”, which refers to the decimal point. Computers store numbers with decimal points a bit differently than they do integers. Rather than being fixed at any specific position, the position of the decimal is allowed to “float”. A pretty complicated concept to explain in an answer to such a simple question, but you can get a detailed explanation here if you’re confused.

    (By the way, the Rectangle and RectangleF objects are actually structures, rather than classes.
    It’s a distinction that probably seems somewhat minor or even irrelevant when you’re first learning the language, but it becomes important later. All you need to know right now is that when you’re defining your own types, you should always use a class rather than a structure.)

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

Sidebar

Related Questions

I've got a MySQL table that looks like this: CREATE TABLE my_facts ( `id`
I'm trying to create an interactive 3d representation of cells that are defined by
Create Pex test to test a DLL and hardware controlled by that DLL? I
I was trying to create a brush that draws a geometry. Everything worked fine
I have the following commands that create a sprite containing a normal state and
I'm trying to create a Django query that will do the equivalent of the
I had this original parent abstract class Geometric and i was extending it in
In Java, I want to create a few geometric shapes based on user input.
I have create a site embedded Google mapusing api V3 that shows our 4
I'm trying to draw many overlapping polygons that are shaped like rectangles with rounded

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.