A landlord can evict you only through formal legal proceedings. A lockout in an apartment or house is illegal; it denied you access to your property without due process. Tenants have specific rights in the eviction process. If you receive an eviction notice, you may want to consult with an attorney immediately.