473,378 Members | 1,391 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,378 software developers and data experts.

VB.net and graphics


--
hello

In VB6 you can do graphics OK with directx and API's.
I can do OOP in VB6.
The graphics routines may be different tha VB.net but are they easierto code
in than VB6.
Just being different isnt a good enough reason to start using VB.net a lot
for graphics and neither is the overrated argument of being OOP ( which I
could do basically in VB6 anyway). There must be a positive somewhere.
Nov 21 '05 #1
3 2183
"john andrew" <jo********@discussions.microsoft.com> schrieb:
In VB6 you can do graphics OK with directx and API's.
I can do OOP in VB6.


VB6 doesn't support PIE (Polymorphism, Inheritance, Encapsulation) out of
the box as language features, while VB.NET does. I'd suggest to take a look
at how OOP is supported by VB.NET, for example, by studying the
documentation, in order to see the differences and advantages of VB when
dealing with lots of classes.

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
Nov 21 '05 #2
"john andrew" <jo********@discussions.microsoft.com> wrote in message
news:6A**********************************@microsof t.com...

--
hello

In VB6 you can do graphics OK with directx and API's.
I can do OOP in VB6.
The graphics routines may be different tha VB.net but are they easierto
code
in than VB6.
Just being different isnt a good enough reason to start using VB.net a lot
for graphics and neither is the overrated argument of being OOP ( which I
could do basically in VB6 anyway). There must be a positive somewhere.


I'm a vb6 programmer, been using vb.net for the last 2.5 years.
VB for 10 years or something.
I far prefer vb.net.
There's a steep learning curve.
At first I had my doubts whether the climb was worth the effort.

Not really done enough graphics work to say whether vb.net is really better
at that.
I've done a lot of database work though.
It's easier and quicker to write common business screens in vb.net.
It'll be even easier with the next version and the data view grid wossname.

I suppose the difference is probably clearer with asp and asp.net though.
Web stuff is a hell of a lot easier with dotnet.

I was never really a big fan of OOP until I started working with dotnet.
No I'm inheriting from aggregated controls and all that mallarky....
Very powerful.

--
Regards,
Andy O'Neill
Nov 21 '05 #3
John,
and neither is the overrated argument of being OOP ( which I
could do basically in VB6 anyway). There must be a positive somewhere. Ah! there's the rub!

Remember an OO language supports the following 4 concepts:
1. Abstraction - ability to define new types (Classes, VB.NET Structures &
VB6 Types)
2. Encapsulation - ability to add "behavior" to new types (Sub, Function, &
Property or Classes)
3. Polymorphism - ability to use the same expression to denote different
operations (see below)
4. Inheritance - ability to define one type based on another (the new
Inherits keyword)
VB6 only allows you to do "basic" OO, it only partially allows the first
three Abstraction, Encapsulation & Interface Inclusion Polymorphism. It only
allows encapsulation on Classes & not Types.

While VB.NET allows you to do "full" OO, it supports all four with varying
levels for #3 (depending on version!).

In addition to Abstraction, Encapsulation & Interface Inclusion Polymorphism
that VB6 supports.

It allows: Inheritance, Inheritance Inclusion Polymorphism, Overloading
Polymorphism. VB.NET 2005 (aka Whidbey, due out later in 2005) will add
Custom Coercion Polymorphism (Operator Overloading) & Parametric
Polymorphism (Generics).

It allows Structures to encapsulate any behavior by allowing Subs,
Functions, Properties & Events to be added to a Structure in addition to a
Class.
So yes, VB6 supports a very basic (very limited) level of OO, while VB.NET
(especially in VB.NET 2005) supports a significantly greater level of OO.

*NOTE: Both VB6 & VB.NET support late binding which is a form of
polymorphism, that a number of OO languages (except possibly Smalltalk) do
not support.
Polymorphism definitions taken from:
http://www.javaworld.com/javaworld/j...polymorph.html

