Hi, I am quite beginner with VB, so please do sorry for such obvious question
I have certain problem with positioning InputBox forum in Visual Basic.
I would like to position this form in right-bottom corner of my screen, but I cannot achive this. I would like to do this dinamicly, so it fit by itself whatever screen resolution or size client has.
The code I am using is quite simple:
Now, the Input Box form is positioned at the left-top corner.Code:Public Sub inputNumber() Dim Number As Double On Error GoTo ErrorHandler Number = InputBox("Please insert Number", "NA", "", 0, 0) Select Case Number Case Is > 0 MsgBox "Number is bigger then 0" Case Is < 0 MsgBox "Number is smaller then 0" Case Else MsgBox "Number = 0" End Select ErrorHandler: MsgBox "You have not provided number" End Sub
Can anyone help me with this problem?
Thanks in advance





Reply With Quote