Hi all.
I'm developing a little reminder program. It's pretty basic.
You can choose what you want to be reminded about (a simple textbox) and what date/time you want this reminder to remind you.
I also added a basic settings form giving the user the chance to change font color and such.
a) I've managed to delete the rows in the datagrid with
CODE
database1DataSet.Clear();
OR using
CODE
dataGridView1.DataSource = null;
but when I try to update using
CODE
rememberTableAdapter.Update(database1DataSet);
it doesn't work. The grid IS cleared. But the next time I'm opening that form,
all the data is back. So somehow it doesn't save to the database I guess.
I have a button which allows the user to edit the grid with
CODE
dataGridView1.ReadOnly = false;
And when done editing the user can hit the save button
CODE
dataGridView1.ReadOnly = true;
rememberTableAdapter.Update(database1DataSet);
This DOES work. When exiting the program (or that form) it's stored in the database. So the update does work in that case.
But it doesn't work when clearing the grid first??

The other thing is, in my settings, the user can change the background color and font color using 5 different themes.
I'm using a simple dropdownlist for the task.
I used the following code for the color change
CODE
if (comboBox1.SelectedItem == comboBox1.Items[0])
{
this.ForeColor = Color.White;
this.BackColor = Color.Black;
}
This does only change the color on the current form. And the next time I open that form, it's back to the default colors.
How do I access the other forms settings? If the user change colors, the change should be for all forms.
Is there not a default application setting I can change? (so that changing it would change the looks on all forms in the application)
Or do I have to access it using properties? Never got the hang of that though..
Thnx =)
This post has been edited by twebbas: 9 Oct, 2008 - 02:08 PM