Telling you before hand, i am just starting to learn, so please refrain from making fun of me i k i am real weak in this.
ok here is what i need to do, i have been trying for ages but i am having huge problem creating dynamic checkboxes. This is what needs to be done.
When user clicks in the textbox, “Write a Quick Note” text should go away.
- When user writes something and presses ENTER key, it should add the text user just
entered in the checklist below that textbox. For example I write “Prayer” and press enter,
it gets added in the checklist.- Window must NOT be resizable. That is, user shouldn’t be able to change the size of this
form. It must be fixed!- Once user “check” some item in the TODO list, it should be deleted from the list. For
example, in the above list, no item is selected. Now I select “Rest” from the above shown
list – it should be deleted from the list at once.- If I close down the program and starts it again, it should load the previously added
checklist items automatically, i.e. data should be persistent!
I have done the 4th and 5th(somewhat)... i cant get my head around point 4. Ik 6th point has summin to do with event handling. i'll show you what i have done so far:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.IO;
namespace Lab10
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void textBox1_Click(object sender, EventArgs e)
{
textBox1.Clear();
}
private void checkBox1_CheckStateChanged(object sender, EventArgs e)
{
checkBox1.Hide();
}
private void textBox1_Enter(object sender, EventArgs e)
{
//The data i enter in the textbox should become a checkbox when i hit enter. so this is what i tried.
/*CheckBox dynam = new CheckBox();
dynam.Name = dynam.ToString();
dynam.Text = dynam.ToString();
richTextBox1.Controls.Add(dynam);*/
}
}
}
}
Thank you for any help!