Solved

Other 3 questions from newbie

Posted on 1999-01-22
7
184 Views
Last Modified: 2010-05-18
1. How to change 'Twip' to 'Pixel'? I'm rather difficult to
   program in 'twip'. I have change ScaleMode property to Pixel
   but the Height and Width of my form is still in Twip format.
2. How to make a transparent button?
3. I want to make a database which contains:
   * 1 field for the word -> type: character
   * 1 field for the voice -> type: Wave
   * 1 field for the picture -> type: BMP
   the questions are:
   a. What type should I choose in MDB format for Wave and BMP?
   b. How can I take the Wave and BMP data programmatically and
      show it (for BMP) or to play it on (for the Wave).

Thank you for the attention.
As usual, a stupid newbie needs a help...

Regards,

Stinger
   
0
Comment
Question by:stinger_60284
  • 5
  • 2
7 Comments
 

Author Comment

by:stinger_60284
ID: 1470242
Adjusted points to 100
0
 
LVL 1

Accepted Solution

by:
RichardE earned 100 total points
ID: 1470243
1 - Learn to live with twips.

2 - Standard buttons don't allow transparent. Maybe a 3rd party control can.

3a - Don't store pictures in a DB. Instead store the file name string or whole path string if they are scattered. Then look up filename and keep your pictures in on disk - safer and easier to work with.

3b - Look up the Multi media control in the VB help - it's simple to use. It will do both waves and graphics.
0
 

Author Comment

by:stinger_60284
ID: 1470244
hmmm... okay then... nice suggestion
but do you know how to convert twip to pixel?
i mean 1 twip = ... pixel?
0
IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 

Author Comment

by:stinger_60284
ID: 1470245
and also 1 more thing, how to change font color in Button?
it also black!!! :(
0
 

Author Comment

by:stinger_60284
ID: 1470246
and also 1 more thing, how to change font color in Button?
it always black!!! :(
0
 
LVL 1

Expert Comment

by:RichardE
ID: 1470247
Stinger: You cannot convert Twip to pixel because there are 1440 Twips per inch which ensures the same relative positioning on any screen resolution. Pixels are "fixed" so if you have a form (for example) that you set to 600 pixels wide, it will overlap in 640 x 480 screen mode. But using twips it will be easier to scale on any screen resolution.

Also the standard button does not allow setting font color. If you use another 3rd party button BEWARE : the nightmare of converting your project when a new version of VB comes out and you either have to buy an updated 3rd party control or worse : there is no update - you have a mess to "fix". I have suffered this too many times in the past. So : Unless absolutely necessary avoid them!
0
 

Author Comment

by:stinger_60284
ID: 1470248
Thanks Richard for your help!!!
:)
0

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now