VS 2008 Close An Application When User Shutsdown, Restarts, Log Off Or Switches User?

Aug 30, 2010

How can i close my vb.net application when user shutsdown, restarts, log off or switches user?

View 6 Replies


ADVERTISEMENT

Give The Form A Command When User Switches To Another Application?

Apr 20, 2009

let's say i have this application running, preset size. and there are other applications, like, firefox, vb, etc. in the background where i can click on them to bring them to front and use. now, when that's done, i'd like my application to minimize by it's self instead of just becoming a application that got sent to the back of another one.. the minimize is just to get me started, since i'll probably resize it to a button or so.just a squirrel looking for my nut...

View 4 Replies

[2008] Notify Icon When The User Clicks The Close Button That It Doesn't Close The Form?

Jan 17, 2009

I have set up a notify icon for my form. I want to make it so that when the user clicks the close button that it doesn't close the form it just takes it to shows the notify icon. They can exit the program from the notify icon. Can someone tell me how to keep it running?

View 2 Replies

Asp.net - Create A Querystring So When A User Switches Languages, The URL Changes To ?lang=NL?

Jan 30, 2012

I'm trying to create a querystring so when a user switches languages, the URL changes to ?lang=NL, for example. I have this in the code behind on homepage.master (VB, NOT C#):

Me.Request.QueryString("lang") <> Session([Global].SESSION_KEY_CULTURE) Then

Visual Studio underlines it in blue. When I hover over the left side of the statement, it says "Property Value Must Assign to the property or use its value" When I hover over the right side of the erred statement, it says, "End of Statement Expected".I'm not sure if the code I was given is C#, but when I use the Teleflex translator to check, it says "EOF Expected" and won't translate. All of this is tied into 3 classes I created, BasePage.vb, Culture.vb, and Global.vb. But I think it's just this line that's screwing everything up.

[code]...

View 3 Replies

Datagridview - When User Switches Around Columns It Won't Print In Current Order

Oct 27, 2011

When user clicks on a button on my form, it sends the datagridview on that form to another class that [basically] does a bunch of stuff and shows a dialog with a print preview. Everything works perfectly fine, except that if a user switches around columns it won't print them in that current order. For example, if user moves the LastName column before FirstName column, then it should print in that order, but it prints in the column order that the datagridview was originally loaded. The dgv1, is the datagridview that was originally loaded, not the current one. [Code]

View 10 Replies

Application To Close If The User Did Not Do Anything For A Cretin Period Of Time?

Jul 21, 2009

I'm making a financial application, I need the application to close if the user did not do anything for a cretin period of time.

View 9 Replies

Give Prompt When User Clicked The X To Close Application/Window?

Apr 16, 2011

I know how to add an exit button with a prompt. However, I do not have the slightest cluse as to how I can add this same functionality to the window so that if the user clicks the X in the upper right corner, there is a prompt message confirming the user needs to exit.I added a form closing event but getting wrong results, the form closes if I click no and message window does not leave when I click yes to stay.

Code:

