Advertisement

01.10.2001 at 02:10PM PST, ID: 20028846
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

User Control BackStyle issue

Tags: user, control, backstyle
I recently created a nice animation control for myself, but when I move the control, the "vbButtonFace" background obviously interfered with other objects as I moved this control around my form, leaving the usual gray rectangle.

When I set the control's BackStyle from Opaque to Transparent, I got the result I wanted at Run-time but it made it so I could not select the object at Design-time by clicking on it--only by "drag-selecting" it.

Is there a way I can make the control's backstyle Opaque at design time and Transparent at run-time...exclusively inside the user control. i.e. no code should be written in the application which used this control, only in the user control itself.
Start your free trial to view this solution
Question Stats
Zone: Programming
Question Asked By: rspahitz
Solution Provided By: Erick37
Participating Experts: 2
Solution Grade: A
Views: 4
Translate:
Loading Advertisement...
01.10.2001 at 02:22PM PST, ID: 100145

Rank: Master

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
01.10.2001 at 02:23PM PST, ID: 100146

Rank: Genius

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
01.11.2001 at 10:35AM PST, ID: 103123

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
01.11.2001 at 11:02AM PST, ID: 103181

Rank: Genius

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
01.12.2001 at 11:15AM PST, ID: 107590

Rank: Master

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
01.12.2001 at 11:22AM PST, ID: 107619

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
01.12.2001 at 11:27AM PST, ID: 107628

Rank: Genius

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
01.18.2001 at 10:50AM PST, ID: 120354

Rank: Genius

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
01.18.2001 at 11:02AM PST, ID: 120384

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
01.18.2001 at 11:12AM PST, ID: 120403

Rank: Genius

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
01.18.2001 at 11:22AM PST, ID: 120432

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
01.29.2001 at 09:45AM PST, ID: 196470

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 
Loading Advertisement...
Microsoft
  • Internet Protocols
  • Applications
  • Development
  • OS
  • Hardware
  • Windows Security
Apple
  • Operating Systems
  • Hardware
  • Programming
  • Networking
  • Software
Internet
  • Search Engines
  • File Sharing
  • WebTrends / Stats
  • Spy / Ad Blockers
  • Web Browsers
  • New Net Users
  • Web Development
  • Chat / IM
  • Anti Spam
  • Web Servers
  • Anti-Virus
  • Email Clients
Gamers
  • Tips
  • Online / MMORPG
  • Puzzle
  • Emulators
  • Action / Adventure
  • Role Playing
  • Consoles
  • Game Programming
  • Strategy
  • Sports
  • Misc
  • Computer Games
Digital Living
  • Hardware
  • Automotive
  • New Net Users
  • New Users
  • Software
  • Digital Music
  • Gaming World
  • Home Security
  • Apple
  • Networking Hardware
Virus & Spyware
  • Vulnerabilities
  • IDS
  • Encryption
  • Anti-Virus
  • Operating Systems Security
  • Software Firewalls
  • WebApplications
  • Cell Phones
  • Operating Systems
  • Internet
  • Hardware Firewalls
Hardware
  • Displays / Monitors
  • Handhelds / PDAs
  • Components
  • Peripherals
  • Laptops/Notebooks
  • Servers
  • Misc
  • Apple
  • Embedded Hardware
  • Networking Hardware
  • Storage
  • Desktops
  • New Users
Software
  • System Utilities
  • Industry Specific
  • Network Management
  • Photos / Graphics
  • Page Layout
  • VMware
  • Misc
  • Web Development
  • OS
  • CYGWIN
  • Voice Recognition
  • Virtualization
  • Message Queue
  • Quality Assurance
  • Security
  • Firewalls
  • MultiMedia Applications
  • Development
  • Database
  • Office / Productivity
  • Business Management
  • OS/2 Apps
  • Server Software
  • Internet / Email
