Skip to content

About

A simple program that calculates your weight on different planets. Programmed in Windows Forms App(.NET Framework) using C# syntax.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation

C# Windows Forms: Weight on Different Planets

This repository contains the completed source code for Tutorial #4 on my YouTube channel. It demonstrates how to process numeric user input, apply planetary weight calculations, and display results via dialog boxes using C# and Windows Forms.

📺 Watch the full tutorial here: (https://www.youtube.com/@CodedByVin).

Features

  • Allows user input(your weight in kilograms/kg) using NumericUpDown control.
  • Calculates how much you weigh on different planets via clicking a button.
  • The buttons have clear text on them displaying the names of planets.
  • The output is displayed via a messagebox dialog.

Tech Stack

  • Language: C#
  • Framework: .NET Framework (Windows Forms)
  • IDE: Visual Studio

How to Run This Code

  1. Click the green Code button and download the ZIP file, or clone the repository.
  2. Extract the folder and open the .sln (Solution) file using Visual Studio.
  3. Ensure you have the .NET desktop development workload installed.
  4. Press Start (or F5) in Visual Studio to run the application.

Screenshots

Screenshot 2026-09-17 150250 Screenshot 2026-09-17 150338

About

A simple program that calculates your weight on different planets. Programmed in Windows Forms App(.NET Framework) using C# syntax.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages