Do you need both .net 3.5 and 4.0 installed or just .net 4?

I remember reading something once from Microsoft that stated: “.NET 4.0 adds in-process side-by-side compatibility with earlier versions of the Framework. This feature allows an application process to simultaneously run part of its code using the .NET Common Language Runtime (CLR) 4 and other parts using older versions of the CLR.” So to answer your … Read more

Why is my WPF textbox “kinda” readonly?

I was encountering a problem very similar to this. After doing a little research, I found a similar problem listed in MSDN: http://social.msdn.microsoft.com/Forums/en-US/wpf/thread/c68d5f3c-c8cc-427d-82e3-6135d075a304/ According to the answer to the post, the problem has to do with WPF and WinForms having two very different ways of handling text input. Fortunately, the post listed above gives the … Read more

WPF: How to style or disable the default ContextMenu of a TextBox

To style ContextMenu’s for all TextBoxes, I would do something like the following: First, in the resources section, add a ContextMenu which you plan to use as your standard ContextMenu in a textbox. e.g. <ContextMenu x:Key=”TextBoxContextMenu” Background=”White”> <MenuItem Command=”ApplicationCommands.Copy” /> <MenuItem Command=”ApplicationCommands.Cut” /> <MenuItem Command=”ApplicationCommands.Paste” /> </ContextMenu> Secondly, create a style for your TextBoxes, which … Read more

SqlParameter with default value set to 0 doesn’t work as expected

Use caution when you use this overload of the SqlParameter constructor to specify integer parameter values. Because this overload takes a value of type Object, you must convert the integral value to an Object type when the value is zero, as the following C# example demonstrates. Parameter = new SqlParameter(“@pname”, Convert.ToInt32(0)); If you do not … Read more

techhipbettruvabetnorabahisbahis forumuedueduedusedueduedusedueduedusedu