blah blah blah is here! blah blah » Close

0
votes
1 answers

Make a copy of a List<object>

Not having much luck with this one. I just want to make a copy of a list of objects that are passed into the method. The reason is that I don't want the changes to take effect on the original until they are verified with the temporary ...

0
votes
2 answers

A little more regex help

Having a little difficulty with this one... I want to find all references to the literal string, "sFuncName". these are the possible (common) variations in my text... 1. sFuncName\n 2. sFuncName(x,y,z)\n 3. \t\tsFuncNam ...

0
votes
1 answers

Simple Regex not working as expected

I am simply trying to find all instances of a word in a richtextbox.text with the following [code] private void FindAllReferences(RichTextBox rtb, string sText) { MatchCollection mcReferences; mc ...

0
votes
2 answers

RichTextBox TextChanged event not firing

What could I be missing if my rtb2 is not firing. The event handler is there, but on the first pass of the following code, the event does not fire. private void frm_Load(object sender, EventArgs e) { rtb1.text = ""; rtb2.te ...

0
votes
2 answers

Enable Indenting in RichTextBox

I'm trying to enable indenting in my RichTextBox editor. What I have below works, but isn't as precise with the text alignment as I would like it to be. Also, the indention seems to stick after applying it. In other words, if I backspa ...

2
votes
1 answers

Copy paste, etc on multiple controls.

How would you make it so that the various copy, paste commands would work on any richtextbox without having to specify which one has the focus? Currently, I am coding it this way. [code] private void copyToolStripMenuItem_Click ...

0
votes
1 answers

Update subitem in listView

My code errors out saying I need to use the "new" keyword. foreach (ListViewItem o in listView1.Items) { o.SubItems["Ping Check"].Text = PingStatus(o.Text); } I'm ...

0
votes
1 answers

Can't change toolStripButton.Image with Resource

I'm trying to change the image of a toolStripButton control based on the status of a running service but it's not working as intended. //Change Service Start/Stop button image. System.ServiceProcess.ServiceControlle ...

0
votes
1 answers

Can't access public dataset

I'm trying to access a public dataset in Form1 via Form2, however, the dataset is not available in Form2. I can of course, create an instance of Form1 in Form2, but that just gives me access to an empty dataset. Form2 contains settings th ...

Feedback