zihoogl.blogg.se

Drawit xamarin
Drawit xamarin










drawit xamarin

I'll need to verify the PaintPicture method, as I don't know VB3 like the back of my hand any longer.

drawit xamarin

Or just set, autoRedraw to True, and use PaintPicture to draw it once where you want on the Form's background. Otherwise, you could use stretchblt, or perhaps the PaintPicture statement to draw the image on your form's background in the paint event. If drawing lines is necessary, then homing your controls in the picturebox may be the best bet. I would think an Image control would be the best bet, but you couldn't draw lines over it. I just tried a few things in VB3 in a Virtual Machine with DOS on it (and Win 3.1), and the above options are valid. labels, and of course behind all "real" controls. You can set it to the lowest zorder of lightweight controls, so it would be behind other lightweight controls, e.g. An Image control is a lightweight control, so is drawn on the form.

drawit xamarin

That way you would fill the form with the picturebox, and place all your controls and do any drawing on the picturebox, not on the form itself. I would have to start up a copy of VB3 to check, but I believe the Picturebox was a container, so an option might be to copy all the controls from the form, and paste them into the picturebox. Then all the "real" controls are drawn over the form in their zorder, so would cover any part of the form they are over, and other controls they are over. You can control the zorder of "lightweight" controls, which controls the order that they are drawn on the Form.

#Drawit xamarin full

A label is a "lightweight" control, meaning that VB is drawing the label on the form, and handling mouse processing behind the scene so it looks like a full control (a window with its own hDC), but it isn't.












Drawit xamarin