Go Premium for a chance to win a PS4. Enter to Win


Other 3 questions from newbie

Posted on 1999-01-22
Medium Priority
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...


Question by:stinger_60284
  • 5
  • 2

Author Comment

ID: 1470242
Adjusted points to 100

Accepted Solution

RichardE earned 300 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.

Author Comment

ID: 1470244
hmmm... okay then... nice suggestion
but do you know how to convert twip to pixel?
i mean 1 twip = ... pixel?
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!


Author Comment

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

Author Comment

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

Expert Comment

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!

Author Comment

ID: 1470248
Thanks Richard for your help!!!

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
Suggested Courses

876 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