Forms :: .NET PC Booking Application?

Oct 11, 2011

I am making a vb.net client application that works with a php based website where users can reserve a pc for themselves at a certain day and a certain time. I have made the application in such a way that upon logon, it queries the database and finds the person who booked pc at this time and compares the username to the person logged on. If it matches a welcome screen is showed with additional options. Else a window is shown which says "This PC is already booked. You will be logged of in 10 seconds".

The problem i am facing is, i have coded the close button to logoff since i dont want user to bypass this part, but yesterday i saw that if i close the app directly from taskbar (processes) it just closes.without logging him off.How can we code or is there anything we can do that, even if he closes the application through task bar there is still an instant log off?

View 6 Replies


ADVERTISEMENT

Hotel Booking System Programme - When Booking Button Is Clicked It Can Search A Database And Find The Best Suited Room

Jun 22, 2010

I have created a hotel booking system programme. However, I am puzzled as to how when the booking button is clicked it can search a database and find the best suited room (RoomType) and make sure that it is available (Date of Departure < system.date).

This data is held in two tables (Access):
Booking:
BookingID (Primary Key)
CustomerID (Foreign Key, Table:Customer)
Date of Arrival (Date)
Date of Departure (Date)
RoomID (Foreign Key,Table:Room) Room:
RoomID (Primary Key)
RoomType (Text)
RoomPrice (Currency)
Floor (Number)

This has all got to be done within a single button click. Any ideas as to how I can place this into my vb code?

I have a rough query for picking a room that is best suited:

Code:
SELECT roomID
FROM Room INNER JOIN Booking ON Room.RoomID = Booking.RoomID
WHERE Room.[Room Type] LIKE '" & Room_TypeTextbox.Text & "'"
AND Booking.[Date of Departure] < Now()

I have been trying for a while to get it to select a single matching record as there is a high chance that this query will return multiple records but im unsure on how to deal with that.

View 16 Replies

.net - Avoiding Overlapped Bookings In Booking System Application?

Aug 22, 2011

If a booking is present in database on 12/27/2011 at 5:00 pm for 2 hours and i try to make a new booking on 12/27/2011 between 5 to 7 pm then my code generates an error message. Even if i try to book at 4:00 pm for 2 hours it generates an error message as the 2nd hour will be overlapped here with already made booking from 5:00 to 7:00.

Now here comes the problem part. When day changes it doesn't generate error message i.e. IF a booking is there on 12/27/2011 at 11:00 pm for 3 hours then it should not allow new booking till 12/28/2011 2:00 am but when i try to book 12/28/2011 at 1:00 am it saves it in the database and doesn't generate an error message. I want an error message generated in such a case.

I am using two separate fields in database one for time and one for date. Both of them have DateTime datatype.

newtime refers to time on which i'm trying to make new booking addednewtime refers to time after adding the duration to time on which i'm trying to make new booking

[Code]...

View 1 Replies

C# - .NET Based Desktop Open Source Booking Application?

Feb 11, 2011

Anybody know of an existing open-source booking systems in Sports Clubs or Leisure Facilities based on .NET?

View 2 Replies

IDE :: Excluding Forms To Convert A Window Forms Application To Class Library Application

Jan 16, 2012

I am not able to find the Exclude Command in VB 2010 Express. I have no idea which version of Visual Studio it is working with. I've got one 217MB VB 2010 Express file and many 2008 VB Express files with one of them measuring 31 MB. There many other SQL files and .Net Files.

View 4 Replies

Asp.net - Create And Share Bus Booking API?

Apr 16, 2011

I have created a Bus Booking Website [URL]. I want to share the bus booking form with other sites so that they use our services.How can do I this using vb.net?

View 2 Replies

DateDiff - Put Together A Booking System

Aug 22, 2010

I am trying to put together a booking system. I have managed to program rates, discounts etc., and am now onto calculating the nights for the stay. On my form I have two datetimepickers, and a button. The code I have entered is: (I am using Visual Basic 2008 Express)

CODE:

This works well when getting how many nights between two dates in the same month, but if I enter say 30th August to 2th September, I get a -28. Is there a way to get the number of nights booked between two different months?

View 3 Replies

Develop A System For Booking Cars?

Mar 1, 2011

I want to develop a system for booking cars for example. Suppose that one customer wants to book a car and this is the last one.Another customer searches with the same criteria and is finding this car too. How I am able to stay away of this situation?I don't know if I explained well... Imagine when you book tickets. How they can 'lock' the last ticket (or maybe the one that someone is viewing it) and make it unavailable to customers that have browse the site after?I use C# and it's about a very simple web service.

View 3 Replies

Insert A Booking And Viewing In A DataGridView 2010?

May 27, 2011