Private Sub frmTest_FormClosing(ByVal sender As Object, ByVal e As System.Windows.Forms.FormClosingEventArgs) Handles Me.FormClosing
If (MessageBox.Show("Are you sure you want to exit?", "Close Form", _
MessageBoxButtons.YesNo, MessageBoxIcon.Question) = _

[code]....

View 5 Replies

VS 2008 - Form Close Events To Call Exit With User Confirmation

Sep 3, 2009

I am trying to close my application and I have coded on the form closing, form closed events to call an exit form which asks the user for confirmation to exit or not. All works fine. When I press the X button on the winform things act different. On the main form where I press the X btn I store some user ID data that I use throughout the app. If I press cancel on the exit form that data is lost from the main form and cannot be used afterwards. So if the user pressed by mistake the X btn and then presses cancel on the exit form the application loses some stored data and many functions stop working.

View 4 Replies

VS 2008 Handle Saving User Control Settings On Form Close?

Dec 27, 2009

What is the correct way to handle saving user control settings on form close. I have a tabcontrol that a user can add tabpages during runtime. The user control has a few controls (listbox,combobox,textbox) How can I save the created tabpages and the data in each control in the usercontrol? Below is how I am calling my usercontrol

Code
Public Class TabPageEx
Inherits System.Windows.Forms.TabPage

[code]....

I seem to be a little lost as most documentation seems to suggest that I can not save usercontrol settings in the app.config. I have played around with the solution expl. settings tab without much success. But, then again I may be going about it all wrong. So, I am looking for a little direction on the best way to handle this on form close.

View 4 Replies

Save Application Settings But For USER But Cannot Find The User.config File

Aug 7, 2009

in vb.net i am trying to save application settings but for USER but i cannot find the user.config file

when does this file get created?

i searched my entire hardrive. i also searched the entire project.

View 2 Replies

Multi-user Application - Updating All Clients When A User Updates Data (push Vs Pull)?

Aug 26, 2009

I am designing a fairly small application to manage a waiting area for a clinical department. There will be a receptionist who books appointments and updates exisiting appointments to say that a patient has "Arrived". In seperate rooms will be nurses who call patients who have "Arrived" and update the appointment as "In Session" and finally as "Discharged". The appointments are viewed in a flexgrid with nurses across the top and time down the left, patient names are displayed at the relevant times and the cells are shaded a colour to represent the current appointment status ("Booked", "Arrived", "In Session" and "Discharged").

I am using SQL Server as the back-end and Visual Basic 6 (I know) as my front-end.I have been told that there will be 2 or 3 nurses plus the receptionist logged in to the system but I would like to cater for growth.My question is what is the best mechanism to use in order to reflect the status change made by one user on the screens of the other users currently logged in?

I have been thinking about using a timer to refresh the data at a set interval but I do not want to keep hitting the server excessively (although what is considered excessive? we would be talking about a call for data every 60 secs per user). Plus the server could be serving data for many other applications so this is another consideration.Alternatively I have been thinking about sending some kind of message via Winsock to the other users notifying them of data changes as they happen. I don't have a lot of experience with this and am concerned about clients not receiving messages and users seeing old data. It also seems strange to me that once the days appointments have been retrieved from the database that "in theory" a client could go the whole day without having to query the database again to pick up changes - kind of scary.Some information on the data:We would probably be looking at around 100 appointments per day We capture patient name, date of birth, date and time of appointment and appointment status.What is the standard approach / best practice for this kind of scenario?

View 6 Replies

AutoLoad - User Load Application Will Automatically (without Prompt, Or User Selecting) Upload All Files In A Folder

Jun 13, 2010

How can I do it so every time the user loads my application it will automatically (without prompt, or user selecting) upload all the files in a folder i select beforehand and add them into ListBox1

View 16 Replies

Get The WindowsIdentity Object For Logged-on User In An Application Running As Another User?

Jul 18, 2011

I'm running an application under an account that is not the account logged-on to the PC.

Within the application I need check if the logged-on user is a member of the Administrators group. Below is the code I'm using. From what I've read, WindowsIdentity.GetCurrent() should return an object associated with the logged-on user. It doesn't, it returns the same information as the call to System.Threading.Thread.CurrentPrincipal. Which is the information associated to the ID running the application, not the logged-on user.

[Code]...

View 8 Replies

Application For User - Run As The User And Preserve Individual Settings

Jun 5, 2010

I am attempting to create an application in an attempt so it could be run as the user and preserve individual settings, by this what i am trying to achieve is when the application is installed, it is installed once but each user has their own settings saved within their own profile - a bit like Office applications. How could i start with this?

View 8 Replies

Application Can Only Be Installed On A User By User Basis?

Jan 6, 2010

I have a few programs published via ClickOnce. These are highly specialized programs, and are only used by a relative handful of people, but the set of users is likely to change, and is spread over a fairly wide geographical area. The major advantage of ClickOnce....ok, for me, the ONLY advantage of ClickOnce, is that I can create updates and have them (mostly) installed when the end user runs the program. Over the brief time that I have used it, I have encountered these aggravations regarding ClickOnce:

1) The application can only be installed on a user by user basis (it can't be installed for all users at once). I understand why this is done for a general solution like ClickOnce, but it is certainly an aggravation.

2) Updates don't always appear to happen. Usually, the updates do happen when a person starts the program, but a fair number of times, the update isn't noticed, or recognized, or something. This causes the user to continue with the old version, which makes them think that I didn't fix the bug they had, which causes them to give me a raft of excrement, which results in me flipping them the bird. Much hilarity ensues (fortunately, I'm friendly with my entire user group, so this is a fairly accurate acconting of the sequence of events, except that I just laugh at them rather than replying in sign language).

