Relative Content

Tag Archive for c++forms

Trying to make a replica of the QBasic Gorilla game in C# Windows Forms. How to make the cube in the designer (banana) move with ballistics?

using System.Numerics; using System.Reflection; using static System.Windows.Forms.VisualStyles.VisualStyleElement; namespace gorilla { public partial class Form1 : Form { private Random r = new Random(); private Rectangle rRectangle; List<Rectangle> Buildings = new List<Rectangle>(); List<Rectangle> Players = new List<Rectangle>(); List<Rectangle> PlayerBases = new List<Rectangle>(); float g = 9.8f; public Form1() { InitializeComponent(); this.Paint += Form1_Paint; this.ClientSize = new […]

CSharp form with transparent element

In CSharp, on Windows 11, I have a form with a solid background and a transparent PictureBox. The form loads and PictureBox is actually transparent, but when I move the mouse over the transparent area the mouse handling get sent to objects behind the form.

How to Manage C# multi-form application

I have a C# multi-form application. I have a toolStripMenu that allows users to navigate between different forms in the application. When switching between forms, I close the current form then open the new form. On some forms, there is a MessageBox confirming the user wants to exit without saving, if they have not saved their changes. If they select NO, the exit event is cancelled.