473,662 Members | 2,413 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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(B yVal sender As Object, ByVal e As
System.Windows. Forms.MouseEven tArgs) Handles rtb.MouseDown
a = e.X
b = e.Y
End Sub

Private Sub rtb_MouseMove(B yVal sender As Object, ByVal e As
System.Windows. Forms.MouseEven tArgs) Handles rtb.MouseMove
If e.Button = Windows.Forms.M ouseButtons.Lef t Then

rtb.CreateGraph ics.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 2348
"MK" <MK@discussions .microsoft.comw rote in message
news:61******** *************** ***********@mic rosoft.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...@discussio ns.microsoft.co mwrote:
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(B yVal sender As Object, ByVal e As
System.Windows. Forms.MouseEven tArgs) Handles rtb.MouseDown
a = e.X
b = e.Y
End Sub

Private Sub rtb_MouseMove(B yVal sender As Object, ByVal e As
System.Windows. Forms.MouseEven tArgs) Handles rtb.MouseMove
If e.Button = Windows.Forms.M ouseButtons.Lef t Then

rtb.CreateGraph ics.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
1898
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 Provider but can't work out the best way to interact with the WDDX packets. Basically the way the Web Service works is that you send a WDDX formatted Request packet to the given URL, their
0
6196
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 interact with webservice thru c++.I think ther is a bug in MS implementation for c++ to interact with webservice because I am able to connect to the same webservice thru C# as well as vb.net. I tried the following approaches
4
15701
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 with desktop" checkbox on the service, and when I do it manually, the icon shows just fine. But I want the users to double-click the installation file and not have to go to the Services and select the checkbox. So I used this example...
4
1387
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 Protected Overrides Sub OnStart(ByVal args() As String) ' Code zum Starten des Dienstes hier einfügen. Diese Methode sollte
3
7437
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 with this I need an option to show the windows application which my service has started as a result of its invokation. So I have written a service control by adding a new project of type
0
8432
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, well explore What is ONU, What Is Router, ONU & Routers main usage, and What is the difference between ONU and Router. Lets take a closer look ! Part I. Meaning of...
0
8343
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
8545
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8633
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7365
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development projectplanning, coding, testing, and deploymentwithout human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
4347
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2762
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1992
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1747
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.