473,385 Members | 1,483 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

check box validation in vb 6.0 to be checked always(permenant for future works)

i've done a project on VB6.0 for e-ticket booking.When one time i've checked a check box i need to be checked permenant(because its seat no).Once when i closed the project another time it comes as a new one.How could i do this?
Just help me!
Mar 10 '14 #1
1 1144
Assuming you can't set it at design time, this is a fairly common problem, and there are several ways to fix it, but I need to know a little more. Does your application use a database or something like that? Does the application keep track of multiple bookings, or only one?

The solution is that the value of the checkbox needs to be stored somewhere outside the program. If you use an external database to store information, you can add a field to it. If you aren't using any external files yet you have at least three options.

1. You can create a file to store the checkbox state and read the file every time the application opens. If you only handle one ticket at a time, you don't even need to put anything meaningful in the file. Just create it if the box is checked. Then when the application starts, check to see if that file exists. If it does, have the application check the checkbox. This would even work if you handle multiple tickets. Just create files as needed with the ticket number as the filename. You would need to clean those files up every now and then, though, to get rid of ones that are no longer needed.
2. Basically the same, but use a standard .ini file.
3. Basically the same, but store the value in the registry. It's easier than you think, and you don't need to worry about the file accidently being deleted.
Apr 7 '14 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

17
by: Dave Smithz | last post by:
Hi there, A PHP application I built has a section which lists a number of members to a club whose names each appear with a check box beside them that can be ticked. These check boxes are part...
6
by: serge calderara | last post by:
Dear all, I have read that ASP.NET does double user input validation of control when they are place on the page. Once on teh client side and again from server side right ? Could explain how...
16
by: Brian Tkatch | last post by:
Is there a way to check the order in which SET INTEGRITY needs to be applied? This would be for a script with a dynamic list of TABLEs. B.
1
by: Abdo Haji-Ali | last post by:
Greetings, I'm using the ASP.NET membership model in my site and everything works perfectly, locally. However when I uploaded my site (To my host which is GoDaddy), and ran it remotely the...
6
by: lucoin | last post by:
Hello guys, I met a problem about php and javascipt For a tickets booking system, when a customer search for flights from one city, so in the data base there should be many routes to different...
7
by: jmartmem | last post by:
Greetings, I have an ASP page with a form (form1) that contains a JavaScript validation function that is activated onSubmit. The function contains a series of IF statements to alert the user to...
2
by: yappy77 | last post by:
I need to create a dialog box that says Do Not Use if a record on my form has a specific check box checked. I am sure there are step by step instructions somewhere but I don't know where to look. ...
2
by: yappy77 | last post by:
I have a check box on my form and in my table that is used to identify when a vendor is no longer used. I want a dialog box to pop up when a user clicks on that particular record. I have created...
2
by: yappy77 | last post by:
I figured it out using a conditional macro. Using a message box to display the message I want when the user clicks on the record with the check box checked, the condition in the macro must equal...
1
by: saiabhi | last post by:
I have database called products, i am getting these value in the table and i want to add a chex box in the last row, when i select the check box and click on submit. my output should be in another...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.