If you are having trouble with "Alt Gr" key on Slovenian, German and some other keyboards in Virtual PC, be sure to change the "Host Key" in Settings to something other than "Right Alt" which is exactly "Alt Gr".
I have selected "Scroll Lock", but you could choose any other seldom used key.