Visual Basic Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreVisual Basic Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old August 6th, 2003, 03:17 PM
CBrigid CBrigid is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Posts: 1 CBrigid User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Help, please

I'm really new at this and a writer by professional trade so these questions might sound really blonde. I need to know a couple of things.
One: How do I get text to center in the picbox?
Two: What the heck is a mangled thread and how do I get a thread to mangle and then count the vowels it has?
If you can't tell this is all for a class I'm taking (and nearly failing).
Please help me! And explain it like you're explaining it to a two-year-old because I'm a girl and blonde.
Thanks!

Reply With Quote
  #2  
Old August 7th, 2003, 08:55 AM
movEAX_444's Avatar
movEAX_444 movEAX_444 is offline
Cast down
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Location: Sweden
Posts: 321 movEAX_444 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 h 56 m 35 sec
Reputation Power: 6
The center is width divided by 2, and height divided by 2, so find those values and put the text there.

x = picture1.width / 2
y = picture1.height / 2
text at x,y

something like that.

Reply With Quote
  #3  
Old August 7th, 2003, 09:42 AM
hedge hedge is offline
Contributing User
Dev Shed Novice (500 - 999 posts)
 
Join Date: Apr 2002
Posts: 692 hedge User rank is Sergeant (500 - 2000 Reputation Level)hedge User rank is Sergeant (500 - 2000 Reputation Level)hedge User rank is Sergeant (500 - 2000 Reputation Level)hedge User rank is Sergeant (500 - 2000 Reputation Level)hedge User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 4 Days 22 h 25 m 53 sec
Reputation Power: 19
Quote:
Originally posted by movEAX_444
The center is width divided by 2, and height divided by 2, so find those values and put the text there.

x = picture1.width / 2
y = picture1.height / 2
text at x,y

something like that.


not quite, that won't allow for the width of the text

x = (picture1.width - picture1.textwidth("my text"))/2
y = (picture1.height - picture1.textheight("my text"))/2

text at x,y

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreVisual Basic Programming > Help, please


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway