Browse Dialog Question


Author
Message
Paul Chase
Paul Chase
Advanced StrataFrame User (576 reputation)Advanced StrataFrame User (576 reputation)Advanced StrataFrame User (576 reputation)Advanced StrataFrame User (576 reputation)Advanced StrataFrame User (576 reputation)Advanced StrataFrame User (576 reputation)Advanced StrataFrame User (576 reputation)Advanced StrataFrame User (576 reputation)Advanced StrataFrame User (576 reputation)
Group: Forum Members
Posts: 414, Visits: 2.8K
I am using the following code to populate a browse dialog of possible zip code for a city. The problem I am having is that the record pointer does not seem to move to the selected city/zip combination after the browse intead it is sitting on the first record of the browse resultd for that city. I would think the record pointer of the BO would be set on the record selected from the browse results dialog instead of the first record of the result set. any ideas on whats going on

''' <summary>

''' Populates a Browse Dialog of Possible ZipCodes For a City

''' </summary>

''' <param name="sender"></param>

''' <param name="e"></param>

''' <remarks></remarks>

Private Sub ShowZipCodes(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles txtjscity.KeyDown

If e.KeyCode = Keys.Enter Then

Me.ZipCodeDialog.SearchFields.Item(0).InitialValue = Me.txtjscity.Text.Trim

If Me.ZipCodeDialog.ShowDialog(True) = Windows.Forms.DialogResult.OK Then

Me.txtjscity.Text = Me.ZipCodesBO1.CITY

Me.txtjsstate.Text = Me.ZipCodesBO1.STATE

Me.txtjszip.Text = Me.ZipCodesBO1.ZIP

Else

'Nothing was Selected-- ///*TODO-- Do we want to do anything here?

End If

End If

End Sub

 

GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...





Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search