3) Certificates expire in a year. Certificates are a great thing...for some situations. In my case, an alternative seems like it might be better.

4) Some settings in the manifest are so doggone hard to fix that I've nearly given up. I changed the URL that ClickOnce was supposed to go to for updates, and found it impossible to change the program to find the new location. It had to be there somewhere, and I found several candidates, but never could find the critical one.

Because of these issues, I have been tempted to write my own replacement. There are a few issues that I'd like some commentary on. For one thing, security is an issue that is hard to pin down. None of the data I am dealing with is worth a second thought. No cracking of that data would harm anybody or any thing. However, my first thought would be to have people install an app that would go to a web service to check for the existence of an updated version. If one was available, then the existing program files would be overwritten by the new files. If one was not available, then no overwrites would take place. Lastly, if the service couldn't connect, then no overwrites would take place (of course). If the files were compressed for transport, it would be kind of difficult to intercept and inject a different program into the transport stream, so the only weakness that I can see would be if somebody hacked the server that held the new version, and replaced it with something else. What am I missing here?Also, has anybody done anything like this, and if so, what else am I overlooking?

View 36 Replies

Get User Id Of The Current Login User In Application

Sep 16, 2010

In my application I have a several type of user could be log in. My purpose is to have a restriction with other menu to show on or off. In php I used a session to handle that user id. In vb.net how can assign user id and retrieve anytime I need it in every user that has been logged in, so that I can check the user type and do some action.

View 8 Replies

VS 2008 (TcpClient) User/User Connection Circular Reference?

Aug 22, 2010

I have multiple TcpClient connections to my program. The connections exist as instances of a UserConnection class, that fires events on logon attempt and when receiving messages. My program also holds a Users object, which is a list of a User class objects, holding saved data (username, password etc) for each user that is allowed to log in.

It seems convenient to put a reference object of the respective user, in the UserConnection class (when successful login is verified). Hence, when an event is raised by the connection, the connection object will hold the user reference. As any event handler logic will need to know which user is responsible for the event.

If I don't make a user reference in the UserConnection class, then I need to loop through the users (less than 20) each time, to find the correct user. Not a big deal maybe, but i'm looking to understand how it would be done by an experienced programmer.

When data needs to be sent to a user, I need to access a UserConnection object. Hence the User class also holds a reference to the UserConnection class.

View 3 Replies

Make A Application That Will Bind User Desired Keys To User Desired Text

Dec 9, 2011

I am trying to make a application that will bind User Desired Keys to User Desired Text. This is what I have done so far, it is not very much but it keeps crashing and visual basic is not telling me anything is wrong with it. I basically just want the user to be able to select a hotkey from a combobox. [code]

View 3 Replies

Application Restarts Itself On Failure

Sep 19, 2010

I have an app and it fails randomly sometimes because my internet is not so fast (my app uses the webbrowser). How can I make my app restart itself it it fails? Or make my app click button1 on my form if it fails.

View 1 Replies

VS 2008 Logout User On Application Crash

