All Questions
90
questions
0
votes
1
answer
185
views
Drawing a rounded edge panel in C# windows forms doesn't load correctly
I am trying to create a panel with rounded edges, but always comes out wrong
picture:
what i tried was these two codes but none of them achieves my desired expectation
public class CustomPanel : ...
0
votes
0
answers
46
views
how to close a form and show another form with same button...(error:panel was null) [duplicate]
I am a begginer. I am creating a winform app, in that I have a Mainform(F1) and several differnt forms which are going to display in a panel(p1) of F1, from these one (F2) is open in load event of F1, ...
0
votes
1
answer
419
views
Resizing Panels in proportion to form
I am developing a Delphi game for my (grade 10) PAT.
I am using an image as a grid for my game and placing individual panels in each grid because I do not know how to use string grids as it's my first ...
0
votes
1
answer
71
views
Move a child out of panel
I use the code down below to start a cmd.exe window and move it into panel1 on my form. I added button1 to it and I like to use that button to move the child out of panel1, back "to the desktop&...
0
votes
1
answer
280
views
Unable to find RECT size with DwmGetWindowAttribute
I'm trying to find to find the size of the cmd.exe window which is started as a child. I like to use this size to resize my form accordingly. For some reason the size returned by DwmGetWindowAttribute ...
0
votes
1
answer
295
views
How to resize a parent form and panel to fit a child window
I use the code below to start a cmd.exe windows and move it into a panel after execution. At this moment, the child window is resized to fit into Panel1 on my Form1. I would like it to be the other ...
0
votes
1
answer
17
views
Window layout changes to Aero when moved into panel
I use the code down below to open a cmd.exe window and move it into a panel on my form. I do this so that I can change the title permanently during execution.
When cmd.exe is started, the window ...
0
votes
1
answer
43
views
Renaming a window which runs a character based application
I have an application which starts a character based application and then changes the name of that window. It works, but only until you select a character in that application, at which point the name ...
0
votes
0
answers
109
views
C# Stacking panels vs new form
Still quite new to programming and was wondering whether stacking panels on top of each other and just swapping out which ones are visible, or opening a new form would be most efficient. Or is it ...
0
votes
1
answer
49
views
Creating a button on a from using a button from a different form
Is there any way to create a button on a form using a button from a different form? Here's what I have tried so far and nothing is showing up on the other form:
Homepage homepage = new ...
0
votes
1
answer
378
views
C# open Form in Panel
I have 3 forms. The Mainform, Form2 and Form3.
The Mainform contains a large panel in which Form 2 is displayed when the program is started.
I do that with the following code in my Mainform which ...
1
vote
1
answer
828
views
How do I transition between forms C# Winforms?
This may seem like a rather obvious and extremely newcomer question (and it is), but I've merely been attempting to transition between multiple forms in C# Winforms and somehow managed to encounter ...
0
votes
2
answers
1k
views
Finding an existing panel in form using Controls.Find C# Windows Form
I am making a form system where i need to find a panel to change it's background using string imploration. I have done something similar for a label using the code below where numberEntered is a ...
2
votes
1
answer
147
views
How to make a form in a panel stop moving in VisualStudio?
I created two forms and adding one panel on each. The button from the first form opens the second one, and the button from the second one opens the first form. The problem is that whenever i press the ...
0
votes
1
answer
209
views
Windows Forms Multiple Controls In One
I would like to ask for some advice. I don't have enough experience in windows forms programming so I don't know what is the appropriate way of dealing with this task.
I am currently creating a ...