Click here to Skip to main content
15,913,941 members
Home / Discussions / C#
   

C#

 
AnswerRe: code to validate date field in a combobox Pin
User 66582-Dec-06 6:19
User 66582-Dec-06 6:19 
QuestionExport datagrid with image to word file Pin
josueaspnet2-Dec-06 5:06
josueaspnet2-Dec-06 5:06 
QuestionMessage Removed Pin
2-Dec-06 3:15
Reza Shademani2-Dec-06 3:15 
AnswerRe: Access vector from C# Pin
Judah Gabriel Himango2-Dec-06 9:57
sponsorJudah Gabriel Himango2-Dec-06 9:57 
GeneralRe: Access vector from C# Pin
Christian Graus2-Dec-06 10:39
protectorChristian Graus2-Dec-06 10:39 
QuestionChat Server Pin
SaarDagan2-Dec-06 0:36
SaarDagan2-Dec-06 0:36 
AnswerRe: Chat Server Pin
Bassam Saoud2-Dec-06 1:08
Bassam Saoud2-Dec-06 1:08 
AnswerRe: Chat Server Pin
abd_o_d3-Dec-06 8:19
abd_o_d3-Dec-06 8:19 
Hi, if u r still looking for answer about your question I have one, I have worked on something like this and I've used a database.mdb with a checkbox feild that specifies wether the user online or not, and this can help in viewing the users as online and offline in the list view, the code is something like the following:
<br />
        Dim onlineusers As Integer<br />
        Dim cnn As New OleDbConnection<br />
        Dim da As OleDbDataReader<br />
        Dim cmd As New OleDbCommand<br />
        ListView1.Clear()cnn.ConnectionString= "Provider=Microsoft.JET.OLEDB.4.0;DATASOURCE=\\127.0.0.1\Messenger\chatdb.MDB"<br />
        cnn.Open()<br />
        cmd.Connection = cnn<br />
        cmd.CommandText = "select nickname,online from users"<br />
        da = cmd.ExecuteReader()<br />
        Do While da.Read<br />
            If da.GetValue(1) = "False" Then<br />
                ListView1.Items.Add(da.GetValue(0), 2)<br />
            Else<br />
                ListView1.Items.Add(da.GetValue(0), 1)<br />
            End If<br />
<br />
        Loop<br />
        cnn.Close()

in the previous code, the value 2 stands for the list item that represents offline user, and 1 for online user.

**3bood**
Just Wanna Learn More
QuestionGridview Sorting Problem Pin
fahiemulleh1-Dec-06 23:37
fahiemulleh1-Dec-06 23:37 
QuestionHow to restore Database from backup file ? Pin
fahiemulleh1-Dec-06 22:57
fahiemulleh1-Dec-06 22:57 
AnswerRe: How to restore Database from backup file ? Pin
Bassam Saoud2-Dec-06 0:21
Bassam Saoud2-Dec-06 0:21 
QuestionICON Problem Pin
Bulky Fellow1-Dec-06 22:08
Bulky Fellow1-Dec-06 22:08 
AnswerRe: ICON Problem Pin
Luc Pattyn2-Dec-06 2:50
sitebuilderLuc Pattyn2-Dec-06 2:50 
GeneralRe: ICON Problem Pin
Bulky Fellow2-Dec-06 20:20
Bulky Fellow2-Dec-06 20:20 
AnswerRe: ICON Problem Pin
giddy_guitarist2-Dec-06 8:39
giddy_guitarist2-Dec-06 8:39 
GeneralRe: ICON Problem Pin
Bulky Fellow2-Dec-06 20:18
Bulky Fellow2-Dec-06 20:18 
GeneralRe: ICON Problem Pin
giddy_guitarist6-Dec-06 0:57
giddy_guitarist6-Dec-06 0:57 
QuestionHow to send an e-mail Pin
CodeItWell1-Dec-06 21:47
CodeItWell1-Dec-06 21:47 
AnswerRe: How to send an e-mail Pin
Bassam Saoud2-Dec-06 0:10
Bassam Saoud2-Dec-06 0:10 
AnswerRe: How to send an e-mail Pin
Muammar©2-Dec-06 0:19
Muammar©2-Dec-06 0:19 
QuestionHow to change Opacity of a child form at runtime...? Pin
IamHuM1-Dec-06 20:58
IamHuM1-Dec-06 20:58 
AnswerRe: How to change Opacity of a child form at runtime...? Pin
Nader Elshehabi2-Dec-06 11:23
Nader Elshehabi2-Dec-06 11:23 
QuestionNaming class, object, variable Pin
god4k1-Dec-06 20:20
god4k1-Dec-06 20:20 
AnswerRe: Naming class, object, variable Pin
Anton Afanasyev1-Dec-06 20:57
Anton Afanasyev1-Dec-06 20:57 
Questionprinting tables via printdoc class , based on a datagridview Pin
giddy_guitarist1-Dec-06 20:18
giddy_guitarist1-Dec-06 20:18 

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.