?
Solved

how can i show contact list like yahoo messenger or msn messenger in vb6

Posted on 2009-07-11
12
Medium Priority
?
366 Views
Last Modified: 2012-05-07
how can i show contact list like yahoo messenger or msn messenger in vb6 need some ideas or examples in vb6
0
Comment
Question by:BILAL69
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 7
  • 4
12 Comments
 
LVL 13

Expert Comment

by:game-master
ID: 24833166

good morning!

from where the contact list coming from?

u can use the flexgrid control, listview, listbox to do want to want..


game-master
0
 
LVL 2

Author Comment

by:BILAL69
ID: 24835111
the contact list comes from server i just want an example to handle them nicely  i know listbox but its not good
0
 
LVL 13

Expert Comment

by:game-master
ID: 24836654


u can use flexgrid or listview to make it more nicer...


0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
LVL 2

Author Comment

by:BILAL69
ID: 24837777
ok 1 question about flexgrid control i add the items in there like

--------------- code -------------------
    ContactList.AddItem Text1.Text
    ContactList.Rows = NUM_ROWS
    ContactList.Cols = 2
    ContactList.FixedRows = 0
    ContactList.FixedCols = 0
    ContactList.GridLines = flexGridNone
    ContactList.SelectionMode = flexSelectionByRow
    ContactList.RowHeightMin = imgOnline.Height + _
        ScaleY(2, vbPixels, vbTwips)
    ContactList.ColWidth(0) = imgOnline.Width
    ContactList.ColWidth(1) = 8000
    ContactList.Clear
        ContactList.Row = NUM_ROWS - 1
        ContactList.Col = 0
        Set ContactList.CellPicture = imgOnline.Picture
        ContactList.Col = 1
        ContactList.TextMatrix(NUM_ROWS - 1, 1) = Text1.Text
        NUM_ROWS = NUM_ROWS + 1
        ContactList.AddItem imgOnline.Picture
--------------------------------------------------------------------------------
now the problem is each time i use it it goes to next line and old line goes empty :-s any ideas ?
0
 
LVL 2

Author Comment

by:BILAL69
ID: 24837789
oh remove that contactlist.additem text1.text
0
 
LVL 2

Author Comment

by:BILAL69
ID: 24837791

    ContactList.AddItem Text1.Text
    ContactList.Rows = NUM_ROWS
    ContactList.Cols = 2
    ContactList.FixedRows = 0
    ContactList.FixedCols = 0
    ContactList.GridLines = flexGridNone
    ContactList.SelectionMode = flexSelectionByRow
    ContactList.RowHeightMin = imgOnline.Height + _
        ScaleY(2, vbPixels, vbTwips)
    ContactList.ColWidth(0) = imgOnline.Width
    ContactList.ColWidth(1) = 8000
    ContactList.Clear
        ContactList.Row = NUM_ROWS - 1
        ContactList.Col = 0
        Set ContactList.CellPicture = imgOnline.Picture
        ContactList.Col = 1
        ContactList.TextMatrix(NUM_ROWS - 1, 1) = Text1.Text
        NUM_ROWS = NUM_ROWS + 1

Open in new window

0
 
LVL 13

Accepted Solution

by:
game-master earned 500 total points
ID: 24837836


try this approach...

Private Sub Form_Load()
    formatContactList
End Sub

Sub formatContactList()
    With ContactList
        .Rows = 1
        .Cols = 2
        .ColWidth(0) = 2000
        .ColWidth(1) = 2000

        .TextMatrix(0, 0) = "Name"
        .TextMatrix(0, 1) = "Contact Number"
       
    End With
   
End Sub

'TO add item on the ContactList...
Sub addContact()
   
    With ContactList
        .AddItem "<the name to be add>" & vbTab & "<the contact to be add>"
    End With

End Sub
0
 
LVL 2

Author Comment

by:BILAL69
ID: 24837985
Works Good.. 1 more thing.. have u noticed if u pop up a menu by right click it wont select the user first but will open the menu.. is it possible to get user selected then right menu appears :-?
0
 
LVL 2

Author Comment

by:BILAL69
ID: 24837992
also how do i put the contact list order wise ?
0
 
LVL 13

Expert Comment

by:game-master
ID: 24838024


yes it is possible, to select first b4 pop-ups appear...

to make the contact list in order, u can manipulate your retrieval data from the server
already sorted before adding it to the flexgrid..


game-master
0
 
LVL 2

Author Comment

by:BILAL69
ID: 24838080
how is it possible to select b4 pop up appear ? lol
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
Suggested Courses

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question