I am using Visual Basic 2010, I have Created A DataSet Called "GaryTPHDB. and from that, I have created A form Called "Booking Form" , And I have also created a "Daily Jobs Form" And on this DailyJobsForm there is a DataGridView1, and at the begining of the row I have inserted a button called "View Job" and when I click this Button I want to View the whole job in the Booking Form so a user can edit the booking.

And at the end of the DataGridView1 Row, I Have inserted Another Button called "Allocate" There Is also a ComboBox. that a user can select a driver and when a driver is selected. I want the user to click the Allocate Button to update the dataset/Database with the selected driver. then remove the row from the DataGridView1. the DataGridView1 should be refreshed each time a row is remove.

View 7 Replies

Booking Details Arent Being Shown In The Main Menu Screen?

May 26, 2011

im writing a room booking application, and after i've entered all the details for a booking, which looks like this;

'Declare Variables
Dim sUser As String
Dim sRoom As String[code].....

and now the problem is, its not working , its all going through ok and im not getting any run time errors. But the booking details arent being shown in the main menu screen.

View 11 Replies

Record Deletion - Customer And Booking Data Sets On My Form

Mar 15, 2012

I have a customer and booking data sets on my form. customer id is a foreign key in booking table .but when i click delete button. it gives me an error: The DELETE statement conflicted with the REFERENCE constraint "FK_Booking_Customer". The conflict occurred in database "photoshoot", table "dbo.Booking", column 'Cust_id'. The statement has been terminated. Its a one to many relation between customer and booking. one customer can make many bookings each booking will belong to only 1 customer.

View 1 Replies

Basic Application(windows Forms) Doesn't Exit Properly After Navigating Through Forms

Jul 9, 2010

I have a basic three form application. It doesn't seem to close after navigating through forms. If I were to open the application, and the main form is displayed. If I press the X button, the application closes fine(Goes from processes) If I were to open the application, and then navigate from the main form to another form using me.hide & form1.show, and press the red X on Form1, the application again, closes fine.

[Code]...

View 6 Replies

Application That Has Multiple Front Ends Developed Using Windows Forms / WPF / ASP / Compact Framework Mobile Forms

Apr 9, 2010

I have the requirement to create an application that has multiple front ends developed using Windows Forms, WPF, ASP and Compact Framework Mobile Forms.I would like to be able to create a series of obejct representing the business logic and have this logic accessible from the various front ends available. My first thought was to use remoting as I'd like to be able to pass the business objects back and forth between client and server but the compact framework doesn't support remoting and also transferring a full framework business object to a compact framework business object doesn't seem possible.My next thought was to use web services but again the passing of business objects seems to be very hard to accomplish. Without doing this I would have to create individual web methods for each business operation.

Finally my next option is to use sockets and write the whole client/server logic within some classes and expose them to the UI/Business layer. My only problem with this is it is not scaleable should the number of clients increase dramatically whereas using remoting or web services I can host the solution via ASP.Net.Does anybody have an ideas on the best way forward for this or even have any input on how they would write an application that required a windows form, wpf, asp website and mobile device GUI all of which want to use the same business logic?

View 3 Replies

Application Does Not Return From Call To System.Windows.Forms.Application.DoEvents?

Aug 2, 2011

