Hi Pascal, You're welcome! Regards
"You don't scare me Selene."-Tanis "We'll have to work on that."-Selene (Underworld Evolution)
Hi Pascal, You're welcome! Regards
"You don't scare me Selene."-Tanis "We'll have to work on that."-Selene (Underworld Evolution)
Hi, Thanks, but that didn't work either. However I did find a solutionstring search = "x1"; string status = (ConnectionStatus) ? "Connected" : "Disconnected"; for (int i = 0; i < myListView.Items.Count; i++) { { ListViewItem item = myListView.Items; if(item.SubItems[4] == search) items.SubItems[3].Text = status }
Thanks all for your suggestions.
"You don't scare me Selene."-Tanis "We'll have to work on that."-Selene (Underworld Evolution)
Yes, I have updated from my previous post the ListView items look like this Col 1, Row 1 = Client ID (eg 23) Col 2, Row 1 = Client Name (eg Steve) Col 3, Row 1 = Connection Status (Connected / Disconnected) This is the subitem I want to change programatically. Col 4, Row 1 = Identifier (in this case 'x1') The next Row Identifier would be x2 and so on... Thanks
"You don't scare me Selene."-Tanis "We'll have to work on that."-Selene (Underworld Evolution)
Hi Pascal, Maybe try this: System.Diagnostics.Process.Start("http://www.website.com"); Regards Steve
Web design and hosting http://www.kayess.com.au
Here is what I am trying to do, from what I've read:string search = "x1"; string status = (ConnectionStatus) ? "Connected" : "Disconnected"; int i_row = myListView.Items.IndexOfKey(search); myListView.SelectedItems[i_row].SubItems[3].Text = status;
However the i_row value returned is always -1
Web design and hosting http://www.kayess.com.au
Sorry, still can't see how I can do it.
Web design and hosting http://www.kayess.com.au
Hi All, I am using a ListView Control to display clients connected to a server. The ListView is set to View.Details and has three columns, 1) Client ID, 2) Client Name 3) Connection Status. What I would like to do is update the 'Connection Status' SubItem to display whether they are connected or disconnected. Can anyone shed any light, thanks. Regards
Web design and hosting http://www.kayess.com.au
Maybe the national anthem could be System.DateTime.Now.Minute waltz Web design and hosting http://www.kayess.com.au
Just wondering what Chris Maunder has in mind for the name of this new country. Any suggestions.... CodeTopia, Democratic Republic of Coders ? Web design and hosting http://www.kayess.com.au
string ms_connection = @"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=\somepath\mydb.mdb;User Id=admin;Password=;"; OleDbConnection mc_connection = new OleDbConnection(ms_connection); string ms_sql = "select * from table"; OleDbCommand mc_command = new OleDbCommand(ms_sql, mc_connection); OleDbDataReader rReader = mc_command.ExecuteReader(); rReader.Read();
or words to that effect Web design and hosting http://www.kayess.com.au -- modified at 8:15 Friday 28th April, 2006
Don't know if this is some kind of record or not (prolly not) My linux (Informix DB Server) Redhat 7.3 Uptime results 9:24pm up 617 days, 20:54, 1 user, load average: 0.00, 0.00, 0.00 :cool: Web design and hosting http://www.kayess.com.au
Thanks a lot Shajeel. It worked a treat :-D Web design and hosting http://www.kayess.com.au
Hi Sean, If all you want the the count then just change your SQL to SELECT COUNT(*) FROM Mounts WHERE Group_Number = 1 HTH Web design and hosting http://www.kayess.com.au
Hi All, I have an app which opens three other apps as the user requires them. What I would like to do is, if the app (process) is already running, give it the focus rather than open another instance of it. Can maybe someone point me in the right direction. TIA Web design and hosting http://www.kayess.com.au
Hi, It is a Windows form control :) Web design and hosting http://www.kayess.com.au
Hi All, Is it possible to have the colour of a Datagrid row different from the other rows depending on the value in one of the cells. For example if I have a list of products and prices can I make the row highlighted red if the price is 0.00 If so how do I go about doing it? Thanks Web design and hosting http://www.kayess.com.au
Thank you Polis, you are my hero :-D now if I do a if(e.Clicks == 2)
in the MouseUp Event that will handle the double-click. Cheers Steve Web design and hosting http://www.kayess.com.au
Thanks Polis, but that's not what the boss wants I'm afraid. Web design and hosting http://www.kayess.com.au
Hi, Bit of a coincidence, I was just checking out usb stuff at http://www.icsharpcode.com check it out might be useful. HTH :-D Web design and hosting http://www.kayess.com.au
Hi guys and gals, I have a windows form with a DateTimePicker and a DataGrid. What I would like to do is double-click a cell in the DataGrid and have that cell update to show the date that is selected by the DateTimePicker. Any suggestions as to how I could do this? TIA Steve Web design and hosting http://www.kayess.com.au