Folding does not work correctly for visual basic if the lines are not indented "proper".
Everything underneath an opening needs to be at least indented by 1 char. otherwise the folding is messed up.
This is not an issue with c++ source. Here you can format as you like.
I tested this with the latest SciTe and N++.
Attached my sample test file. Set language to vb or c++.