ITPro
  • OS
  • Storage
  • Encryption
  • Operating Systems Security
  • Apple Hardware
  • Laptops & Notebooks
  • Servers
  • Networking Hardware
  • Peripherals
  • Devices
  • Displays / Monitors
  • WebTrends / Stats
  • Search Engines
  • Firewalls
  • Web Computing
  • WebApplications
  • IDS
  • Vulnerabilities
  • Email Clients
  • File Sharing
  • Spy / Ad Blockers
  • Web Browsers
  • Web Servers
  • Networking
  • Anti-Virus
  • Consulting
  • Chat / IM
  • Anti Spam
Developer
  • Web Servers
  • Web Browsers
  • Game Programming
  • Dev Tools
  • Industry Specific
  • Office / Productivity
  • Database
  • CYGWIN
  • Web Development
  • Search Engines
  • File Sharing
  • WebTrends / Stats
  • Programming
  • Content Management
  • Application Servers
  • Protocols
Storage
  • Removable Backup Media
  • Storage Technology
  • Servers
  • Grid
  • Remote Access
  • Backup / Restore
  • Misc
  • Hard Drives
OS
  • Miscellaneous
  • Security
  • Development
  • Linux
  • VMware
  • MainFrame OS
  • Unix
  • Apple
  • OS / 2
  • AS / 400
  • BeOS
  • Microsoft
  • VMS / OpenVMS
Database
  • Oracle
  • Miscellaneous
  • MySQL
  • Software
  • Sybase
  • Contact Management
  • PostgreSQL
  • Data Manipulation
  • Clarion
  • InterSystems Cache
  • Siebel
  • MUMPS
  • OLAP
  • SQLBase
  • SAS
  • GIS & GPS
  • 4GL
  • Berkeley DB
  • DB2
  • Informix
  • Interbase / Firebird
  • FoxPro
  • Reporting
  • LDAP
  • Filemaker Pro
  • MS SQL Server
  • dBase
  • MS Access
Security
  • Misc
  • Web Browsers
  • Software Firewalls
  • Operating Systems Security
  • File Sharing
  • Spy / Ad Blockers
  • Vulnerabilities
  • WebApplications
  • IDS
  • Anti-Virus
  • Encryption
  • Anti Spam
  • Email Clients
  • VPN
  • Chat / IM
Programming
  • Editors IDEs
  • Installation
  • Handhelds / PDAs
  • Multimedia Programming
  • System / Kernel
  • Automation
  • Algorithms
  • Game
  • Signal Processing
  • Project Management
  • Open Source
  • Database
  • Misc
  • Languages
  • Processor Platforms
  • Theory
Web Development
  • Scripting
  • Blogs
  • Web Servers
  • Software
  • Search Engines
  • Web Graphics
  • Web Services
  • Images
  • Internet Marketing
  • Images and Photos
  • Components
  • Document Imaging
  • Web Languages/Standards
  • Illustration
  • WebApplications
  • Fonts
  • WebTrends / Stats
  • Authoring
  • Digital Camera Software
  • Miscellaneous
Networking
  • Protocols
  • Apple Networking
  • Network Management
  • Message Queue
  • Application Servers
  • Content Management
  • File Servers
  • Email Servers
  • Misc
  • Java Editors & IDEs
  • Wireless
  • Networking Hardware
  • Backup / Restore
  • System Utilities
  • ISPs & Hosting
  • Web Servers
  • Storage Technology
  • Removable Backup Media
  • Servers
  • Web Computing
  • Broadband
  • Grid
  • OS / 2
  • Novell Netware
  • Unix Networking
  • Windows Networking
  • Security
  • Telecommunications
  • Operating Systems
  • Linux Networking
Other
  • Lounge
  • Business Travel
  • Community Support
  • New Net Users
  • Philosophy / Religion
  • Math / Science
  • Miscellaneous
  • URLs
  • Expert Lounge
  • Politics
  • Puzzles / Riddles
  • Automotive
