Geeks With Blogs
Nat Luengnaruemitchai Geek Blog
Many people use .NET framework library without reading documentation. Sometimes, it just like taking medicine without reading its label. Today, I found that there is a piece of code trying to read AssemblyInfo.cs and change the version of the .NET assembly based on the input. The code seems to work quite well for most of the files except for certain ......

I have been fiddled with Java Plugin on Google Chrome for a while but having a problem getting it to work even though I follow the steps on many websites. I finally tracked down the issue. It seems that Google Chrome searches for installed JRE plugin by querying HKLM/SOFTWARE/JavaSoft/Java Runtime Environment/BrowserJavaVersion If the value in there ......

If… 1. You installed Oracle XE but you cannot launch APEX or start up oracle.exe process 2. Your computer joined Windows domain 3. You installed it using Domain account Very likely, it will try to install it using domain authentication which it may not work. Therefore, the solution is to: 1. Create a local user with admin right 2. Log in using that ......

Many times, I installed SQL Server 2008 and failed with just the error message “Access Denied”. One of the cases I found is that my Administrator account doesn’t have SeDebugPrivilege especially when GPO policy is in effect. I still don’t understand why anyone should be admin but cannot debug things :( Check out the following links for more information: ......

The other day I ran into a page here. It mentioned that XP SP2 and Vista have an updated TCP/IP stack where it was designed to reduce the risk of your PCs to spread out the worm in case it gets affected. Some people found a way to work around it by manually editing the TCPIP.sys file. You might need this if you have to write an application where it ......

Many people have a problem when spawning multiple requests to get content from a server where only 2 requests can be processed concurrently. This is because the HTTP protocol standard suggests that HTTP client should not make more than 2 calls to a server at one time. However, in many cases, you have a need to make more than 2 requests at the same time ......

Some people may experience a problem with Java applet in Mozilla Firefox 3.0. For me, I noticed that after upgrading from Firefox 2.0 to Firefox 3.0, some of my applets don't work anymore. This happens when I have network.cookie.cookieBehavior setting = 1. This will disallow access to 3rd party cookies. However, it also has a side effect where it disallow ......

Yesterday, I had a problem where I need to hook up an event to a certain data condition. I first thought about EventTrigger. However, it does the other way around. This class is responsible for convert event into trigger. So I digged around WPF architecture to see what I can do and bingo. I found that I can create an attached property with the following ......

Andrew Flick announced that Infragistics WPF Express Edition will be free as well. Before this release, xamDataGrid suffered a lot of performance problem. It seems that they have fixed various performance problem. So I think I will give it a try again later. To try it out visit http://blogs.infragistics.c... ......

In Windows Forms application, we can use Control.IsInDesignMode or LicenseManager.UsageMode == LicenseUsageMode.Designtime to check whether your code is executing in DesignMode or not. You might wonder how would you do the same in WPF. Fortunately, Cider and Blend offers a similar functionality. You can test the following condition DesignerProperties.GetIsInD... ......

ClickOnce deployment has problem with Proxy that requires authentication. You might get the following error: (407) Proxy Authentication Required If so, you would need to get a hotfix at http://support.microsoft.co... For more detail, you can check out at http://forums.microsoft.com... ......

If you try to run any XBAP application on the machine that has ISS Proventia Buffer Overflow Protection (vpatch.exe) installed, you might experience COMException with HRESULT 0xFFFFFFFF. The workaround is to stop vpatch.exe. I hope Microsoft and ISS work together to fix this issue.

 



If you experience bad handle leaks in svchost.exe process like I did, what happened was a bug in a dll that leaks handles when you have some antivirus software installed. It might worth to get a hotfix from Microsoft. It is detailed at KB892489.

Sometimes, you would like to get a combobox where a user can type. This can be done by turning on IsEditable property to true. However, it opens another can of worm, it means the user can type anything in the combobox even text that is not in the ItemsSource. To provide LimitToList feature, you can hook up an event to PreviewLostKeyboardFocus as follows: ......

Copyright © Nat Luengnaruemitchai | Powered by: GeeksWithBlogs.net | Join free