Greeting,
I have already checked for my question with no luck of an answer or something similar.
So here it's my problem:
I have created a cafe cashier software for my boss that it has buttons for each product that cashier wants to add on a bill/table. If a button is clicked, for example btnOrangeJuice, on its click event, it call a function for example named: addOrder("Orange Juice");
Inside this function it does the simple follow code:
a) it connect to the database
b) returns price of product "Orange Juice" for example (select price from products where product_name = '" + product_parameter + "'")
c) take the result, and add it to the order list box with it's price and so on..
The problem here is, (lets go with the previews example) every time we have a new product, I have to manually customize the form by adding a button 52x52 pixels, name btnOrangeJuice, text name "Orange Juice", and on the click event to call my function addOrder("Orange Juice"), then upload the new version of my software to my online web hosting, and update the software from the cashier's pc. This is time consuming for me, especially when we make new deals with suppliers so i wanted to make my program to add dynamically buttons, to do all this by just having a form, type in the button properties, calling a function, and add a button by its self with its dimensions, check if its out of form space, if it is, the add the button bellow instead on the right, and of course add the button properties and its click event (that call my built-in function).
If you need any farther details regarding my software/problem please do ask.
So can you assist me on this please?