Skip to main content

Posts

Showing posts from 2010

C# Keywords

Keyword Description Virtual The virtual keyword is used to modify a method, property, indexer or event declaration, and allow it to be overridden in a derived class. The implementation of a virtual member can be changed by an overriding member in a derived class. When a virtual method is invoked, the run-time type of the object is checked for an overriding member. The overriding member in the most derived class is called, which might be the original member, if no derived class has overridden the member. By default, methods are non-virtual. You cannot override a non-virtual method. You cannot use the virtual modifier with the static, abstract and override modifiers. Virtual properties behave like abstract methods, except for the differences in declaration and invocation syntax. It is an error to use the virtual modifier on a static property. A virtual inherited property can be overridden in a derived class by including a property declaration that uses the override modifier. Fo

Enable 'Sa' account in SQL Server 2005

Yesterday night was almost ruined when I tried to connect my special c# project with Microsoft SQL Server 2005 in Vista operating system. Even after spending several hours in examining and understanding the error message I didn't find any perfect solution for my problem. But today again I put myself to solve the problem and this time I was bit lucky when I discovered that my 'Sa' account in SQL server 2005 is in disable mode. A small red color downwards arrow icon can be seen just in the left side of the 'Sa' account icon. Later I learned that the so called 'Sa' account is by default in disable mode in Microsoft SQL server 2005 standard and express edition. Only after enabling my 'Sa' account I was able to connect my dot net project to SQL server database using SQL server login authentication. Command for Enabling and Disabling SQL server 2005 is - ALTER .For example : - Enable 'sa' account - ALTER LOGIN sa ENABLE Disable 'sa' account

How to change the listening port for Remote Desktop?

You can use the Remote Desktop feature in Microsoft Windows XP Professional to connect to your computer from another remote computer. Warning The Remote Assistance feature in Microsoft Windows XP may not work correctly if you change the listening port. For additional information, click the following article number to view the article in the Microsoft Knowledge Base: 307711 (http://support.microsoft.com/kb/307711/ ) Remote Assistance invitation file does not contain correct port number To change the port that Remote Desktop listens on, follow these steps. Important This section, method, or task contains steps that tell you how to modify the registry. However, serious problems might occur if you modify the registry incorrectly. Therefore, make sure that you follow these steps carefully. For added protection, back up the registry before you modify it. Then, you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, click the

Disable balloon tips in the notification area in Windows XP or Vista?

Important This section, method, or task contains steps that tell you how to modify the registry. However, serious problems might occur if you modify the registry incorrectly. Therefore, make sure that you follow these steps carefully. For added protection, back up the registry before you modify it. Then, you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, click the following article number to view the article in the Microsoft Knowledge Base: 322756 (http://support.microsoft.com/kb/322756/ ) How to back up and restore the registry in Windows. To disable balloon tips in the notification area, follow these steps: Click Start , click Run , type regedit , and then press ENTER. Locate the following subkey: HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced Right-click the right side pane, create a new DWORD value, and then name it EnableBalloonTips . Double-click EnableBalloonTips , and then give

Tabla - An Indian classical instrument for Rythm

Tabla Indian music has fascinated the West for many years. The tabla in particular has attracted the attention of a number of American and European percussionists. It has been used in popular music as early as the 60's and is heard in the popular media even today. However, many percussionists shy away from this instrument. The reasons for not "getting into it" are varied. Sometimes it is the lack of instruments; sometimes lack of teachers; sometimes it is the belief that tabla is just too difficult. These are legitimate concerns but they are not insurmountable obstacles. This article will address the concerns of a musician just wishing to get started in tabla. We will discuss the theory of Indian music, how to purchase tabla, the basic technique, and compositional theory. All of this information should make the job of getting started much easier. We should first familiarize ourselves with the extensive theory of Indian music. Indian music is one of the oldest musical trad

How to install Windows SharePoint Services 3.0 Tools to XP or Vista

How you can install Windows SharePoint Services 3.0 Tools: Visual Studio 2005 Extensions (VSeWSS) for none-Windows 2003 server OS. Of course since that's not supported you'll have to do small registry hack (but that's what developers do :-), right! [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Shared Tools\Web Server Extensions\12.0] "Sharepoint"="Installed" I have tested it with WinXP and Windows Vista and it works! Before the hack it gives me "This product can be installed if Windows SharePoint Services 3.0 has been installed first." and after the hack it went fine. I think there're a lot of people who would like to try/use this option even if they fall for unsupported mode. 1. Start > Run, then type "regedit". 2. Navigate to [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Shared Tools\]. 3. If [Web Server Extensions\12.0] doesn't exist, right click on [Shared Tools] and select New > Key and type in "Web Server Extensions"

Differences Between Pocket PC 2003 and Smartphone 2003 Controls

The following table summarizes the difference in control support between Windows Mobile Pocket PC 2003 and Windows Mobile Smartphone 2003. Some controls do not make sense in the context of the Smartphone, which, for example, has no touchscreen. Control Pocket PC 2003 Smartphone 2003 Label Yes Yes LinkLabel Yes No Button Yes No TextBox Yes Yes MainMenu Yes Yes CheckBox Yes Yes RadioButton Yes No PictureBox Yes Yes Panel Yes Yes DataGrid Yes No BindingSource Yes No ListBox Yes No ComboBox Yes Yes ListView Yes Yes TreeView Yes Yes TabControl Yes No DateTimePicker Yes No MonthCalendar Yes No HScrollBar Yes Yes VScrollBar Yes Yes Timer Yes Yes Splitter Yes No DomainUpDown Yes No NumericUpDown Yes No TrackBar Yes No ProgressBar Yes Yes ImageList Yes Yes ContextMenu Yes No ToolBar Yes No StatusBar Yes No OpenFileDialog Yes No SaveFileDialog Yes No WebBrowser Yes No InputPanel Yes No Notification Yes No DocumentList Yes No Bookmark this page