We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

Form is not Refreshing the Combo it's combo box.

Thread ID:

Created:

Updated:

Platform:

Replies:

4706 May 27,2003 07:56 AM May 28,2003 06:40 AM Windows Forms 1
loading
Tags: FAQ
Peter
Asked On May 27, 2003 07:56 AM

I have 2 forms. Form (A) - has one combo box with all customers Form (B) - All customer's demographic data. When I open form(B) and add additional customer to my database and close this form I want my combo box on form (A) to get updated without to have to close the form and invoce it again. I tried the following and it didn't work: 1) On Closing of my form (B) I did Dim A as New FormA A.Refresh

Raphael
Replied On May 28, 2003 06:40 AM

If you use a dataset you just can do it in thi way: If you call the Form(B) from Form(A) Form(a) Dim b As New FormB() b.Show(dataset) Form(b) Public Overloads Sub Show(ByVal ds As DataSet) bDs = ds Me.Show() Application.DoEvents() End Sub That should work when you close the form the combobox has the new value added > I have 2 forms. > Form (A) - has one combo box with all customers > Form (B) - All customer's demographic data. > > When I open form(B) and add additional customer to my database and close this form I want my combo box on form (A) to get updated without to have to close the form and invoce it again. > > I tried the following and it didn't work: > 1) On Closing of my form (B) I did > Dim A as New FormA > A.Refresh > >

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;