G
gilgames
I am new in VB.Net, I need some help.
I want to resize my dialogs dynamically (so that a dialog made for
1280x1024 screens shows properly on 800x640 screen. I make the
calculation in the Handles MyBase.Load event sub Everything works fine,
except if the original screen exceeds the size of the new screen. Some
debugging shows that
frm.Height = CType((frm.Height - bgtl) * heightRatio + bgtl, Integer)
with
frm.Height = 798, bgtl = 22, heightRatio = 2.0
results 1036, instead of the 1574 (in a 1280 x 1024 screen) . Apparently
the set height is cut off artificially (I set Maximum Size 2000,2000,
w/o involving the case).
Is there any variable in form, where I can find the set size.
What is the reason to cut off my set?
Independent question: Why is the size and Location integer instead of
Single?
I am using VB.NET 2003 Professional edition on Windows XP Professional
I want to resize my dialogs dynamically (so that a dialog made for
1280x1024 screens shows properly on 800x640 screen. I make the
calculation in the Handles MyBase.Load event sub Everything works fine,
except if the original screen exceeds the size of the new screen. Some
debugging shows that
frm.Height = CType((frm.Height - bgtl) * heightRatio + bgtl, Integer)
with
frm.Height = 798, bgtl = 22, heightRatio = 2.0
results 1036, instead of the 1574 (in a 1280 x 1024 screen) . Apparently
the set height is cut off artificially (I set Maximum Size 2000,2000,
w/o involving the case).
Is there any variable in form, where I can find the set size.
What is the reason to cut off my set?
Independent question: Why is the size and Location integer instead of
Single?
I am using VB.NET 2003 Professional edition on Windows XP Professional