Hi, How can I setBounds of a component in percentage of screen size so that the interface looks same on different resolutions. I am using Visual Studio 2008. When I click on a button in designer view it shows me button's properties on right side. There I can set Location (x and y) of the button. But it allows me to enter only numbers. I want to add some formula like: For x: SystemInformation.PrimaryMonitorSize.Width / 2; For Y: SystemInformation.PrimaryMonitorSize.Height / 2; Could anyone please help me fix this ??
|+0 forum 6|
(I'm using Vis Studio 2008 and a textbook written for VB2008) Okay, so this problem from my textbook requires me to "animate" (read: move a picture box) a picture of a "robot" finding it's way to a wall and returning to it's original position. I have the logic of the program itself mostly figured out, but the moving of the picture box is alluding me at the moment. My code is as follows: [code=vb] Private Sub btnStart_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnStart.Click Dim totalCount As Integer = 0 Dim isTouchingWall As Boolean = False Dim armsRaised …
|+0 forum 0|