hi
with visuial studio c# i'm doing
form include another forms
the basic form contain #of buttons if button click basic form hide and new one open
all that is ok
the problem:
if any form (basic or others)
closing by (x) in the bar the form close but it still running
does not actually close
iwant solution please by remove bar or another sugguest one.:-/
help me please :icon_smile:
Roulaa 0 Newbie Poster
Recommended Answers
Jump to Postdoes not actually close
What do you mean by this?
Jump to PostThis means that the application is not closing down and is probably due to the main form being hidden.
When you hide your basic form it is not closed.
When you click on the (x)close button of the other form it closes but I suspect that the main form is …
Jump to PostTo remove the buttons on the title bar of a form set the ControlBox property to false.
However, if you do this then you must make sure that you have some other coding method to close the form.
E.g. a button on form that executes this.Close();
Jump to PostHmmm. You said
give error because the form is opened by another prossece
How are you starting your app?
Also, post me the code for the buttons that open the other forms so I can see what you are doing.
Jump to PostTry changing the code to this
add a = new add(); this.Hide(); a.ShowDialog(this); this.Show();
Also, what do you mean by "open from visuial"?
All 18 Replies
Billa Ustad 0 Newbie Poster
nick.crane 342 Veteran Poster
Roulaa 0 Newbie Poster
Roulaa 0 Newbie Poster
nick.crane 342 Veteran Poster
5oo5ah 0 Newbie Poster
Roulaa 0 Newbie Poster
nick.crane 342 Veteran Poster
Roulaa 0 Newbie Poster
nick.crane 342 Veteran Poster
Roulaa 0 Newbie Poster
Roulaa 0 Newbie Poster
nick.crane 342 Veteran Poster
Roulaa 0 Newbie Poster
nick.crane 342 Veteran Poster
Roulaa 0 Newbie Poster
nick.crane 342 Veteran Poster
Roulaa 0 Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.