Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 113
  • Last Modified:

Help with selecting data from combobox using VB.NET

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
vcharles
Asked:
vcharles
  • 5
  • 2
  • 2
1 Solution
 
Shane KahkolaDirector of I.T.Commented:
I believe it's combobox.click()

Then it should be SelectedIndexChanged()
0
 
vcharlesAuthor Commented:
Hi,

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

Thanks
0
 
Shane KahkolaDirector of I.T.Commented:
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 Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

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

 
vcharlesAuthor Commented:
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
 
Miguel OzSoftware EngineerCommented:
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
 
vcharlesAuthor Commented:
Thank you.
0
 
vcharlesAuthor Commented:
Hi,

Is there a way to show the label blinking?
Thanks,
Victor
0
 
Miguel OzSoftware EngineerCommented:
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
 
vcharlesAuthor Commented:
Ok. Thanks.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 5
  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now