Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 1,000 results for
form-closing
- Page 1
Re: Closing form with validating procedures.
Programming
Software Development
13 Years Ago
by codeorder
…/archive/2009/06/14/the-validating-event-can-prevent-a-
form
-
closing
-properly.aspx"]here [/URL]and converted it to vb…
Mdi form closing event
Programming
Software Development
13 Years Ago
by Nitin Daphale
//My project is in C#.NET 2.0 I have multiple forms in my mdi container window . [COLOR="Red"]When I tried to close mdi
form
,
form
closing
event of a child
form
(which has current focus/active child ) occurs before the
form
closing
event of mdi
form
.[/COLOR] Can anybody help me out there?
Re: Mdi form closing event
Programming
Software Development
13 Years Ago
by Nitin Daphale
… my mistake...... I was looking for the reason of child
form
closing
so that I can write the code in that manner…
Re: How to recover a form after hiding it!
Programming
Software Development
13 Years Ago
by jacg4
(Yeah It is kind of confusing lol.) But I used the
form
closing
event on the second
form
and passed the first
form
instance to the second
form
constructor hehe, BTW tnx cause I didn't realize i had to reset the second
form
when i close it.
FORM TERMINATED UNEXPECTEDLY
Programming
Software Development
10 Years Ago
by GeekPlease
Good day folks, I just wanna ask what event should I used to detect when a
form
is closed unexpectedly. I want to update the Log In status of a user in my database from 'Logged In' to 'Log Out' whenever a
form
closes the
form
unexpectedly or not. Example, I close the
form
using task manager. How would I trigger
form
closing
event?
Re: Closing form Creates double
Programming
Software Development
13 Years Ago
by Mr.BunyRabit
um.. But in your code, you also create a new
form
, and instead of
closing
it, you hide it. Why my solution worked is because the
form
closing
event is called right before the
form
closes, and in the formcloses i showed the main menu again. I checked it with the debugger and another pc, it works fine. But thanx alot. =)
on app. closing event
Programming
Software Development
11 Years Ago
by Arthur43
…I understand the
form
closing
event. But I want to detect when my app. is
closing
. It needs to…database, and only when the app. is
closing
. I have multiple forms in my application … button. Therefore if I use the
form
closing
event, I need to write the code …updated when the app is
closing
(exit), not when a particular
form
is leaving or closed. …
Re: on app. closing event
Programming
Software Development
11 Years Ago
by Reverend Jim
You can put the common code in a module then just make a call to that code in the
form
closing
handler for each
form
.
Keeping parent form 'enabled' when opening a child form
Programming
Software Development
8 Years Ago
by weekendrockstar
… a click event on a button in the info
form
closing
the new
form
. This does make close the info window but the… window other than
closing
it Me.Focus() Me.Enabled = True End Sub 'All of the code from info window
form
. Handles position…
Don't want to close the Form immediately
Programming
Software Development
16 Years Ago
by zawpai
… suggestions about
Form
closing
? My problem is that I will do the checking before
closing
the main
Form
whether the …= False Then MsgBox "Don't close the
Form
and save the data first." Exit Sub Else… MsgBox "Close the
Form
" End If End Sub Pls give me …
Detect the closing of pop out form and perform action on the user contro
Programming
Software Development
10 Years Ago
by taekiewzz
Windows Application
Form
I have a user control called 'ucForm', this 'ucForm' have …' and what event and method should used to detect the
closing
of the 'pForm' and perform passing value. Thanks Note: I…: http://msdn.microsoft.com/en-us/library/system.windows.forms.
form
.
closing
.aspx
Opening an existing form
Programming
Software Development
16 Years Ago
by SiPexTBC
… click that brings up a new
form
. This
form
runs a process. On the
form
(second
form
)
closing
event, I have [CODE]e….Cancel = true; Hide();[/CODE] So now the
form
that runs the… every time. How can I show an existing hidden
form
? Sorry if I seemed unclear.. let me know. …
Controlling Form by Custom control
Programming
Software Development
9 Years Ago
by docfnt
…for docking options) My problem is the red_pb ("
Form
Closing
" picturebox) I can't seem to conjure …/SizeMode-Maximized (yellow_pb), as well as the Minimize
Form
control (green_pb). The entire reason for the existance …event. I have tried : ParentForm - nope... Parent.
Form
- nope... Form1 - nope...
Form
= Form1 - nope... I have no idea how…
Immediately close form after saving
Programming
Software Development
11 Years Ago
by Gus_19
I have my
form
checked if it's dirty when a user goes to … of the save I put in me.close(), but another
form
closing
event is triggered. Is this the correct way to dictate… having the
form
close immediately after saving the data or is there a…
Close(X) get Form stuck with BG-Worker running
Programming
Software Development
14 Years Ago
by Lukezzz
… you press the closebutton on the
form
in the upper right corner. This makes the
form
stuck completely. The problem is that… this problem. I try to put: Application::Exit() in the
Form
Closing
event but that doesn´t work either.
Re: Overriding the Close button an a C++/CLI Form application
Programming
Software Development
14 Years Ago
by jonsca
….) Under behavior, double click the empty cell next to
Form
closing
. Now you'll have the proper event handler added and …
Re: Overriding the Close button an a C++/CLI Form application
Programming
Software Development
14 Years Ago
by BobFX
….) Under behavior, double click the empty cell next to
Form
closing
. Now you'll have the proper event handler added and …
Re: how to fire a method on a different form when closing a form
Programming
Software Development
14 Years Ago
by mikiurban
… solved, but if you really want a
form
closing
to call a function in another
form
, you should create an Event object with… do something) in your main
form
, and pass that event to the child
form
. In the child
form
's Form_Closing() function, call RaiseEvent…
Re: Passing values to a previous form
Programming
Software Development
12 Years Ago
by d00garuz
… In form1, make a new eventhandler that handles
form
.close(): [code=c#] form2.FormClosing += new FormClosingEventHandler…//the last thing that will happen just before the
form
(form2) closes. //for instance: myForm1Textbox.Text …. 4. your
form
-
closing
eventhandler is called. 5. in this case, the
form
-
closing
eventhandler got some …
Re: Disable Close button on form
Programming
Software Development
14 Years Ago
by Lukezzz
…] [B]bool can_exit;[/B] [/code] In the
closing
event of the
form
, I have put this code: [code] [B]…(true);[/B] [/code] In the Load event of the
form
, I have put this code: [code] [B]can_exit …=cikara21;868082][code=c++] // extra variable Boolean can_exit; //
form
closing
if(!can_exit) e->Cancel::set(true); // button exit …
Re: button with an X at the upper-right corner of the form, how to catch this event @ C#
Programming
Software Development
14 Years Ago
by Diamonddrake
… that close call, either by wndproc or by a simple
form
closing
event, the trick is to set a flag, just a… its true, cancel the
closing
and handle your business, if its false, do nothing and allow the
form
to close. when you… variable. else you can create a public method for your
form
called DoClose() or something and change the flag there and…
Re: On closing a form reload another form
Programming
Software Development
13 Years Ago
by GeekByChoiCe
Add into the
Form
closing
event the following code [CODE=vb] dim frmA as new FormA frmA.show [/CODE]
Re: Disable MDI parent form button from MDI child form
Programming
Software Development
14 Years Ago
by Pgmer
That button should be publicaly decalred. if it is publically availabele then in child
form
closing
event Mdiform.cmdmenu.disabled=true
Re: Exit main loop of C++/CLI form
Programming
Software Development
13 Years Ago
by jonsca
… the Form1.h [Design] tab selected, click on your
form
, go over to the properties pane on the right side…++ window, click on the lightning bolt, scroll down to
form
closing
and double click the cell right next to it. That…]http://msdn.microsoft.com/en-us/library/system.windows.forms.
form
.
closing
.aspx[/url] for the specifics. Any references you find…
Re: Event for closing the form
Programming
Software Development
12 Years Ago
by abelLazm
Check [URL="http://msdn.microsoft.com/en-us/library/system.windows.forms.
form
.
closing
.aspx#Y228"]this link[/URL] for details of form_closing event
Re: Detecting mouse button down & up events on the system menu of form.
Programming
Software Development
10 Years Ago
by priyamtheone
…. any of the above three techniques) to close the
form
or is doing so programmatically. If the system command is… WM_SYSCOMMAND) && ((int)m.WParam == SC_CLOSE)) { MessageBox.Show("
Form
closing
by system command. Take necessary actions here..."); } base.WndProc…
Re: how to call another form
Programming
Software Development
15 Years Ago
by tuse
let us say you have a login button on the registration
form
which gets enabled on validation of registration details. code for login button- form2.showdialog() in the form_load for the 2nd
form
, do form1.hide() and in the
form
closing
event for the 2nd
form
, remember to do form1.close()
Re: how to call another form
Programming
Software Development
15 Years Ago
by tirso
… us say you have a login button on the registration
form
which gets enabled on validation of registration details. code for… the form_load for the 2nd
form
, do form1.hide() and in the
form
closing
event for the 2nd
form
, remember to do form1.close…
Re: Disable Close button on form
Programming
Software Development
14 Years Ago
by cikara21
[code=c++] // extra variable Boolean can_exit; //
form
closing
if(!can_exit) e->Cancel::set(true); // button exit click can_exit = true; this->Close(); //
form
load can_exit = false; [/code] hope that helps..
Re: How To Pop up Form
Programming
Software Development
12 Years Ago
by phoenix911
… are going to have to add a NotifyIcon to your
form
, and then set the BalloonTipText/Title and display it when… might want to do this on the
form
load event and hide it on
form
closing
. NotifyIcon1.Icon = New System.Drawing.Icon("…
1
2
3
17
Next
Last
Search
Search
Forum Categories
Hardware/Software
Programming
Digital Media
Community Center
Latest Content
Newest Topics
Latest Topics
Latest Posts
Latest Comments
Top Tags
Topics Feed
Social
Meet People
Forums
Top Members
Community Functions
DaniWeb Premium
Newsletter Archive
Markdown Syntax
Community Rules
Developer APIs
Connect API
Forum API Docs
Tools
SEO Backlink Checker
Legal
Terms of Service
Privacy Policy
FAQ
About Us
Advertise
Contact Us
© 2024 DaniWeb® LLC