| |

VerySource

 Forgot password?
 Register
Search
View: 958|Reply: 8

C # winform program how to use listBox to display online and offline users, please master

[Copy link]

3

Threads

5

Posts

5.00

Credits

Newbie

Rank: 1

Credits
5.00

 China

Post time: 2020-2-11 11:00:01
| Show all posts |Read mode
C # winform program how to use listBox to display online and offline users, please master
Reply

Use magic Report

0

Threads

26

Posts

21.00

Credits

Newbie

Rank: 1

Credits
21.00

 China

Post time: 2020-4-7 13:15:01
| Show all posts
When the user logs in, log the login information into the database, and then query the database records and fill it in the ListBox soon.
Reply

Use magic Report

1

Threads

8

Posts

8.00

Credits

Newbie

Rank: 1

Credits
8.00

 China

Post time: 2020-4-9 10:15:02
| Show all posts
Make a collection, and put the information of the logged-in person into the collection as soon as you log in. When you exit, the information is removed. The ListBox cyclically displays each record in this collection.
Don't know if this idea agrees?
Reply

Use magic Report

1

Threads

8

Posts

8.00

Credits

Newbie

Rank: 1

Credits
8.00

 China

Post time: 2020-4-9 11:15:01
| Show all posts
No need to involve the database. After all, it is just a display problem
Reply

Use magic Report

0

Threads

9

Posts

7.00

Credits

Newbie

Rank: 1

Credits
7.00

 China

Post time: 2020-4-12 11:30:01
| Show all posts
One table stores users, one table stores online users, so it won't come out
Reply

Use magic Report

0

Threads

9

Posts

6.00

Credits

Newbie

Rank: 1

Credits
6.00

 China

Post time: 2020-5-19 10:00:02
| Show all posts
Reply

Use magic Report

0

Threads

9

Posts

6.00

Credits

Newbie

Rank: 1

Credits
6.00

 China

Post time: 2020-5-19 10:15:01
| Show all posts
It's not clear how you implement session management, all of the above can be achieved.
Reply

Use magic Report

0

Threads

16

Posts

13.00

Credits

Newbie

Rank: 1

Credits
13.00

 China

Post time: 2020-5-23 23:30:01
| Show all posts
I agree with the meaning of ls.

Someone goes online to listbox1.Items.Add ("New_User");

Offline
listbox1.Items.Remove ("User");
listbox2.Items.Add ("User");
Reply

Use magic Report

0

Threads

9

Posts

8.00

Credits

Newbie

Rank: 1

Credits
8.00

 China

Post time: 2020-5-25 14:15:01
| Show all posts
lz means display in a listbox so the user's different status?
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

Contact us|Archive|Mobile|CopyRight © 2008-2023|verysource.com ( 京ICP备17048824号-1 )

Quick Reply To Top Return to the list