Hello Frank,
Yes, thank you very much! That's great. It means that you can actually "paint" a Winforms control on a VO style X# window but you have to do it by code, not by using the toolbox, add a control and use the mouse to give it it's position and size.
To explain to other readers:
There's no control painted on the VO Windows form, instead this code displays the picture. It places the picture in the given Location of the window with the given Size; I added SizeMode to zoom it, otherwise a large picture only shows that portion of the picture that fits in the assigned Size. Frank has this code in the PostInit of the VO style window.
Self:pictureBox1:= System.Windows.Forms.PictureBox{}
Self:pictureBox1:Location := System.Drawing.Point{1, 1}
Self:pictureBox1:Name := "e""pictureEdit1"
Self:pictureBox1:Size := System.Drawing.Size{400, 400}
Self:pictureBox1:SizeMode:= System.Windows.Forms.PictureBoxSizeMode.Zoom
Self:pictureBox1:Visible := True
Self:pictureBox1:TabIndex := 700
Self:pictureBox1:Load("c:\temp\SomePicture.jpg")
SetParent(Self:pictureBox1:Handle, Self:Handle())
Return Nil
But I have 1 issue which is probably a X#/VS issue and maybe someone recognizes . The programs compiles & runs. But of the .xsfrm or .xsmnu open when I double click or right click View Designer. I have checked if any files needed to be set to trusted but no. I added a VO form and that only gives some XML code. No designer.
I have a converted VO app, SSA, and every form opens the designed in VS. I actually copied the Window1.prg/xsfrm/rc files from Frank's sample and dragged them in the SSA solution. Here I could open it and saw that there were no controls on the window.
What am I missing here?
Dick