vb programming, selecting many lbls (1 Viewer)

velox

Retired
Joined
Mar 19, 2004
Messages
5,521
Location
Where the citi never sleeps.
Gender
Male
HSC
N/A
how do select all the screen elements in a frame, so u can move them? I have 20 labels on top of eacch other, how can i move them altogether?
Thanks
 
Last edited:

sunny

meh.
Joined
Jul 7, 2002
Messages
5,350
Gender
Male
HSC
2002
Start by deselecting the frame. Select one of your labels in the frame, hold shift, select the other ones.

To select an area with your mouse, deselect the frame, hold control, click and hold and select the area inside the frame you want selected.
 

sunny

meh.
Joined
Jul 7, 2002
Messages
5,350
Gender
Male
HSC
2002
wrx said:
thanks, but ive worked out a way, that i dont need to move them. Its way to hard to move them as they gotta be exactly on top of each other.
Then don't move them and use the Left and Top properties instead, or do it all with code at runtime.
 

velox

Retired
Joined
Mar 19, 2004
Messages
5,521
Location
Where the citi never sleeps.
Gender
Male
HSC
N/A
Ah ok thanks :) I have another problem now sorry :( Im making a calendar/alarm clock etc. And ive done the code for the alarm, but whenever i click enable alarm, the alarm starts playing? Its not supposed to play until the time is up. The code is attached as a notepad document. Cheers
 

sunny

meh.
Joined
Jul 7, 2002
Messages
5,350
Gender
Male
HSC
2002
I'll assume you've set the timer's duration at design time?
 

sunny

meh.
Joined
Jul 7, 2002
Messages
5,350
Gender
Male
HSC
2002
If you haven't solved it yourself already, could you zip the project to me instead? I can't tell from the code on text

sunny[at]boredofstudies.org
 

J0n

N/A
Joined
Aug 28, 2003
Messages
410
Gender
Male
HSC
2004
I couldn't step through your code to find out what was wrong, since the project didn't open properly for me, but for you alarm clock code, why are you using strings to store times? Visual Basic has the Date data-type, and using that, you would be able to use the DateDiff() function to check if it was time to set off the alarm.

Another thing i noticed, is it would be a bit easier for others to read if you used meaningful control names instead of Text1, and Command2.

Could you post the exact line that you get that "compile error : User-defined type not defined" error? Cause i can't seem to view your project proprely.
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Top