Home
MatriX vNext
MatriX XMPP SDK ▼
Forum
About us ▼
Contact
Not logged in.
·
Lost password
·
Register
Forum
Search
Members
Forum:
agsXMPP
How to Make like this by agsxmpp
hossam2
2017-01-06, 17:19
#1
Member since Jan 2017 ·
11
posts
Group memberships:
Members
Show profile
·
Link to this post
This post was edited automatically to correct display problems.
Subject:
How to Make like this by agsxmpp
How to Make like this by agsxmpp
Alex
2017-01-06, 18:20
#2
Member since Feb 2003 ·
4449
posts · Location: Germany
Group memberships:
Administrators, Members
Show profile
·
Link to this post
Please look at the agsXMPP.UI project. This builds UI from from xdata forms like in your screenshot.
hossam2
2017-01-06, 19:20
#3
Member since Jan 2017 ·
11
posts
Group memberships:
Members
Show profile
·
Link to this post
Subject:
screenshot this xdata forms by jabber.dll
screenshot this xdata forms by jabber.dll
I know it's there in agsXMPP.UI But how to use any of this, such as in the picture
like this Does not work
If
msg
.
HasTag
(
GetType
(
Data
)
)
Then
Dim
e
As
Element
=
msg
.
SelectSingleElement
(
GetType
(
Data
)
)
Dim
xdata
As
Data
=
TryCast
(
e, Data
)
If
xdata
.
Type
=
XDataFormType
.
form
Then
Dim
fXData
As
New
frmXData
(
xdata
)
fXData
.
Text
=
"xData Form from "
&
msg
.
From
.
ToString
(
)
fXData
.
Show
(
)
End
If
ElseIf
msg
.
HasTag
(
GetType
(
agsXMPP
.
protocol
.
extensions
.
ibb
.
Data
)
)
Then
' ignore IBB messages
Return
End
If
This post was edited
2
times, last on 2017-01-07, 09:32 by
Alex
.
Alex
2017-01-07, 09:33
#4
Member since Feb 2003 ·
4449
posts · Location: Germany
Group memberships:
Administrators, Members
Show profile
·
Link to this post
Please post the xml of your message.
Your code looks good to me.
hossam2
2017-01-07, 10:06
#5
Member since Jan 2017 ·
11
posts
Group memberships:
Members
Show profile
·
Link to this post
This code does not work in the show form (xdata forms)
Alex
2017-01-07, 10:22
#6
Member since Feb 2003 ·
4449
posts · Location: Germany
Group memberships:
Administrators, Members
Show profile
·
Link to this post
I asked you to post the complete Xml of your message here (msg object).
Without this Xml we cannot find out why it is not working.
hossam2
2017-01-07, 11:17
#7
Member since Jan 2017 ·
11
posts
Group memberships:
Members
Show profile
·
Link to this post
Private
Sub
XmppCon_OnMessage
(
sender
As
Object
, msg
As
agsXMPP
.
protocol
.
client
.
Message
)
If
InvokeRequired
Then
' Windows Forms are not Thread Safe, we need to invoke this :(
' We're not in the UI thread, so we need to call BeginInvoke
BeginInvoke
(
New
OnMessageDelegate
(
AddressOf
XmppCon_OnMessage
)
,
New
Object
(
)
{
sender, msg
}
)
Return
End
If
' Dont handle GroupChat Messages here, they have their own callbacks in the
' GroupChat Form
If
msg
.
Type
=
MessageType
.
groupchat
Then
Return
End
If
If
msg
.
Type
=
MessageType
.
[
error
]
Then
'Handle errors here
' we dont handle them in this example
Return
End
If
' check for xData Message
If
msg
.
HasTag
(
GetType
(
Data
)
)
Then
Dim
e
As
Element
=
msg
.
SelectSingleElement
(
GetType
(
Data
)
)
Dim
xdata
As
Data
=
TryCast
(
e, Data
)
If
xdata
.
Type
=
XDataFormType
.
form
Then
Dim
fXData
As
New
frmXData
(
xdata
)
fXData
.
Text
=
"xData Form from "
&
msg
.
From
.
ToString
(
)
fXData
.
Show
(
)
End
If
ElseIf
msg
.
HasTag
(
GetType
(
agsXMPP
.
protocol
.
extensions
.
ibb
.
Data
)
)
Then
' ignore IBB messages
Return
Else
If
msg
.
Body
IsNot
Nothing
Then
I
End
If
End
If
End
Sub
This post was edited on 2017-01-07, 12:15 by
Alex
.
Alex
2017-01-09, 09:51
#8
Member since Feb 2003 ·
4449
posts · Location: Germany
Group memberships:
Administrators, Members
Show profile
·
Link to this post
I asked for the Xml logs, not more vb code.
hossam2
2017-01-10, 20:17
#9
Member since Jan 2017 ·
11
posts
Group memberships:
Members
Show profile
·
Link to this post
answered it
thanxxxxxxxxxxxxxxxxxxxxxxxxxxxx Alex
(f) (f) (f)
hossam2
2017-01-10, 20:27
#10
Member since Jan 2017 ·
11
posts
Group memberships:
Members
Show profile
·
Link to this post
i make a Chat Massnger
adventges
1- Get contact and show
2- set avetar
3- join rooms
4- massge pvt
5- bookmark
6- send fill
Close
Smaller –
Larger +
Reply to this post:
Verification code:
Please enter the word from the image into the text field below. (Type the letters only, lower case is okay.)
Smileys:
Special characters:
Forum:
agsXMPP