Geeks With Blogs
Waynerd's .Net Stuff and More January 2006 Entries
Auto scrolling the RichTextBox
Assuming you have a RichTextBox that you need to supply text to, and you want the control to auto scroll for you. The following code will append some new text and a new line, and scroll to make the new item visible. this.txtSessionLog.AppendTe... text“ + '\n'.ToString());this.txtSe... = this.txtSessionLog.Text.Len... From my research, there was some question whether the control needed focus or not. In my implementation, I did ......

Posted On Sunday, January 29, 2006 11:06 AM

Using a custom collection as Datasource and re-databinding after adding an item
I'm pretty fond of this method, now that I have over come a few hurdles. With .Net 2.0 out now, developers have another source to databind controls to. We can now use a custom collection as a source for databinding. Pretty cool. However, there are some nuances that really got me down. Even though I have established my custom collection as a datasource for a list control, if I add or remove any items, my changes will not be reflected until I set the controls datasource property to the same collection ......

Posted On Saturday, January 28, 2006 3:27 PM

Converting a String to Byte array, and vice versa
Found this little nugget o' knowledge. There isn't a .ToByteArray method off the string object, so I found these procedures that will do this for me. // C# to convert a string to a byte array.public static byte[] StrToByteArray(string str){ System.Text.ASCIIEncoding encoding=new System.Text.ASCIIEncoding(); return encoding.GetBytes(str);}als... Convert a byte array to a stringbyte [] dBytes = ...string str;System.Text.ASCIIEncoding enc = new System.Text.ASCIIEncoding()... = enc.GetString(dBytes); ......

Posted On Monday, January 16, 2006 12:11 PM

Landscape Development - Design contractors and projects
So, had another round of Landscape Architects/Designers come out to quote me on the stuff we want done around the house. I was really impressed with Designscape. They seemed to have a more technical solution put in place. Just need to find out more about how well that wheel turns. Things we want done are: Backyard BBQ and wet bar - Jacque's number one item, and one of my favorites as well. One of the benefits of doing this one is that the property will gain a room. I need to read up on this, but ......

Posted On Sunday, January 15, 2006 3:52 PM

Web Service Enhancements 3.0 Property Page link not showing in Visual Studio
Ok, so I'm working with the WSE 3.0 package and I have everything installed and I'm ready to code up a webservice. I get the procedures built up and go to configure WSE and find that I don't have a link when I right click on the project to configure the WSE settings. Hmm...where is it? After a few minutes of trying to figure out why the link isn't showing, I head off to Google and find that there really isn't a ton of info out there on this particular issue. What I do find is info on things that ......

Posted On Saturday, January 14, 2006 5:59 AM

Copyright © Wayne | Powered by: