?
Solved

Help with selecting data from combobox using VB.NET

Posted on 2015-02-08
9
Medium Priority
?
109 Views
Last Modified: 2015-02-09
Hi,
What is the first property activated when you select a row from a  combobox? I included a code to display label indicating code is processing in the selectindex property bu the label does not display when I select a row, until search code is completed.

Victor
0
Comment
Question by:vcharles
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 2
  • 2
9 Comments
 
LVL 4

Expert Comment

by:Shane Kahkola
ID: 40597500
I believe it's combobox.click()

Then it should be SelectedIndexChanged()
0
 

Author Comment

by:vcharles
ID: 40597590
Hi,

Problem with Click is the label appears before I select a row.

Thanks
0
 
LVL 4

Expert Comment

by:Shane Kahkola
ID: 40597648
Right, I was confirming order of events during operation.  Are you sure it's not just happening so fast you're not seeing it?
0
Free Backup Tool for VMware and Hyper-V

Restore full virtual machine or individual guest files from 19 common file systems directly from the backup file. Schedule VM backups with PowerShell scripts. Set desired time, lean back and let the script to notify you via email upon completion.  

 

Author Comment

by:vcharles
ID: 40597709
Hi,
It is happening but after the code executes for example, code  in selectindexchanged

Label1.visible = True
Code
Label1.visible  = false

Code takes about 10 seconds to complete execution, meanwhile the label to indicate code is processing does not appear, until the code completes its execution.
0
 
LVL 36

Accepted Solution

by:
Miguel Oz earned 2000 total points
ID: 40597719
Your code must force the label to be refreshed in the UI. For win forms, use the Refresh method as shown below:
Label1.visible = True
Label1.Refresh()
 Code
 Label1.visible  = false

Note: Your initial code does not work because label UI changes will not be applied until the event runs all your event code. Keep in mind that windows queue all your UI events for processing.
0
 

Author Closing Comment

by:vcharles
ID: 40598015
Thank you.
0
 

Author Comment

by:vcharles
ID: 40598018
Hi,

Is there a way to show the label blinking?
Thanks,
Victor
0
 
LVL 36

Expert Comment

by:Miguel Oz
ID: 40599420
Victor:
I do not think it is feasible to do it with your current implementation. Most label blinking implementations relied on timer events.
You could open another question in case other experts may have different advice.
0
 

Author Comment

by:vcharles
ID: 40599522
Ok. Thanks.
0

Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

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

This article describes relatively difficult and non-obvious issues that are likely to arise when creating COM class in Visual Studio and deploying it by professional MSI-authoring tools. It is assumed that the reader is already familiar with the cla…
It’s quite interesting for me as I worked with Excel using vb.net for some time. Here are some topics which I know want to share with others whom this might help. First of all if you are working with Excel then you need to Download the Following …
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…
Suggested Courses

765 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