3
insert the description of the image here.You can find out how I can through a textbox insert a numerical value, and with this value x
make visible x
buttons of y
.
ex. if I type 3 in the textbox, the button 1, 2 and 3 will be visible
I am developing a form in which save in an sql datatable, possible dates and number of times for each date (ie if set 3, all these dates will have 3 times). In another form I will schedule the events, and I wanted to make available the dates of the table and the times, as it was registering the events, they would appear as busy or free. Seat marking type on aeroplanes.
Wouldn’t you be able to make an array of buttons to enable them and then change the text of each and the value q it passes when clicked? I will use the buttons as the seats of the seat markers of the cia areas
– i_melo
@i_melo The button array would be exactly the same as the textboxes. Change the value when you also click perfectly. Now I’m not seeing exactly what you’re trying to do about the seats and that.
– Isac
I have a db in sql that saves several dates for monograph defense scheduling. A form will check these dates and for each date will inform me the vacant times. So I can schedule in another db these stalls. Hence the buttons. I created groupbox with 5 buttons for each available date q are invisible by default. If there are 2 dates, it releases only 2 groupbox. The buttons will be the available times, already scheduled times will display a code on the button to warn q it is unavailable. When selecting an available button it fills a textbox with the time to save in db.
– i_melo
@i_melo Print out what you have so it’s visually easier to follow. But if I have understood correctly, it is best to have a list of elements of a class made by you that indicate whether a certain time is available or not. Then through a loop/loop they hide or show in the textboxes array. If you already have classes for this you should also specify.
– Isac
This is the form. It will fetch the data from a db, hide the groupbox. For every available day it releases a groupbox. In the same db is the number of times per day. Then only the number of times specified for each day will be shown. By clicking the button it saves in another db, all recovered data from the other db, and adds date and time. When you open this form again that day and at that time the corresponding button will be labeled with the presentation code. Then I will know that that time is unavailable. I will have to choose another time via another button.
– i_melo
@i_melo Enter the code you are using to find available and unavailable times, which is where you need to enter the code I gave in the answer.
– Isac