473,403 Members | 2,354 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,403 software developers and data experts.

Rubberband/line in VB.NET

Hi,

Does anyone know how to create a rubber line or something
similer?

I used to use the Xor drawmode to obtain this
functionality (First draw the line on a picture box, then
erase it again by drawing the exact same line once again)

Thx in advance,

Jacob
Nov 20 '05 #1
3 6010
"Jacob" <du***@dummy.com> scripsit:
Does anyone know how to create a rubber line or something
similer?

I used to use the Xor drawmode to obtain this
functionality (First draw the line on a picture box, then
erase it again by drawing the exact same line once again)


'ControlPaint.DrawReversibleLine'

- or -

<http://www.bobpowell.net/rband.htm>

--
Herfried K. Wagner
MVP · VB Classic, VB.NET
<http://www.mvps.org/dotnet>
Nov 20 '05 #2
-----Original Message-----
"Jacob" <du***@dummy.com> scripsit:
Does anyone know how to create a rubber line or something similer?

I used to use the Xor drawmode to obtain this
functionality (First draw the line on a picture box, then erase it again by drawing the exact same line once
again)
'ControlPaint.DrawReversibleLine'

- or -

<http://www.bobpowell.net/rband.htm>

--
Herfried K. Wagner
MVP · VB Classic, VB.NET
<http://www.mvps.org/dotnet>
.

Thank You for the quick reply :)

Jacob
Nov 20 '05 #3
Or, go to this link and download my sample"Rubberband Selection box for
Cropping Images"
(watch for wordwrap)
http://www.gotdotnet.com/community/u...nguageDropDown
List=VB.NET&SortDirection=Desc&SortColumnName=Crea tionDate&Page=6&Size=25

This should do what you want or at least get you started.
james
aka Trucker

"Jacob" <du***@dummy.com> wrote in message
news:08****************************@phx.gbl...
Hi,

Does anyone know how to create a rubber line or something
similer?

I used to use the Xor drawmode to obtain this
functionality (First draw the line on a picture box, then
erase it again by drawing the exact same line once again)

Thx in advance,

Jacob

Nov 20 '05 #4

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

Similar topics

65
by: Skybuck Flying | last post by:
Hi, I needed a method to determine if a point was on a line segment in 2D. So I googled for some help and so far I have evaluated two methods. The first method was only a formula, the second...
2
by: Anand Ganesh | last post by:
Hi All, In my application I am allowing the user to draw a line. But when the user clicks the start point and starts moving the mouse there is a series of line generated. When the mouse is up...
0
by: William Petzke | last post by:
-I implemented the rubberband window from the Microsoft Knowledgebase artice: http://support.microsoft.com/default.aspx?scid=kb;en-us;Q314945 -The rubberband works great however it can be...
1
by: Mas Fabien | last post by:
Hi, I want to manage a rubberband For that, I use the "controlPaint" class. No problem to draw my rectangle, I use "DrawReversibleFrame()" No problem to draw my selection, I use...
3
by: Double Echo | last post by:
Hi all, I'm using PHP 4.4.2, and use PHP on both the command-line and the web. I am running PHP on SuSE 10 Linux , in a VMware 5.5 workstation, using Apache 2.0.55 , on my Dell laptop. ...
9
by: Adi | last post by:
Hello eveyone, I wanna ask a very simple question here (as it was quite disturbing me for a long time.) My problem is to read a file line by line. I've tried following implementations but still...
6
by: Jacob Rael | last post by:
Hello, I have a simple script to parse a text file (a visual basic program) and convert key parts to tcl. Since I am only working on specific sections and I need it quick, I decided not to...
11
by: xdevel | last post by:
Hi, I don't understand option. if I write: #line 100 "file" I change file numeration to start to line 100 but what "file" ? any example?
19
by: =?Utf-8?B?QnJpYW4gQ29vaw==?= | last post by:
This is an example of the data; 2007/07/27 11:00:03 ARES_INDICATION 010.050.016.002 404.2.01 (6511) RX 74 bytes 2007/07/27 11:00:03 65 11 26 02 BC 6C AA 20 76 93 51 53 50 76 13 48...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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,...
0
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...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
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...
0
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 project—planning, coding, testing,...

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.