for (int i = 0; i < listView1.Items.Count; i++ )
{
if (listView1.Items[i].Selected)
{
listView1.Items[i].Remove();
}
UPDATE :: I found out that the code above is limited
to deleting only the first row
when the SelectMultipleRows option is true,
so i googled and found a better
alternative:
while (listView1.SelectedIndices.Count > 0)
{
listView1.Items.RemoveAt(listView1.SelectedIndices[0]);
}
Tuesday, 30 June 2009
List view Items in C#
I'm always using listviews in c#. In a former project i had the same issue as with the timing app: "How to select an index from selected row in the listview". I googled it and here is what i found, and works just fine:
Monday, 29 June 2009
Task timing App - Update
The timing app is going smooth. I decided (because lack of time) to give up on making 2 different apps, and just to make a "2 in 1" to avoid using the specific defined Serialization, (like in the previous post) and just finish it as soon as I can, but i still want to try it out and see if /how it works. Soon i will start my new job, as a PL/SQL developer. I'm really excited about this.
Application.Exit();
Application.Exit();
Sunday, 28 June 2009
Task Timing Application
I was studying for an exam this Friday night, and out of a sudden it struck me. At my current (former) job we have to do timing on our activities and i never considered of doing an application that would facilitate this.
So.. this is how it began..
Today is Sunday, i think i have done about 80% percent of the project, but when i still see things that i can do with it the finish point still looks a little bit far.
Anyway the problem i ran into today was regarding Serialization in C#.
I want to have 2 applications : one will export data using Serialization into a binary file, that i want to open with another application. Simple i said. But the fact is when trying to open it thorough the other application, i received an error : "Unable to find assembly 'Application Timing', Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'.
I began searching on forums and here is what i found :
After i will make my implementation i will post it here and the final app plus source code, hopefully soon :)
So.. this is how it began..
Today is Sunday, i think i have done about 80% percent of the project, but when i still see things that i can do with it the finish point still looks a little bit far.
Anyway the problem i ran into today was regarding Serialization in C#.
I want to have 2 applications : one will export data using Serialization into a binary file, that i want to open with another application. Simple i said. But the fact is when trying to open it thorough the other application, i received an error : "Unable to find assembly 'Application Timing', Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'.
I began searching on forums and here is what i found :
After i will make my implementation i will post it here and the final app plus source code, hopefully soon :)
The First Post
I've created this blog for quite a while now, but i did not manage to post anything... so to get things started here i go with my 1st project :-p
c#:
class HelloWorld
{static void Main()
{
System.Console.WriteLine("Hello, world!")
}
}PL/SQL:
BEGIN
dmbs_output.put_line("Hello world");
END;
/
Subscribe to:
Posts (Atom)