Community Support
  • Suggestions
  • New to EE
  • New Topics
  • CleanUp
  • Announcements
  • General
  • Feedback
  • Input
  • EE Bugs
 
01.10.2001 at 02:22PM PST, ID: 100145

Rank: Master

Paste this code in the user control

Private Sub UserControl_Initialize()
UserControl.BackStyle = vbTransparent
End Sub

Good Luck....

Ajay Chadha...:-)
 
01.10.2001 at 02:23PM PST, ID: 100146

Rank: Genius

Use the Ambient property to determine this:

Private Sub UserControl_Show()
    If (UserControl.Ambient.UserMode) Then
        Debug.Print "Run Time"
        UserControl.BackStyle = 0
    Else
        Debug.Print "Design Time"
        UserControl.BackStyle = 1
    End If
End Sub
Accepted Solution
 
01.11.2001 at 10:35AM PST, ID: 103123
I tried to Award points to Erick37 but was told that I didn't have enough...hmm then what was the purpose of the escrow account?  My balance is 20, but that shouldn't impact the awarding of points.

Now when I try to accept the answer, I get a server error indicating that this question was not found.

Anyone know how this system works?  This is my first experience with awarding points.

 
01.11.2001 at 11:02AM PST, ID: 103181

Rank: Genius

It's a bug in the new EE.

Contact Customer Support
cs@Experts-exchange.com
and they will take care of it.

Thanks!
 
01.12.2001 at 11:15AM PST, ID: 107590

Rank: Master

Erick37 , That was what I already said. UserControl_Initialize() Will only fire when it has to be initialised i.e. at run time...
 
01.12.2001 at 11:22AM PST, ID: 107619
Maybe, but I tried it and it didn't do anything for me, probably because there is (according to the microsoft documentation) design-time, control run-time, and user run-time.

In order for the control to be useable in another project, it has to be "running", so it initializes when you add it to another project at design time.  Read the doc; it's pretty interesting in how it describes the lifetime of a control.

 
01.12.2001 at 11:27AM PST, ID: 107628

Rank: Genius

Ajay:

The Initialize event fires both in the VB IDE (on a form during design time), and when it is  run in a compiled program (runtime).

In order to distinguish between the two environments, we need to examine the Ambient.UserMode property.
 
01.18.2001 at 10:50AM PST, ID: 120354

Rank: Genius

Hi rspahitz

Any luck getting EE to allow you to accept the answer?
 
01.18.2001 at 11:02AM PST, ID: 120384
EE sent me a messages to try again to accept the comment, but it still hasn't worked.  If you bear with me for another week and a half, I will have accumulated enough to close this.

I'm kind of new to this (obviously), and I thought that by answering other people's questions I would get enough to use toward this question, but I guess Expert points are only good for prestige and T-shirts!?

Either way, I'm having fun sharing my knowledge (or sometimes stupidity when I answer questions!)
 
01.18.2001 at 11:12AM PST, ID: 120403

Rank: Genius

You shouldn't have to pay twice for one question.  There is still a bug in the system that needs to be corrected.  In the mean time, don't increase the points because you have already deposited them.
 
01.18.2001 at 11:22AM PST, ID: 120432
I'll find out how it works when I get there, but I have a feeling there is a logic flaw in their programming that is checking the wrong field when crediting points.  It should be checking the escrow value for the original amount, plus the Question Points for any added amounts.  I think it's just checking Question Points for the sum.

Since this question is 135, and my balance is (currently) 40, it thinks I don't have enough even though the amount is in escrow.  I'm guessing that when my balance gets to 135, the logic will see that I have enough points, then deduct from the escrow account, leaving me (still) with 135.

Either way, it's a bug that should be fixed so newbies don't get frustrated.  I'll try to continue pursuing this.
 
01.29.2001 at 09:45AM PST, ID: 196470
The "insufficient" question points problem has been fixed!
 
 
20080236-EE-VQP-29