1: Coercion - a single abstraction serves several types through conversion
2: Overloading - a single identifier denotes several abstractions
3: Parametric - an abstraction operates uniformly across different types
4: Inclusion - an abstraction operates through an inclusion relation

Within VB.NET the math operators are examples of coercion polymorphism. You
can use the + operator on two integers to add them, you can also use the +
operator on singles & doubles which also adds them. In other words the +
operator is 'overloaded' for different built-in types. While C# allows
developers to define overload operators. VB.NET needs to wait for Whidbey
(VS.NET 2005) for operator overloading.

Within VB.NET we are allowed to overload members (overloading polymorphism)
within a single type as long as the parameter signatures are unique. Across
types we are free to overload members irregardless of signatures. Of course
VB.NET does define certain rules for overloading such as you cannot have a
function & a field with exactly the same name. ;-)

We will need to wait for Whidbey (VS.NET 2005) to gain Parametric
Polymorphism (a.k.a Generics).

Within VB.NET Inclusion polymorphism is subtype polymorphism. Using Inherits
or Implements to define a type that is also another type (where type is a
Class, Structure, or Interface). Normally when developers are talking
Polymorphism they are referring to this type of Polymorphism. NOTE: VB.NET
supports both Inherits & Implements while VB6 only supports Implements.

Whidbey information taken from:
http://msdn.microsoft.com/vstudio/pr...o/roadmap.aspx
http://lab.msdn.microsoft.com/vs2005/

Hope this helps
Jay

"john andrew" <jo********@discussions.microsoft.com> wrote in message
news:6A**********************************@microsof t.com...
--
hello

In VB6 you can do graphics OK with directx and API's.
I can do OOP in VB6.
The graphics routines may be different tha VB.net but are they easierto
code
in than VB6.
Just being different isnt a good enough reason to start using VB.net a lot
for graphics and neither is the overrated argument of being OOP ( which I
could do basically in VB6 anyway). There must be a positive somewhere.

Nov 21 '05 #4

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

Similar topics

2
by: JBiagio | last post by:
Hello All, I am attempting to learn a bit about the GDI+ transforms and charting data and I feel like I'm getting a handle on how the transforms work. My chart object has a large "canvas" bitmap...
12
by: Sanjay | last post by:
hi, We are currently porting our project from VB6 to VB .NET. Earlier we used to make scale transformations on objects like pictureBox , forms etc.Now Such transformations are made on the...
2
by: John Bailo | last post by:
I am walking through some of the very first sample code from the book "Beginning .NET Game Programming" from Apress. I identify his sample code with //SC This code puzzles me: Graphics graph...
14
by: Pmb | last post by:
At the moment I'm using Borland's C++ (http://www.borland.com/products/downloads/download_cbuilder.html#) I want to be able to take an array of points and plot them on the screen. Is there a way...
5
by: Charles A. Lackman | last post by:
Hello, I have created a complete PrintDocument and need to create an image from it. How is this done? e.Graphics.SmoothingMode = Drawing2D.SmoothingMode.HighQuality...
6
by: Chris Dunaway | last post by:
The method for printing documents in .Net can be confusing, especially for newer users. I would like to create a way to simplify this process. My idea would be implemented using a PrintDocument...
12
by: Xah Lee | last post by:
Of Interest: Introduction to 3D Graphics Programing http://xahlee.org/3d/index.html Currently, this introduction introduces you to the graphics format of Mathematica, and two Java Applet...
6
by: active | last post by:
I have an image and a graphics object created (FromImage) from that image. I need to create a new image and create a new graphics object from the new image. I want the new graphics object have...
9
by: DaveL | last post by:
hello I have a Bit map 1367 wide 32 high this bitmap contains like 40 separate Images 32x32 I tell it the id*32 to get the approiate Image from the source Bitmap When i CreateGraphics()...
8
by: Abhiraj Chauhan | last post by:
I need someone to make an example of how to create a graphics window in VB.net 2008. I understand the basics of how to draw a rectangle and lines etc. What I need is an example of how to make a...
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: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
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?

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.