Sunday, October 26, 2008

How To Add The File Name and Path to the Header or the Footer in MS Word

To add the file name and path to the header or the footer in a Word document, follow these steps:
1.On the View menu, click Header and Footer.

The header is outlined by non-printing dotted lines.

NOTE: If you want to add the file name and path of your document to the footer, click Switch Between Header and Footer on the Header and Footer toolbar.
2.Click Insert AutoText on the Header and Footer toolbar, and then click Filename and path.
To insert the file name and path into the body of a Word document, point to AutoText on the Insert menu, point to Header/Footer, and then click Filename and path.

Saturday, October 25, 2008

How do I stop people from posting spam messages on yahoo group?

If you are group owner or a moderator with the assigned privilege, you can change the settings so that all new messages have to be moderated. Then you would have to approve them all before they can be posted to your group.

Go to Management->Group Settings ->Messages->Posting and Archives (click Edit)->Posting Options (In the Moderation column, select Moderated.
Make sure to click Save Changes.

Friday, October 24, 2008

Your computer was joined to the domain using your computer old name because the following error has occurred. The directory service is busy.

To resolve this issue follow the given instructions.

1) Go to start menu and click on Run.

2) Type 'cmd' inside Run Window and click ok.

3) Command Prompt will open. Now write net use and Press Enter Button.

4) It will show all the shared drives. If there is any shared resource shown then first disconnect it.

5) After disconnecting the drives come back to Command Prompt and write net use */delete.

6) Now join it back to the domain and all the hurdles are gone.

I hope that this solution will help you as it resolve my issue.

Multiple connection to a server or shared resource by the same user, using more than one username, are not allowed. Disconnect all previous connection

To resolve this error follow these instructions.

1) Look at the sessions that are simultaneously running. On a Windows machine, Run -> ‘net use’. This will list all the connections.

2) Ensure that you dont access the shared drive when the program is running.(to avoid starting a new connection)

3) Delete all the connections to the storage. Better still, do a ‘net use * /delete’

I hope that this will resolve the issue as it happens with me.

Tuesday, October 14, 2008

Use DataTable.Rows.Find() Instead of DataTable.Select()

ADO.NET generates indexes on the primary key(s). So, if you have to search a datatable for records based on some primary key value, use DataTable.Rows.Find() instead of DataTable.Select(). The Find method will use the index to find the row. This turns out to be faster because of the presence of the index.

Monday, October 6, 2008



This makes the member visible globally

Eg. class Gremlin { public Gremlin spawn() { return new Gremlin(); } }


This makes the member visible to the current class and to child classes. Protected members are only accessible in the same class or through inherited classes.

Eg. class ParentClass { protected int valueA; }
class ChildClass { public void doSomething() { valueA = 3; } }


This makes the member visible only to the current class.

Eg. class MyCollection { private int lastIndex; }

internal / Friend

This makes the member visible within the same assembly.

Eg. internal class ProprietaryStuff { }

protected internal / Protected Friend

A combination of protected and internal. This makes the member visible within the same assembly and also makes the member visible to an inheriting class. An inheriting class does not need to be in the same assembly to access the member.