473,394 Members | 1,810 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

moody DirectSS1

I have an unusual problem where the following code works fine on many winxp machines while it doesn't on some others. The Directss1 is supposed to read first Lbltext1, then read Lbltext2 (if not hidden) and finally Lbltext4 -- again if not hidden. As I said it works fine on most machines but on others it reads only the last label in the sequence. In other words if all labels are showing and not hidden, it will only read Lbltext4. But if that label is hidden it will only read Lbltext2 and when that is hidden it will read Lbltext1. It does not read all of them in turn. I wonder if the problem is in the code or the machines?


Expand|Select|Wrap|Line Numbers
  1. Private Sub Commd4_Click()
  2.  
  3.     DirectSS1.Speak Lbltext1.Caption
  4.  
  5.     If Lbltext2.Visible = True Then
  6.     DirectSS1.Speak Lbltext2.Caption
  7.     Else: End If
  8.  
  9.     If Lbltext4.Visible = True Then
  10.     DirectSS1.Speak Lbltext4.Caption
  11.     Else: End If
  12.  
  13.  
  14. End Sub
Any help would be appreciated.


Mustakbal
Jul 3 '08 #1
2 2467
debasisdas
8,127 Expert 4TB
if the same code is working on other machines ,how the code be wrong.
Jul 4 '08 #2
I was inclined to think that it wasn't the code but when it happened on more than one machine I thought it best that someone with more knowledge look at the code and see if I overlooked something. It's likely that this problem is related to winxp with a specific service pack. Anyways, is it possible to have the code "force" the execution of reading the first label before it moves to the next label and check if it has to read it.
I'm looking to have the code work properly even on those machines.
Jul 4 '08 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

12
by: David | last post by:
I am a full-time freelance writer. I am seeking an established, professional web designer who has designed more than one successful website for freelance writers. The individual needs to be able...
2
by: Greg Allen | last post by:
I know this has been discussed before, and have found some documentation about it on the web. But nothing has fixed my problem. I am running the 1.1 .NET framework, SP1. I have a web...
3
by: VJ | last post by:
I have 2 datasets, each with a DataTable. Each table has the same primary key, and columns. I am trying to copy rows from one dataset to another, based on an event from my application. It all...
2
by: Crirus | last post by:
How can I change a WebClient timeout in order to allow more time to a server to respond -- Cheers, Crirus ------------------------------ If work were a good thing, the boss would take it...
2
by: active | last post by:
Problem: The PictureBox display appears to have the image cut off. I.e., the image bottom does not display although the PictureBox has room for it. It occurred to me that what was displayed was...
4
by: Bernie Yaeger | last post by:
I'm building a custom textbox for numbers only (actually two of them - one for integers and one that allows currency entries, but let's discuss the integer only control). I'm having a problem...
2
by: Trammel | last post by:
Hi. I have been trying to make a simple application that will sit in the background and alert me of any changes in window focus (IE: Pop-up windows) on my system. I have used...
0
by: Raoul Watson | last post by:
I have a very strange problem with "SendMessage". I have a code which places a graphic picture inside a richtextbox, the code is simple, like this: Editor.glo.Picture = LoadPicture("somepic.bmp")...
3
by: watson58 | last post by:
I have a very strange problem with "SendMessage". I have a code which places a graphic picture inside a richtextbox, the code is simple, like this (form name is "Editor"): Editor.glo.Picture...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.