Quote:
|
Originally Posted by Nilhanth
Is there a way around this at all?
|
Unfortunately the manifest file IS the workaround.
But of course there are other ways..
1.) You could create your own WinXP specific usercontrol
2.) You could subclass
3.) You could use a picturebox containing a graphic image that
looks like the command button (but modified to suit your particular WinXP Visual Style needs). The limitation with using pictureboxes is that they are rectangular, but you can use custom regions to reshape the picturebox into maybe an oval/elliptical pill-shape (rounding the corners like a rounded rect and letting the form's background show through at the corners).
4.) You could take a "virtual command button" approach with a little Bitblt-ing and PtInRect testing:
http://www.xtremevbtalk.com/showpost.php?p=797088
..for multiple virtual controls the "amtar" technique can be substituted for multiple (looping) PtInRect calls:
http://www.xtremevbtalk.com/showpost.php?p=1061210
Note: The VB6 controls are ever more showing their age and this issue will may come to the forefront even more when the next version of Windows (Vista/Longhorn) is released with a whole new set of U/I elements like those found in the current Office 12 beta.