i know how to do the link thing that if u click it it closes the window. but im wondering if theres a way to automatically close a window after the php code is done running. cause i have an inbox and theres a link to delete the message if you click on it it will open up a new windows and run the php script to delete the message then it will say message deleted. im wondering how instead if just saying msg deleted it can close itself(the window) as well? does anyone know how? can i do it …

Member Avatar
Member Avatar
+0 forum 14

Hi, I got multiple threads in different classes created in this manner: private ThreadStart someName_TS; public Thread someName_Thread; public void someName() { someName_TS = new ThreadStart(someNameThread); someName_Thread = new Thread(someName_TS); someName_Thread.Start();} } private void someNameThread() { while(!Shutdown) { //Do heavy work } } The heavy work is set to a "while" statement that is always set to false unless the user wants to close the application. Now on my main form I got the following FormClosing code: if (e.CloseReason == CloseReason.UserClosing) { e.Cancel = true; guiThread.closeApp(); } Now where I think I need help is that I just made a …

Member Avatar
Member Avatar
+0 forum 3

Hi, I want to distinguish whether the tab closed by clicking X or by another action (clicking a link, or a button which close the current tab). In Firefox - I followed the stack and saw that the function closing the tab (not by X) is called: onxblDOMWindowClose. BUT in chrome - both cases's stack looks the same. Is there any way I can know how the user close the current tab ? I've googled this question in many versions, but didn't find any answer/work direction. Any help will be appreciated. Thanks.

Member Avatar
Member Avatar
+0 forum 5

I'm having some problems cleaning up some of the processes my windows form application creates. I'm using selenium which starts a process instance of a browser and a browser driver among other things. Selenium library provides a Quit() method which if called inside my running application works just fine at cleaning up. My problem is, that if my app is simply closed via the rex cross I cannot call Quit(). I have tried a number of things like creating a destructor for Form1 and calling Quit there, no luck. Tryed adding the following in Form1 class... private void Form1_Closing(object sender, …

Member Avatar
Member Avatar
+0 forum 1

Friends, In VB.net Form properties, There are Maximize Box and Minimize Box.If we make them false, those prperties will be disabled.Likewise there is a Close Box at the right top corner of the form.How can we disable this? Is there any way at design time to disable this? If not,Can we disable it through code?

Member Avatar
Member Avatar
+0 forum 3

Hey ! Someone can help me how i can close form using another form i try with this code private void button1_Click(object sender, EventArgs e) { Form1 frm = new Form1(); frm.Close(); } but its dont work !!!

Member Avatar
Member Avatar
+0 forum 4

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?

Member Avatar
Member Avatar
+0 forum 3

Hi , I am trying to detect browser close and refresh event when user clicks on browsers button for refresh and close, but still not get any sloution. My project is in PHP. i try the folling code : - window.onbeforeunload = function(event) { alert("dsghjkadghjl"); } $(function () { $("a").click(function() { window.onbeforeunload = null; }); }); $(document).bind('keypress', function(e) { if (e.keyCode == 116){ window.onbeforeunload = null; } else if(e.keyCode==8) { window.onbeforeunload = null; } }); $("input[type=submit]").bind("click", function() { window.onbeforeunload = null; }); at alert i want to show the servey popup. but at the close on window not on refresh …

Member Avatar
Member Avatar
+0 forum 6

I want to close my current window in javascript and want a prompt alert to close or stay here when window is closed by me. i have used onbeforeunload property of body tag.

Member Avatar
Member Avatar
-1 forum 3

I see we can't close / delete our account. And I read a string about why that is and why would we want to? Well it's simple. Since I've been hacked by someone with way more sophositication than this board provides. The potential exists for someone to log onto my old account, and please don't tell me about passwords, since it would seem that the hack occurs down the line, so anything I enter is likely to be captured. Run on sentence I know, but "someone" could access my accoun and post anything illegal and leave me with a world …

Member Avatar
Member Avatar
+0 forum 8

Hi, I would like to know how I would modify the close (X) button in the GUI. For example, I would like to be able to have the user click on it and the program to bring up a message box from the MessageBox::Show() function that I type in. This is in a CLI project in Visual C++ 2010.

Member Avatar
Member Avatar
+0 forum 1

Hello I modified tutorial code found at http://www.codeproject.com/Articles/119293/Using-SQLite-Database-with-Android?fid=1592519&df=90&mpp=25&noise=3&prof=False&sort=Position&view=Quick&spc=Relaxed&fr=1#xx0xx to create an assignment list app, and when I click modify, delete, or cancel it force closes. Here is my DatabaseHelper.java code: public class DatabaseHelper extends SQLiteOpenHelper { static final String dbName="assignDB"; static final String employeeTable="Assignments"; static final String colID="assignID"; static final String colName="assignName"; static final String colAge="dueDate"; static final String colDept="Course"; static final String deptTable="Course"; static final String colDeptID="CourseID"; static final String colDeptName="CourseName"; static final String viewEmps="ViewAssignments"; public DatabaseHelper(Context context) { super(context, dbName, null,33); // TODO Auto-generated constructor stub } @Override public void onCreate(SQLiteDatabase db) { // TODO Auto-generated method stub …

Member Avatar
+0 forum 0

Hello Community, I was making my own custom window and i need help with making it in wpf, i am new to wpf so i don't know much XAML so i was wondering if you can help?, this is what i wan't. In the example i'm using the minimize button. ![ex_1](/attachments/small/3/ex_1.png) ![ex_2](/attachments/small/3/ex_2.png) I hope i made this clear enough. Please help...

Member Avatar
Member Avatar
+0 forum 2

Here I have the classes Logger and Driver. Driver takes the singleton class of Logger, and logs the same statement 10000 times. I want to use this logger, so that it runs in the background and only logs every so often. This will force the program to not use too much cpu time to log data, but rather other crucial tasks. #pragma once #include <deque> #include <string> #include <fstream> #include <map> #include <iostream> #include <pthread.h> #include <time.h> #define MAX_LINES 10000 #define MESSAGES_PER_WRITE 101 namespace App { class Logger { friend class Driver; friend class OrderManager; public: static Logger* Instance(); void …

Member Avatar
Member Avatar
+0 forum 5

I referenced Acrobat.dll in a simple C# Console program, and then wrote a couple of lines of codes to run Acrobat. CAcroApp mApp = new AcroAppClass(); Console.WriteLine("Acrobat is running"); bool bClose = mApp.CloseAllDocs(); bool bExit = mApp.Exit(); However, while CloseAllDocs() return true, Exit() always return false. And accordingly I can still see Acrobat process running in the Task Manager. However, once the program ends, the process also gets killed automatically. How can I make it so that I can close Acrobat process from within the program without having to exit the program as well?

Member Avatar
+0 forum 0

Hello, I'm in my first year in software development program and need help with the following program. I've spent hours working on it. Any help is greatly appreciated. Write a java program that will open a file, read each of the records from the file, use that data to populate a two dimensional array and write the sorted data out to a new text file. Define a class named **Munge** which will do all the 'heavy lifting' in this program. Build your project in NetBeans using the Run - Build Project, or Run - Clean and Build Project menu item. …

Member Avatar
Member Avatar
+0 forum 11

Dear Sir/Madam, I have two form in my application form1 and form2. Here, i want to show the form2 from form1 by using a button. And i want to reverse back to my form1 from form2 using same technique. But i want to close form1 (Not visible=false or hide) after loading form2 and same thing in reverse back also. I have tried like this.... [CODE] 'for from1 form2.show() 'form1.close ' not accepted me.close [/CODE] In my above code whole application is closing. [CODE] 'for form2 form1.show() me.close() [/CODE] Here it is working in form2 I want to know that can …

Member Avatar
Member Avatar
+0 forum 14

Dear all, I built 2 script to manage 2 different frames (which I will then convert to exe with py2exe). Frame 1 (GG1) is like this [CODE]import wx # begin wxGlade: extracode # end wxGlade class MyFrame(wx.Frame): functions here ... if __name__ == "__main__": app = wx.PySimpleApp(0) wx.InitAllImageHandlers() GG1 = MyFrame(None, -1, "") app.SetTopWindow(GG1) GG1.Show() app.MainLoop() [/CODE] Everything is fine. Now I would like to open another independent frame (GG2) [CODE]import wx # begin wxGlade: extracode # end wxGlade class MyFrame(wx.Frame): functions here ... if __name__ == "__main__": app = wx.PySimpleApp(0) wx.InitAllImageHandlers() GG2= MyFrame(None, -1, "") app.SetTopWindow(GG2) GG2.Show() app.MainLoop() [/CODE] …

Member Avatar
Member Avatar
+0 forum 2

I am learning directx from [URL="http://www.directxtutorial.com"]directxtutorial.com[/URL] and when I have compiled one of the samples and run it then close it I get an error message saying "Unhandled exception at 0x010a1883 in test.exe: 0xC0000005: Access violation reading location 0x00000000.". What does this mean? I have checked that I have typed out all the code correctly and that it's exactly the same as on the tutorial. Here it is: [CODE]#include <windows.h> #include <windowsx.h> #include <d3d11.h> #include <d3dx11.h> #include <d3dx10.h> #pragma comment (lib, "d3d11.lib") #pragma comment (lib, "d3dx11.lib") #pragma comment (lib, "d3dx10.lib") IDXGISwapChain *swapchain; ID3D11Device *dev; ID3D11DeviceContext *devcon; void InitD3D(HWND hWnd); void …

Member Avatar
+0 forum 0

I'm using Acer 4637Z, running Windows 7. When I turn on my laptop, it will unexpectedly turn-off at start-up. The hard disk light blinks normally prior to start-up. Virus scan is clean too. Please advice

Member Avatar
Member Avatar
+0 forum 5

Hi, In the past few months I've been learning how to make applications for android by making small games just for the fun of it. I am stuck at the moment at the database object I created to manage the database, specifically the cursor: it won't close. A snippet of my code: [CODE] public class DatabaseManager extends Activity { // the Activity or Application that is creating an object from this class. Context context; // a reference to the database used by this application/object private SQLiteDatabase db; /********************************************************************** * RETRIEVING A ROW FROM THE DATABASE TABLE * * This is …

Member Avatar
Member Avatar
+0 forum 1

Hello Everyone, New to VB.NET... Going through a bunch of tutorials currently. I need help checking if an application is open and then closing it if it is... For an example, I'll use paint or notepad... Does something like this work? [CODE]Dim myProcess As Process = New Process myProcess.StartInfo.FileName = "PaintDotNet.exe" myProcess.Kill()[/CODE] Or should I go this route: [CODE]Private sAppName As String, sAppPath As String sAppName = "PaintDotNet" sAppPath = "C:\Program Files\Paint.NET\PaintDotNet.exe" Shell(sAppPath, vbNormalFocus)[/CODE] What is the best way to check if an application is open first? Struggling with that portion. Thank you very much in advance!!!

Member Avatar
Member Avatar
+0 forum 7

as the title says, "close popup window after submit then redirect to parent". how do i do that? i google it and i saw that some people are using the following code: [B]window.close(); window.opener.location.reload(); [/B] The problem is, i dont know how to use and where them. pls guide me. Ime really a newbie in javascrpt... p.s.: I use [B]window.open[/B] to open the popup window. Thanks! :)

Member Avatar
Member Avatar
+0 forum 6

I have 2 forms right now Form1 and Form2 the default setting start up is Form2. Inside Form 2 there was a button that will release the Form1 button using Form1.Show(). I have now the problem. What I want to do now is to close the Form2 without closing the Form1. inside Form2 button: [CODE=Visual Basic.NET]Button_Click.... Form1.Show() 'End End sub [/CODE] is there any way that solves my problem?

Member Avatar
Member Avatar
+0 forum 4

Hey guys, I want my form to hide instead to close by clicking on the red X button. Because when it's closed the form is deleted. I searched a lot to find a good solution, but nothing works. Many people wrote that following code: [CODE]private void Form1_OnClosing(object sender, FormClosingEventArgs e) { e.Cancel = true; this.Hide(); } [/CODE] would solve the problem. I tried it. My Form is not hiding. I don't know what I did wrong. I would be very happy if you could help me. Thanks :)

Member Avatar
Member Avatar
+0 forum 3

hi, please help me to do this. i want to display one panel on top space. and i want one button on that panel to close itself. please help me. thanks in advance Jack

Member Avatar
Member Avatar
+0 forum 5

Hi! Is there any way to remove a file from a directory when a session ends? (Like when a user closes the webbrowser)

Member Avatar
Member Avatar
+0 forum 9

I am trying to figure out how to automatically close a simple windows application in C. I know how to create the window. But I have no idea how to get it to automatically close when it has opened without user input/interaction. Basically when it is called upon, I want it to close again. Thanks

Member Avatar
Member Avatar
+0 forum 2

Hi there, I wondered if you could help me. I'm currently using Colorbox on a page (which is actually going to appear within an iframe in Facebook) - [url]http://www.rjthompsonmusic.com/facebook/fb_store_music_test.html[/url] I'm trying to get it so that when a user clicks the Buy button on the Colorbox (click the cd artwork to see the colorbox), the Colorbox shuts and the Buy script opens. At the moment the Buy script is opening behind the colorbox. Could you possibly take a look at my code and tell me what is wrong and how to rectify it? I would really appreciate the help, and …

Member Avatar
+0 forum 0

hello everyone. i am making a program which has multiple windows. how do I program that when one window pops-up, the other closes? i am using Microsoft visual studio 2010, in a Win32 application. i am not using a windows form.

Member Avatar
Member Avatar
+0 forum 2

The End.