Seeking professional treatment is the best and most successful way to deal with compulsive gambling. Many addiction treatment facilities provide counseling and other services for treating gambling disorders.
You can also join a support group such as Gamblers Anonymous—a 12-step program focused on helping individuals overcome their compulsive gambling problem.