| | |
Setting a range
Please support our Visual Basic 4 / 5 / 6 advertiser: Programming Forums - DaniWeb Sister Site
![]() |
it seems to me like you will need to calculate the height of the shape. So something like
But remember, it might be shape1.top + shape1.height, depending on how you are looking at it, because the screen starts 0,0 at the very top left and then gets bigger going down and to the right. Here is a program's source that I wrote for a friend of mine that lets him put the mouse in a given point on the screen, and while it's in that given area, it disables the screen saver
Visual Basic 4 / 5 / 6 Syntax (Toggle Plain Text)
if shape1.top = 8000 and (shape1.top - shape1.height) = 6000 then msgbox "yup" end if
But remember, it might be shape1.top + shape1.height, depending on how you are looking at it, because the screen starts 0,0 at the very top left and then gets bigger going down and to the right. Here is a program's source that I wrote for a friend of mine that lets him put the mouse in a given point on the screen, and while it's in that given area, it disables the screen saver
![]() |
Similar Threads
- input signal is out of range (Monitors, Displays and Video Cards)
- ComboBox woes (C#)
- Input signal out of range (Windows NT / 2000 / XP)
- Index was out of range. Must be non-negative and less than the size of the collection (VB.NET)
- configuring linux as network server and web server (Linux Servers and Apache)
- another newbie with alot of redhat and apache server Q'S (Linux Servers and Apache)
- Setting up an ISP (medium scale) (Networking Hardware Configuration)
- newbie: need help setting up my network, router + firewall problems (Networking Hardware Configuration)
Other Threads in the Visual Basic 4 / 5 / 6 Forum
- Previous Thread: Help Using Visual Basic Timer
- Next Thread: progress bar problem in vb
| Thread Tools | Search this Thread |
* 6 429 2007 access activex add age append application basic beginner birth bmp calculator cd cells.find click client code college column component connection connectionproblemusingvb6usingoledb copy creat ctrl+f data database datareport date delete dissertations dissertationthesis dissertationtopic edit error excel excelmacro file filename form hardware header iamthwee image inboxinvb internetfiledownload keypress label listbox listview liveperson login looping machine microsoft movingranges number objectinsert open oracle password prime program prompt range-objects readfile reading record refresh remotesqlserverdatabase report retrieve save search sendbyte sites sort sql sql2008 sqlserver subroutine table tags textbox time urldownloadtofile vb vb6 vb6.0 vba visual visualbasic visualbasic6 web window windows






