Click here to Skip to main content
15,899,314 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
GeneralRe: How can I use 'ApplyPropertyChanges()' to update the entity's navigation properties? [modified] Pin
Not Active16-Nov-09 1:08
mentorNot Active16-Nov-09 1:08 
GeneralRe: How can I use 'ApplyPropertyChanges()' to update the entity's navigation properties? [modified] Pin
chriskwok@live.cn16-Nov-09 3:44
chriskwok@live.cn16-Nov-09 3:44 
GeneralRe: How can I use 'ApplyPropertyChanges()' to update the entity's navigation properties? [modified] Pin
Not Active16-Nov-09 3:59
mentorNot Active16-Nov-09 3:59 
AnswerRe: How can I use 'ApplyPropertyChanges()' to update the entity's navigation properties? Pin
Not Active16-Nov-09 1:37
mentorNot Active16-Nov-09 1:37 
QuestionHow to Export data from SQL Server to Excel Pin
zizigolo11013-Nov-09 16:53
zizigolo11013-Nov-09 16:53 
AnswerRe: How to Export data from SQL Server to Excel Pin
kstls14-Nov-09 0:17
kstls14-Nov-09 0:17 
AnswerRe: How to Export data from SQL Server to Excel Pin
computerhussain15-Nov-09 19:54
computerhussain15-Nov-09 19:54 
QuestionProblem with items for listview . if can't ,say me please [modified] Pin
darkyro13-Nov-09 11:51
darkyro13-Nov-09 11:51 
hi i'm creating a program with two listview.
one get the "Group" and other get the "members of the selected Group"

but i have problem
only get the first member .


 Private Sub ListView1_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles ListView1.SelectedIndexChanged

lstestacoes.Clear()
lstestacoes.View = View.LargeIcon
Try
If con.State = ConnectionState.Open Then con.Close()
con.Open()
Dim ind As Integer
Dim temp As String

For Each item As ListViewItem In ListView1.SelectedItems
If item.Selected = True Then

temp = item.SubItems(0).Text
itemSelected = item.SubItems(0).Text
Dim cmd As New OleDbCommand("select * from Estacao WHERE idGrupo= '" & temp & "'", con)

Dim drdr As OleDbDataReader
drdr = cmd.ExecuteReader
If drdr.Read() Then
ind = ind + 1
Dim i As New ListViewItem(ind)
i.Text = drdr.Item("Nome")
i.ImageIndex = 0
lstestacoes.Items.AddRange(New ListViewItem() {i})

Else
cmd.Cancel()
con.Close()
End If
End If
Next item


Catch ex As Exception
MsgBox(ex.Message)
End Try

End Sub


My database have two tables "Grupo" and "Estacoes"
obs : "Grupo" is the Group and "Estacoes" is the members

at the group i have = id,name
and in Estacoes i have = id,name,ip,descricao,grupo


how can i set to get all members ?




D'Oh! | :doh: SORRY LONG TIME I'M NOT SPEAK ENGLISHCool | :cool:

modified on Friday, November 13, 2009 6:09 PM

AnswerRe: Problem with items for listview . if can't ,say me please Pin
Luc Pattyn13-Nov-09 11:58
sitebuilderLuc Pattyn13-Nov-09 11:58 
GeneralRe: Problem with items for listview . if can't ,say me please Pin
darkyro13-Nov-09 12:08
darkyro13-Nov-09 12:08 
AnswerRe: Problem with items for listview . if can't ,say me please Pin
Shameel13-Nov-09 23:43
professionalShameel13-Nov-09 23:43 
GeneralRe: Problem with items for listview . if can't ,say me please Pin
darkyro14-Nov-09 1:04
darkyro14-Nov-09 1:04 
QuestionA class for DataBase Connection Codes Pin
shahab202513-Nov-09 11:02
shahab202513-Nov-09 11:02 
AnswerRe: A class for DataBase Connection Codes Pin
darkyro13-Nov-09 11:49
darkyro13-Nov-09 11:49 
AnswerRe: A class for DataBase Connection Codes Pin
The Man from U.N.C.L.E.14-Nov-09 3:14
The Man from U.N.C.L.E.14-Nov-09 3:14 
AnswerRe: A class for DataBase Connection Codes Pin
The Man from U.N.C.L.E.14-Nov-09 3:16
The Man from U.N.C.L.E.14-Nov-09 3:16 
Questionunable to run application on client machine Pin
gargprabhat201013-Nov-09 6:07
gargprabhat201013-Nov-09 6:07 
QuestionHow connect remote sql/oracle database server through .net Pin
Avneesh Sharma jaani12-Nov-09 2:43
Avneesh Sharma jaani12-Nov-09 2:43 
AnswerRe: How connect remote sql/oracle database server through .net Pin
Not Active12-Nov-09 3:24
mentorNot Active12-Nov-09 3:24 
GeneralRe: How connect remote sql/oracle database server through .net Pin
Avneesh Sharma jaani13-Nov-09 1:54
Avneesh Sharma jaani13-Nov-09 1:54 
GeneralRe: How connect remote sql/oracle database server through .net Pin
Dave Kreskowiak13-Nov-09 4:40
mveDave Kreskowiak13-Nov-09 4:40 
Questionthe channel tag is not found in the machine.comfig Pin
prasadbuddhika11-Nov-09 16:43
prasadbuddhika11-Nov-09 16:43 
QuestionGenerating help documentation Pin
Not Active11-Nov-09 9:06
mentorNot Active11-Nov-09 9:06 
AnswerRe: Generating help documentation Pin
Pete O'Hanlon11-Nov-09 9:09
mvePete O'Hanlon11-Nov-09 9:09 
GeneralRe: Generating help documentation Pin
Not Active11-Nov-09 9:34
mentorNot Active11-Nov-09 9:34 

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.