Click here to Skip to main content
16,006,355 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: Weird email problem Pin
Dave Kreskowiak3-Aug-06 1:24
mveDave Kreskowiak3-Aug-06 1:24 
GeneralRe: Weird email problem Pin
eagertolearn3-Aug-06 4:50
eagertolearn3-Aug-06 4:50 
QuestionHow to fetch records from sql database in VB.Net Pin
Technobizz2-Aug-06 7:48
Technobizz2-Aug-06 7:48 
AnswerRe: How to fetch records from sql database in VB.Net [modified] Pin
Stephen McGuire2-Aug-06 7:52
Stephen McGuire2-Aug-06 7:52 
GeneralRe: How to fetch records from sql database in VB.Net Pin
Technobizz2-Aug-06 7:55
Technobizz2-Aug-06 7:55 
GeneralRe: How to fetch records from sql database in VB.Net Pin
Stephen McGuire2-Aug-06 8:39
Stephen McGuire2-Aug-06 8:39 
GeneralRe: How to fetch records from sql database in VB.Net Pin
Technobizz2-Aug-06 8:51
Technobizz2-Aug-06 8:51 
GeneralRe: How to fetch records from sql database in VB.Net [modified] Pin
Stephen McGuire2-Aug-06 9:46
Stephen McGuire2-Aug-06 9:46 
You need to do something like this:

Private Sub POPULATE_Controls
With YourDataSet.Tables("YourTable").Rows _
(Me.BindingContext(YourDataSet, "YourTable").Position)

ControlName.Text = IIf(IsDBNull(.Item("YourFieldName")), "", _
.Item("YourFieldName"))

'Repeat for each field/control

End With
End Sub

Unless you are doing it all in the designer (datasets etc) then you can bind through the properties window. I always do it in code.

To view the next record, you will need to create your navigation buttons and adjust the BindingContext position, then call POPULATE_Controls again.

Steve


-- modified at 15:48 Wednesday 2nd August, 2006
GeneralRe: How to fetch records from sql database in VB.Net Pin
Technobizz2-Aug-06 9:59
Technobizz2-Aug-06 9:59 
GeneralRe: How to fetch records from sql database in VB.Net Pin
Stephen McGuire2-Aug-06 10:32
Stephen McGuire2-Aug-06 10:32 
AnswerRe: How to fetch records from sql database in VB.Net Pin
Solly743-Aug-06 13:41
Solly743-Aug-06 13:41 
QuestionHow to make a DataGrid work the same,when a user clicks or presses keys Pin
fiaolle2-Aug-06 6:41
fiaolle2-Aug-06 6:41 
QuestionIdentify which row is select from list view Pin
Mekong River2-Aug-06 6:30
Mekong River2-Aug-06 6:30 
AnswerRe: Identify which row is select from list view Pin
Stephen McGuire2-Aug-06 7:06
Stephen McGuire2-Aug-06 7:06 
GeneralRe: Identify which row is select from list view Pin
Mekong River2-Aug-06 14:41
Mekong River2-Aug-06 14:41 
GeneralRe: Identify which row is select from list view Pin
Mekong River4-Aug-06 19:02
Mekong River4-Aug-06 19:02 
GeneralRe: Identify which row is select from list view Pin
Stephen McGuire5-Aug-06 3:57
Stephen McGuire5-Aug-06 3:57 
GeneralRe: Identify which row is select from list view Pin
Mekong River5-Aug-06 12:20
Mekong River5-Aug-06 12:20 
QuestionHow to create a popup window in Visual Studio 2005? Pin
frossie2-Aug-06 4:43
frossie2-Aug-06 4:43 
AnswerRe: How to create a popup window in Visual Studio 2005? Pin
Nouvand3-Aug-06 1:12
Nouvand3-Aug-06 1:12 
QuestionProblem with listing the URLs from html source code Pin
Aaron1282-Aug-06 3:38
Aaron1282-Aug-06 3:38 
AnswerRe: Problem with listing the URLs from html source code Pin
Stephen McGuire2-Aug-06 7:22
Stephen McGuire2-Aug-06 7:22 
GeneralRe: Problem with listing the URLs from html source code Pin
Aaron1282-Aug-06 8:16
Aaron1282-Aug-06 8:16 
GeneralRe: Problem with listing the URLs from html source code Pin
Stephen McGuire2-Aug-06 8:45
Stephen McGuire2-Aug-06 8:45 
GeneralRe: Problem with listing the URLs from html source code Pin
Aaron1282-Aug-06 8:52
Aaron1282-Aug-06 8:52 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.