Solved

Help with selecting data from combobox using VB.NET

Posted on 2015-02-08
9
103 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
  • 5
  • 2
  • 2
9 Comments
 
LVL 3

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 3

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
 

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
3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

 
LVL 35

Accepted Solution

by:
Miguel Oz earned 500 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 35

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

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

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

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 …
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

930 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

10 Experts available now in Live!

Get 1:1 Help Now