Give Us a Call: +1-877-99-BOPUP or Request for a Chat en Vivo

VBMessageStruct structure

Specifies or retrieves information on a single instant message.

Public Structure VBMessageStruct     Dim MessageKey As String     Dim Type As Byte     Dim MessageFlags As UInteger     Dim SenderName As String     Dim SenderFirstName As String     Dim SenderLastName As String     Dim RecipientName As String     Dim TypeName As String     Dim MessageText As String     Dim TextFont As String     Dim TextSize As Integer     Dim TextStyle As UInteger     Dim TextColor As UInteger     Dim OriginalDate As String End Structure


Contains a unique message key. This member is filled if IServerClientVB::SendMessage method returns a success result or when new incoming message is received via NewMessage notification that is sent in the form of VBNotification.NOTIFY_SERVER_MESSAGE message. This value can be used to identify each instant message in the application.
Specifies a type of the instant message. This member can be one of the following values:
This instant message is personal message.
This instant message is a group message.
This instant message is a new message. Messages with such type can be only incoming message from the IM server.
Array of bitwise flags that specify parameters of the message. This member can include one or more of the following values:
Indicates high priority (urgent) message.
Indicates that the message has been forwarded the IM server and was stored as offline. This flag can be set only for incoming messages.
Indicates that the message requires recipient's confirmation.
Contains the sender's account name. For outgoing messages this member must contain current user's account name.
Contains the sender's first name. This member is valid only for incoming personal and group messages.
Contains the sender's last name. This member is valid only for incoming personal and group messages.
Contains the recipient's account name. This member is valid only for personal messages.
Contains group or news name. This member is valid only for group and news messages.
Contains a text of the instant message.
Contains a font family to display the text message. Set this member to empty string ("" or String.Empty) for outgoing messages if you want to use Arial font by default. Otherwise specify any other font name present in the system. For example, Tahoma, Verdana, Times New Roman and others.
Contains a font size to display the text message. Set this member to VBMessageFont.DefaultSize to use default (-13) font size.
Contains a style of the message font. This member can inclulde one or more of the following bitwise flags:
Indicates bold font.
Indicates italic font.
Contains a font color to display the text message. Set this member to VBMessageFont.DefaultColor to use default black font color (RGB(0, 0, 0) or 0 value).
Contains original date when the message was initially sent. The date is stored in the "MM/dd/YYYY 00:00:00" format where MM — month, dd — day and YYYY indicates year. This member is valid only for incoming messages when the MessageFlags has the VBMessageFlag.AsOffline flag.