[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 112
  • 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
Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

 
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

Featured Post

The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

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