Last post Apr 17, 2012 07:37 AM by manivannanm
Apr 11, 2012 01:16 AM|aga.shahid|LINK
I am preparing a simple application in .net 3.5 (Visual Studio 2008, C#).
We have a business of Real estate. So total of 80 plots. So I have added 80 buttons in the design page, and gave green color to all buttons (indicating that green color plots are available for sale). So now, when I click on any of the green colored plot to
sell it, it redirects me to new page, where I need to enter the plot details, customer details, mode of payment etc. But I am stuck here. When I enter all the details of the customer, plot details, mode of payment etc and select Plot is "SOLD", the button
color should automatically get changed to RED. Red color will indicate that the particular plot has been sold. So how can I do this?
Please help me. Will be very grateful.
Thanks in advance.
Apr 11, 2012 01:35 AM|Amin.Mirzapour|LINK
You can define a public property in your Form(page) wich can set the color:
public Color Button1Color
Button1.ForeColor = value;
Now you can set the button from another form(after sale).
Apr 11, 2012 09:40 AM|sanjayverma_mca|LINK
Button.ForeColor = System.Drawing.Color.Red;
Apr 11, 2012 09:43 AM|aga.shahid|LINK
No dear. When I enter all the customer details, plot details, mode of payment etc and then when I select "Plot is SOLD", the button color should change from Green to Red automatically.
So is there is any way such that, when I select "SOLD", the button color automatically should change to RED color.
Apr 11, 2012 09:47 AM|tdmca|LINK
create a table in database having details of all plots inluding sold or not
in page load iterate through all plots and set color according to this column(SoldOrNot)
like red for yes and green for no
when you sold the plot change value of SoldOrNot in table to yes
when you will come to mainpage color will be automatically changed
Apr 17, 2012 07:37 AM|manivannanm|LINK
where you want to show "80 buttons design page" ?