I have a windows forms application written in VB.NET which scrapes information from serveral web pages (who doesn't right)? Anyway, I am having problem with one particular site where partway through the page navigation my application hangs. When I press pause (or break) in the debugger, it stops on a call to System.Windows.Forms.Application.DoEvents.

Resuming execution shows that it really is stuck on this line (it does not reach the next line of code). It also hangs about the same point each time I run it (at least its consistent). Since System.Windows.Forms.Application.DoEvents yields to other threads on the same processor and then resumes execution of the current thread, I think the problem is that some other thread is not behaving well (not returning from some event handling code). I thought Windows 7 was pre-emptive, which makes me
doubt that theory but I really don't know.

[Code]...

The program scrapes somewhere between 12 and 14 pages before it gets stuck on the call to DoEvents. Does anyone have a clue why this would happen? Why would any call to DoEvents hang?

View 1 Replies

Re-direct Output From A Console Application To A Textbox In A Windows Forms Application?

Sep 14, 2010

I am trying to use the System.Diagnostics.Process class.I have the following Windows Forms application. It consists of 1 Button and 1 TextBox. The only code is for the button click event as follows.

Public Class Form1
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim myProcess As New Process()

[code]....

View 2 Replies

Convert A VB2008 Console Application To Windows Forms Application

Feb 7, 2010

I have a fully functional multi-threaded VB2008 console application that I need to convert to a windows forms application. I am doing this to add additional functionality at a later time. How would I go about doing this?

View 9 Replies

Forms :: Transfer Console Application To Window Form Application

Dec 22, 2011

modify console application below to window form application for me.I've tried by myself for million times, but i couldn't console application.rar?

View 2 Replies

Create Website Involving Payments Plus Some Data Entry Eg Booking Of Some Facilities With The Main Data Kept At A LAN Window System?

Oct 26, 2010

create website involving payments plus some data entry eg booking of some facilities with the main data kept at a LAN window system.

View 4 Replies

Converting MS ACCESS Application To Windows Forms Application

Jun 23, 2010

My boss gave me an MS Access application that was developed by our former colleague. He wants me to convert that application to VB.Net Windows form application. I went through the MS Access Application. It contains tables, queries, forms, reports and macros. I could not find the programming (Where is the code written in MS Access?). My boss wants the windows application to be same as the MS Access Application (both in design and logic). I don't how will i develop the windows form. How can I achieve this?

View 2 Replies

Converting MS ACCESS Application To Windows Forms Application?

Jun 23, 2010

My boss gave me an MS Access application that was developed by our former colleague. He wants me to convert that application to VB.Net Windows form application. I went through the MS Access Application. It contains tables, queries, forms, reports and macros. I could not find the programming (Where is the code written in MS Access?). My boss wants the windows application to be same as the MS Access Application (both in design and logic). I don't how will i develop the windows form.

View 4 Replies

Forms :: Two Forms Application Is Closing

Dec 12, 2011

I have two forms and a button on the first form. What i want is when i click the button the second form to show and the first one to close. But this isn't working with: Form2.show() Me.close All the application is closing with the code above.

View 4 Replies

Forms :: On Top Of Application Only

Mar 17, 2011

I need a form to only be shown on top of all the other forms on my application, but not any others.

View 1 Replies

Run Application Without Any Forms?

May 4, 2009

I have a VB.NET application that will be launched from Windows Scheduler and will perform periodic database operations to a Sybase ASE system. I performed development and debugging by launching the code from a button on a form, but now I need for the application to run without intervention. Is there a class I can place the code under instead of the Form class I started with? How do you run VB.Net code without launching from a form.

View 3 Replies

Application Consists Of About Ten Forms So Far?

Apr 12, 2010

My application consists of about ten Forms so far. One of the forms gives the user the option of choosing the language that all the text on the forms will use. Each Form has a declaration like this

[Code]...

I have this declaration (Public myLanguage As New DataClass.LanguageStrings) where I had intended to keep my working copy of the chosen language strings, so that each Form's Constructor could set the xxx.Text properties using this type of assignment - ... = myLanguage.yyyStrings.xxxString. However, the IDE throws an error at the first occurrence of "myLanguageSet" in the module SetLanguages above, saying that I should use "New" to declare an instance which I can then use, despite the line above that point where I thought I was doing just that. It doesn't seem to matter where I put the declaration of myLanguageSet, I just can't avoid the "New" error being thrown.

View 1 Replies

Apply Changes To All Forms Of An Application

Jun 21, 2010

Is there a way to apply any changes made to an entire application and not just the open (active) form that you are in? I.E. I change the backcolor to a color from a color dialog. I want that chosen color to be applied to all the forms' backcolor in my project. Can this also then be applied to all the other controls' backcolor? The code that I posted works but all forms and controls have to have the changes applied to each one separately.

[Code]....

View 1 Replies

Forms :: Get Key Presses On Application

Jan 4, 2012

I want to get key presses on my application. The problem is when I use API.UnhookWindowsHookEx and after sometime to restart hooking as follows, application does NOT gets the key presses anymore. [code]

View 1 Replies

Loading .net 3.5 Wpf-forms In A .net 2.0 Application?

Aug 19, 2009

I'm trying to load and host a WPF control in a .net 2.0 windows forms application. The WPF control should only be loaded if .net 3.5 is installed.

I found a link to Hosting WPF Content in an MFC Application and that is about what I'm trying to do but my C++ knowledge isnt sufficient to be able to 'translate' it to .net.

here is another link: Hosting WPF Content in a Java Application that doest the same again but I dont know where to start writing that code in .net.

View 3 Replies

Multiple Forms In One Application?

Jul 28, 2009

Is it possible to make an app where, for example, I will make one form which will have buttons linking to a number of other forms which take the place of the first form?To use a bad example to illustrate what I mean, where it will be like reaching the load game screen in Pokemon on Gameboy; I have multiple options that will all lead me to a new form (in the same window).

View 1 Replies

Only Having One Tab On The Taskbar For All The Forms In Application

Dec 16, 2009

Is it possible to make my app only have one tab on the taskbar? I have already created all the forms and now i am 'tidying it up' and i want there to only be one tab for the whole app. Will i have to set one form as a parent and all the others as child forms? Or is there a setting that just needs to be turned off?

View 2 Replies

VS 2010 All Forms Of Application?

May 1, 2012

I'd want to get names of all controls of of all forms of my application. How can I do it?

View 2 Replies







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