Mar 15, 2010

I have developed a server-client application. The program has multiple users each uniquely login in with their credentials to the system. The problem arises when the application crashes, pc shuts/restarts, the user then cannot log in as it is showing is still logged in. This is true because the last code from the program, which logs out the users , is not run because the program crashed or the pc , that is intalled on, lost power. Is there a way to go around this problem. I cannot deploy the application until this is fixed. I have placed on application exit and on last form`s closing event to logout users. It still keeps them logged in in some cases as I already stated previously.

View 15 Replies

VS 2008 User Updating Application Files?

Apr 26, 2011

way to update my application executable, and a few other application files for a simple application updater that I am using in my application. The code updates the files (including the executable, manifest, and a few other files), but on Windows Vista and Windows 7 machines you must run the application as Administrator in order for it to update the files in the application folder.

View 2 Replies

Close A Folder Opened By User?

Oct 8, 2009

i am stucked with a procedure in my app. this procedure do monitor application.startuppath folder. if this folder is opened by user my application should close it.i have tried it to be done with system.Diagnostics.process. but wont be able to make it possible.

View 9 Replies

Close Program When User Presses Alt+X?

Nov 13, 2011

I have an assignment from school where the program is supposed to close when the user presses Alt X.

I have done this using Java but that was a long time ago and I can't remember how I did it. How do you do it in VB?[code]...

View 5 Replies

C# - Detect When User Close Browser Window?

Nov 4, 2009

I have Example and i need to kill the session when user close his browser window.
i tried page_unload() not working. the example is:i have parent windows and window will open from it i need to delete session when user close the child window.

View 6 Replies

Force User To Close Window Before Proceeding?

May 9, 2012

this maybe an easy one for mos of you! I have a windows that is displayed as full screenThe window contains a series of images (movie posters) and the name below it. When you user clicks on a movie poster a new window appears (smaller window) in the middle of the screen.I want to force the user to close close on the small window before procedding. Currently if the user clicks outside the small window the full screen window comes to the front thus hiding the smaller window.

View 1 Replies

Show A Message Box When A User Close The Form

Aug 12, 2010

I am trying to show a message box when a user clicks the red cross in the top right hand corner of the screen (to close the current form) and I want to code the OK and Cancel buttons so that when the user clicks OK butto the form closes. This is what I have

[Code]...

View 4 Replies

DB/Reporting :: Using SQL 2008 Express With A Multi User .NET Windows Application?

Mar 26, 2009

I'm using SQL 2008 Express with a multi user VB.NET Windows application. Do I have to add each user to the SQL user account? Does NT AuthoritySYSTEM work? I do not know how this works. So far I have NT AuthoritySYSTEM in the Security-Logins of the Server. But do I have to add it also in the database? In the databse Security-User, I have the following:

[Code]...

View 1 Replies

VS 2008 Creating Folder Structure In User's Application Data?

Mar 16, 2010

I want to store my log files in the user's Application Data folder (to avoid all the hassle with Windows 7/Vista UAC permissions). By default, though, the app creates the folder structure like thisAppData/CompanyName/AssemblyName/AssemblyVersion/I just want a single folder without the AssemblyName and AssemblyVersion. Other than removing that info from the project, is there any other to just create a single

View 1 Replies

Close The Form Unless The User Adds Text In Txtprojend?

Aug 10, 2010

I have a Save() function as shown below;

Code:
Public Function Save() As Boolean
Dim valid As Boolean = True
Dim Message As String = String.Empty

[Code].....

What I want to do is when The toolbarbutton1 is clicked it checks for the
Save () - if txtprojend.Text = "" then it displays the message. So far, it does that but then it closes the form. I don't want it to close the form unless the user adds text in txtprojend, as it is a mandatory field.

View 2 Replies

Disable A Form From Moving Still Allowing The User Close It?

Jan 21, 2010

Is it possible to disable a form from moving still allowing the user close it? How?

View 10 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved