I need to implement an undo and redo for an entire row in a listview containing approximately 10 columns. I'm not sure of the best way to implement this. The only thing that I've thought of is a stack implementation. I need to be able to undo a delete, an insert (add), a movement within the list Any ideas? Thank you and any ideas would be appreciated.
mm310
Posts
-
undo-redo for listview -
Send ArrayList to ( webMethod) - Web ServiceHow i can Send ArrayList to WebMethod ? i used this code in WebService class
[WebMethod] public void getData(ArrayList DataS) { }
and send data from clinet to Web Service like thislocalhost.Service BB = new localhost.Service(); ArrayList dS = new ArrayList(); BB.getData(ds);
this code is not work , any one can Exp this problem ? -
Microsoft Office TranslationsHow i can use Microsoft Office Translations in c# like ( Spell Check )? see the picture http://www.worldlingo.com/en/images/xp2.gif[^]
-
sending class between two websiteHow i can send class between to website like client and server ?
-
Error in run ASP.NetWhen I Run ASP.NET Project This message Show... http://www.stooop.com/2006/11/1bf7b1a1aa.gif[^]
-
Repeat ValueHow i can Remove Repeat Value in ArrayList ?
-
List View :: item.Text searchHow I can search some Items In list view control
-
Thread with ListViewthanks Anant Y. Kulkarni I am use this code
private void loadSubToolStripMenuItem_Click(object sender, EventArgs e) { OpenFileDialog1.Filter= "Srt File|*.srt"; OpenFileDialog1.Title = "Open SubTitle File"; try { if (OpenFileDialog1.ShowDialog() == DialogResult.OK) { Thread ReadThread = new Thread(new ThreadStart(ReadData)); ReadThread.Start(); } } catch (Exception) { MessageBox.Show("Can't Read this File"); } }
and this Functionprivate void ReadData() { listView1.Items.Clear(); StreamReader s = new StreamReader(OpenFileDialog1.FileName, Encoding.Default); ArrayList a = new ArrayList(); while (s.Peek() >= 0) { string alltext = ""; string text = ""; while ((text = s.ReadLine()) != "" && text != null) { alltext += ("|" + text); } a.Add(alltext); } s.Close(); foreach (string text in a) { string[] splitString = text.Split('|'); string tempstring = ""; for (int i = 3; i < splitString.Length; i++) { tempstring += splitString[i]; } ListViewItem lvi = new ListViewItem(new string[] { splitString[1], splitString[2].Substring(0, 12), splitString[2].Substring(17, 12), tempstring }); this.listView1.Items.Add(lvi); } a.Clear(); }
when i Run this Program this message Dispaly Exception System.InvalidOperationException was thrown in debuggee: Cross-thread operation not valid: Control 'listView1' accessed from a thread other than the thread it was created on -
Thread with ListViewHi All How I can Use Thread with ListView To Add this Items
ListViewItem lvi = new ListViewItem(new string[] { splitString[1], splitString[2].Substring(0, 12), splitString[2].Substring(17, 12), tempstring }); this.listView1.Items.Add(lvi);
-
Reading Image from this linkhelp me plyz this message display after click the Button Exception System.Net.WebException was thrown in debuggee: The server committed a protocol violation. Section=ResponseStatusLine
-
Reading Image from this linkI am using this Code for reading Image from URL
private Image getImage(string url) { Image im = null; try { HttpWebRequest request = (HttpWebRequest)WebRequest.Create(url); request.Method = "GET"; request.Timeout = 15000; request.ProtocolVersion = HttpVersion.Version11; using (HttpWebResponse response = (HttpWebResponse)request.GetResponse()) { using (Stream responseStream = response.GetResponseStream()) { im = Image.FromStream(responseStream); } } } catch (Exception ex) { Debug.WriteLine("Exception in getThumbnail. Url: " + url + ". Info: " + ex.Message + Environment.NewLine + "Stack: " + ex.StackTrace); } return im; }
but if the URL like this http://mud.mm-a5.yimg.com/image/1942583882[^] the code will not work correctly. How I can Fixed it ? -
How I Can convert type byte[] to ...... [modified]thank you Man , I love you ;)
-
How I Can convert type byte[] to ...... [modified]I need convert byte[] to system.Drawing.Image This code Download Image from URI , i need put image in pictureBox after Downloaded . WebDownload webDL = new WebDownload(); byte[] downloadedData = webDL.Download(DownloadUrl, ProgressCallback ); CompleteCallback( downloadedData ); ImageDisplay ds = new ImageDisplay(); ds.pictureBox1.Image = (Image)downloadedData; help me ... -- modified at 2:00 Wednesday 9th August, 2006
-
Save All text in richTextBox as imageHow I can Save All text in richTextBox as image
-
How I can Read this File in C#I Need Read this File (STR) Subtitle File And put all data from File in ListView like this http://www.cpestudents.net/upload/up/sub.gif[^] File http://www.cpestudents.net/upload/up/sub2.gif[^]
-
what is wrong in this codehelp me : http://www.cpestudents.net/upload/up/eeerer.gif[^]
-
Remove empty Items from checkedListBoxHow I can Remove empty Items from checkedListBox example :: this picture http://www.cpestudents.net/upload/up/ffffffff.gif[^]
-
how I can add more image in pictureBox- how I can add more image in pictureBox ? - how I can move image in pictureBox with mouse ?
-
How to use Flash with C#how to play Flash in C# 2005(WindowsApplication) -- modified at 21:36 Tuesday 11th April, 2006
-
what is wrong in this codeprivate void button1_Click(object sender, EventArgs e) { string strDSN = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=c:\\db4.MDB"; string strSQL = "SELECT * FROM ta1"; OleDbConnection myConn = new OleDbConnection(strDSN); OleDbDataAdapter myCmd = new OleDbDataAdapter(strSQL, myConn); DataSet dtSet = new DataSet(); string sqlQuery = "SELECT Name,Password FROM ta1 where Name = '" + textBox1.Text.ToString() + "' AND Password= '" + textBox2.Text.ToString() + "'"; myCmd.SelectCommand.CommandText = sqlQuery; int numberOfRowsFeched = myCmd.Fill(dtSet, "ta1"); if (numberOfRowsFeched > 0) { try { myCmd.UpdateCommand.CommandText = "UPDATE Users SET " + "Password = '" +textBox3.Text + "'" + " WHERE Name = '" + textBox1.Text + "'"; myCmd.UpdateCommand.Connection = myConn; myCmd.UpdateCommand.ExecuteNonQuery(); MessageBox.Show("Record updated Successfully"); textBox1.Text = ""; textBox2.Text = ""; textBox3.Text = ""; } catch (System.Data.OleDb.OleDbException exp) { myConn.Close(); MessageBox.Show(exp.Message); } } else { MessageBox.Show("wrong Name Or Password", "Password", MessageBoxButtons.OK, MessageBoxIcon.Information); textBox1.Text = ""; textBox2.Text = ""; textBox3.Text = ""; } message : http://www.cpestudents.net/upload/up/54.gif[^]