Re: Combobox refresh in tab page

Tech-Archive recommends: Speed Up your PC by fixing your registry



Hello,
How are you doing?

You may try the click event and check the focus of the tab page:

Private Sub TabControl1_Click(ByVal sender As Object, ByVal e As
System.EventArgs) Handles TabControl1.Click
If TabControl1.TabPages.Item(1).Focus = True Then
........
Enf If
End Sub

I hope this helps.

Thanks
Mona
[Grapecity]




<lbolognini@xxxxxxxxx> wrote in message
news:1125780416.807903.68590@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
> Hi all,
>
> I've seen there have been a number of posts about this issue but
> couldn't find anything useful in none of them. The "put it inside a
> panel" trick didn't work either.
>
> I've got a combobox inside a tab page and I'd like to refresh it's
> content upon opening of the tab page.
>
> 1) What's the right event for the tab page? Click, Paint or Enter?
> 2) What's the correct event for the combobox control to be refreshed?
> Refresh or Update?
>
> I'm using the Visual Studio 2005 latest Beta
>
> Thanks in advance
> Lorenzo
>


.



Relevant Pages

  • Re: ActiveControl again
    ... the frame exit event fires as I recall. ... This time if you tab forward from txt2 then opt1 enter is not fired though ... Private Sub OptionButton1_Enter ... WhichOptionButton ...
    (microsoft.public.excel.programming)
  • Re: Append Query Date Criteria Problem.
    ... it will be best to get it working in the query. ... INSERT INTO tblSSAttendance (SSClassID, SSClassDate, SSMemberID, ... Form Data Tab: ... Private Sub btnAddNewRecords_Click ...
    (microsoft.public.access.queries)
  • Re: ActiveControl again
    ... backtab staight from the txtbox after the frame. ... consider users wanting to tab and use accelerator keys, ... "Tom Ogilvy" wrote: ... Private Sub OptionButton1_Enter ...
    (microsoft.public.excel.programming)
  • Re: MultiTab userform question
    ... You probably do not need to change back to the previous tab to run the code ... Private Sub Multipage1_Click ... Dim myPage ... Saving the name of the new sheet. ...
    (microsoft.public.excel.programming)
  • Re: Refresh tabs
    ... Private Sub Workbook_SheetActivate ... Microsoft MVP - Excel ... If however I clikc F9 the tab is fine. ... I was considering a macro that would refresh every 15 ...
    (microsoft.public.excel.misc)