So I'm going through Otto Forster's "Lectures on Riemann Surfaces", and I need another hint (shame). This is in the "Cohomology Groups" sections, as part of a problem to show that for $X$ a compact Riemann Surface, $H^1(X,\mathbb{C})$ is a finite dimensional $\mathbb{C}$-vector space.
Question
Suppose $X$ is a manifold, $U \subseteq X$ is open, and $V \subseteq U$ is relatively compact in $U$. Show that $V$ meets at most finitely many connected components of $U$.
My Attempt (so far)
Let $\{U_i\}_{i \in I}$ be the connected components of $U$, with the $U_i$ disjoint, and $I$ perhaps infinite. Since all the $U_i$ are open (in $U$), and $V \subseteq U$, $\{V \cap U_i\}_{i \in I}$ is an open cover of $V$ (relative to $V$). Since, by assumption, the closure of $V$, which I'll denote $\overline{V}$, is compact in $U$, and $\{\overline{V} \cap U_i\}_{i \in I}$ is an open cover of $\overline{V}$, there exists a finite subcover $\{\overline{V} \cap U_i\}_{i=1}^n$ (sorry for the run-on sentence...).
I then (want to) claim that $V$ meets only the finite set of components $\{U_i\}_{i=1}^n$ given by the finite subcover of $\overline{V}$. This is where I'm getting stuck. Obviously, I need to work in the assumption that $X$ is a manifold someone in here, but I'm not seeing it yet.
Am I on the right track, or should I scrap it?
Finitely many $\bar{V} \cap U_i$ covers $\bar{V}$, and remember that $U_i$ are disjoint to start with. What can you say about all the $\bar{V} \cap U_j$ that does not show up in your finite subcover?
P.S. You already used that $X$ is a manifold when you say that $U_i$ are open. Connected components in general may not be open.