473,383 Members | 1,870 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,383 software developers and data experts.

using web service to interact between two stand-alone VB .NET appl

Hello ,

I am developing a white board type stand-alone VB .NET application in which
the .EXE application will be installed in two or more different client
machines .

These client machines will interact with each other in the way that during
drawing with mouse using graphics on RichTextBox control used as white board
, whenever the mouse_up event occurs in either client , the whole graphics on
the RichTextBox will be shown on every client machine currently interacting ,
like the way it occurs in “ Talk and Write “ application of “ Skype ” .

Is it possible using web services ?
If yes , then how ?

The second problem is , how to save the graphics after minimizing and
maximizing the window ?

The code I am using for graphics is like the following :-

------------------------------------------------------------------------------------------------
Public Class Testing
Dim a As Integer
Dim b As Integer
Dim pn As New Pen(Color.Blue)

‘rtb is the name of the RichTextBox control

Private Sub rtb_MouseDown(ByVal sender As Object, ByVal e As
System.Windows.Forms.MouseEventArgs) Handles rtb.MouseDown
a = e.X
b = e.Y
End Sub

Private Sub rtb_MouseMove(ByVal sender As Object, ByVal e As
System.Windows.Forms.MouseEventArgs) Handles rtb.MouseMove
If e.Button = Windows.Forms.MouseButtons.Left Then

rtb.CreateGraphics.DrawLine(pn, a, b, e.X, e.Y)
a = e.X
b = e.Y
End If
End Sub
End Class
------------------------------------------------------------------------------------------------

If it is known to anybody , then pls give me the solution .

My emil ID :
mk******@gmail.com

Thanks and regards ,

MK

Jul 17 '07 #1
2 2340
"MK" <MK@discussions.microsoft.comwrote in message
news:61**********************************@microsof t.com...
Hello ,

I am developing a white board type stand-alone VB .NET application in
which
the .EXE application will be installed in two or more different client
machines .

These client machines will interact with each other in the way that during
drawing with mouse using graphics on RichTextBox control used as white
board
, whenever the mouse_up event occurs in either client , the whole graphics
on
the RichTextBox will be shown on every client machine currently
interacting ,
like the way it occurs in “ Talk and Write “ application of “ Skype ” .

Is it possible using web services ?
If yes , then how ?
I believe it's possible using WCF. It supports both peer-to-peer and
publish/subscribe scenarios.
--
John Saunders [MVP]

Jul 17 '07 #2
On Jul 17, 8:08 am, MK <M...@discussions.microsoft.comwrote:
Hello ,

I am developing a white board type stand-alone VB .NET application in which
the .EXE application will be installed in two or more different client
machines .

These client machines will interact with each other in the way that during
drawing with mouse using graphics on RichTextBox control used as white board
, whenever the mouse_up event occurs in either client , the whole graphics on
the RichTextBox will be shown on every client machine currently interacting ,
like the way it occurs in " Talk and Write " application of " Skype " .

Is it possible using web services ?
If yes , then how ?

The second problem is , how to save the graphics after minimizing and
maximizing the window ?

The code I am using for graphics is like the following :-

------------------------------------------------------------------------------------------------
Public Class Testing
Dim a As Integer
Dim b As Integer
Dim pn As New Pen(Color.Blue)

'rtb is the name of the RichTextBox control

Private Sub rtb_MouseDown(ByVal sender As Object, ByVal e As
System.Windows.Forms.MouseEventArgs) Handles rtb.MouseDown
a = e.X
b = e.Y
End Sub

Private Sub rtb_MouseMove(ByVal sender As Object, ByVal e As
System.Windows.Forms.MouseEventArgs) Handles rtb.MouseMove
If e.Button = Windows.Forms.MouseButtons.Left Then

rtb.CreateGraphics.DrawLine(pn, a, b, e.X, e.Y)
a = e.X
b = e.Y

End If
End Sub
End Class
------------------------------------------------------------------------------------------------

If it is known to anybody , then pls give me the solution .

My emil ID :
mkgre...@gmail.com

Thanks and regards ,

MK
Probably not possible to use ASP.NET Web Services (as in ASP.NET 1.0
and 2.0) since they are generally hosted under IIS. It would be
possible to use WCF since it can be hosted within your own
application, plus you can support other transports such as TCP. TCP
would be a better transport for your type of task rather than HTTP/XML
for the type of data and probably the amount of data you may be
transferring, but guess you would need to consider if you have to be
firewall friendly and use port 80 instead of some non-standard port.
But, you may also consider looking at at .NET Remoting which provides
an excellent method for apps to communicate with each other.

Regarding the graphics issue, basically you need to keep track of all
the points that you are painting on the canvas. If you get a repaint
event, then you need to repaint any of the area that was lost. This
can also occur if another app is simply dragged on top of your app and
then removed. This is a general concept covered in many books and
also on the Internet, you should be able to find examples out there..

Ron

Jul 18 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Fraser Dickson | last post by:
I am building a web based system using ASP.NET and VB.NET which has to interact with a web service which uses XML WDDX packets. I have been given the XML Packet Specification by the Web Service...
0
by: Nalla | last post by:
Hi, I have a requirement to call webservices from my old C++ application.So first I tried with Vc++.net as follows.....There are 2 approach Dotnet frame work and soaptoolkit 3.0 I am not able to...
4
by: juliashah | last post by:
I've developed a windows service that monitors the database and shows icon of a different color depending on the data. To be able to show an icon I have to select the "Allow service to interact...
4
by: hex40 | last post by:
Hi, I have created a Service with vb.NET 2005 and I want to show a form. How can I do this? Can I do it like this? Or should'nt I use a form in a service at all? Private oMain As Main ...
3
by: sonu | last post by:
Hello all, I am trying to develop an application which will run as a windows service. The application should have Normal options available with service like start, stop and pause but along...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.