Conversion failed when when converting date/time from string
Error
How do i hide all MDI children form until they are all loaded and arranged?
Here is how i add and arrange the forms based on their Tag:
why in the paint it’s drawing small squares and not circles?
private void PictureBoxPoints_Paint(object sender, PaintEventArgs e) { if (pictureBoxPoints.Image != null) { Bitmap bitmap = pictureBoxPoints.Image as Bitmap; double xFactor = (double)bitmap.Width / pictureBoxPoints.Width; double yFactor = (double)bitmap.Height / pictureBoxPoints.Height; double scaleFactor = Math.Max(xFactor, yFactor); // Ensure uniform scaling foreach (System.Drawing.Point point in _dotPoints) { int ellipseSize = (int)(5 / scaleFactor); // Ensure uniform scaling […]
How to draw filled points circles on picturebox depending on mouse down coordinates?
first not sure if i need the paint event and second this code draw the points far on the form not in the picturebox not where i clicked with the mouse on the picturebox.
How to clear the drawn rectangle in the mouse down event?
I tried to make Rectangle.Empty but it’s not working. it does nothing to the drawn rectangle. the drawn rectangle is stay and i want it to be deleted to start drawing a new rectangle.
Windows Form process has exited with unexpected exit code
From a Windows application developed in .Net framework 4.8, clicking on a button is trying to launch another Windows application that is in a different project (to maintain legacy behavior).
Can’t place a ship part next to another part
I started working on a project in C# using Windows Forms, making a sea battle game.
C# Move Controls Randomly
How can I move a Windows Forms control randomly?
By that I mean the control should move in all directions, different ankles.
How to retrieve strings from a localised string resource?
I have been trying to localise my stings by putting them int a resw file, but I cannot work out how to access them.
Winforms – How do I unload non visible controls in a scrollable window?
I’m learning c# & winforms and I have an issue on the app I’m making.