who is more powerfull? VB6 or VB.net 2010?

  • (4 Pages)
  • +
  • 1
  • 2
  • 3
  • Last »

54 Replies - 26735 Views - Last Post: 09 May 2012 - 12:00 PM

#1 Cambalinho  Icon User is offline

  • D.I.C Head

Reputation: -1
  • View blog
  • Posts: 70
  • Joined: 04-March 12

who is more powerfull? VB6 or VB.net 2010?

Post icon  Posted 14 March 2012 - 11:31 AM

by years, i use VB6. and i have seen 2 things:
1 - the VB6 have the image box control with transparent color real and even when we create a new control.
well the VB2010 don't. just simulate it(make a copy of parent image background):(;
2 - we only can do Opacy with form.
ok... the vb.net and above are real OOPL(Object Oriented Programming Language) and we can dispose(delete) a control more easy. but isn't so powerfull than Visual C++ or C#(speaking on Objects).

This post has been edited by AdamSpeight2008: 14 March 2012 - 04:34 PM


Is This A Good Question/Topic? 0
  • +

Replies To: who is more powerfull? VB6 or VB.net 2010?

#2 nK0de  Icon User is offline

  • Catch me As Exception
  • member icon

Reputation: 204
  • View blog
  • Posts: 823
  • Joined: 21-December 11

Re: who is more powerfull? VB6 or VB.net 2010?

Posted 14 March 2012 - 11:35 AM

Answering your question in the title,
VB.NET
hands down.
Was This Post Helpful? 0
  • +
  • -

#3 Cambalinho  Icon User is offline

  • D.I.C Head

Reputation: -1
  • View blog
  • Posts: 70
  • Joined: 04-March 12

Re: who is more powerfull? VB6 or VB.net 2010?

Posted 14 March 2012 - 11:38 AM

View PostnK0de, on 14 March 2012 - 11:35 AM, said:

Answering your question in the title,
VB.NET
hands down.

then how you can use Opacy and Transparent colors on controls?
(and more errors the .net have: the GIF animated isn't a good thing(i can see some vision bugs) and the keyboard events can't use directional keys)
Was This Post Helpful? 0
  • +
  • -

#4 modi123_1  Icon User is online

  • Suitor #2
  • member icon



Reputation: 8379
  • View blog
  • Posts: 31,147
  • Joined: 12-June 08

Re: who is more powerfull? VB6 or VB.net 2010?

Posted 14 March 2012 - 11:45 AM

If anything - the fact that VB6 is sunsetting and not being supported more or less eclipses the whole argument.

then how you can use Opacy and Transparent colors on controls?

Let's see the code of what you have tried..


(and more errors the .net have: the GIF animated isn't a good thing(i can see some vision bugs) 

What?

and the keyboard events can't use directional keys) 

I use the the directional arrows all the time.
Was This Post Helpful? 0
  • +
  • -

#5 nK0de  Icon User is offline

  • Catch me As Exception
  • member icon

Reputation: 204
  • View blog
  • Posts: 823
  • Joined: 21-December 11

Re: who is more powerfull? VB6 or VB.net 2010?

Posted 14 March 2012 - 11:46 AM

I don't quite understand. I haven't really done much graphics related stuff in VB.NET. But if you're asking whether you could make controls transparent, then the answer is of course you can.

This post has been edited by nK0de: 14 March 2012 - 11:53 AM

Was This Post Helpful? 0
  • +
  • -

#6 Cambalinho  Icon User is offline

  • D.I.C Head

Reputation: -1
  • View blog
  • Posts: 70
  • Joined: 04-March 12

Re: who is more powerfull? VB6 or VB.net 2010?

Posted 14 March 2012 - 11:57 AM

then how you can use Opacy and Transparent colors on controls?

"Let's see the code of what you have tried.."
i try search very things without sucess.. even recreate my sprite control:(


(and more errors the .net have: the GIF animated isn't a good thing(i can see some vision bugs) 

"What?"
the time between the subimages... try yourself

and the keyboard events can't use directional keys) 

"I use the the directional arrows all the time."
please let me see the code

View PostnK0de, on 14 March 2012 - 11:46 AM, said:

I don't quite understand. I haven't really done much graphics related stuff in VB.NET. But if you're asking whether you could make controls transparent, then the answer is of course you can.

i try that using the normal properties. and you can test it:
put an image on picturebox and make it transparent, now use a button and put it on picturebox back and see the diference(i have did these).
Was This Post Helpful? 0
  • +
  • -

#7 modi123_1  Icon User is online

  • Suitor #2
  • member icon



Reputation: 8379
  • View blog
  • Posts: 31,147
  • Joined: 12-June 08

Re: who is more powerfull? VB6 or VB.net 2010?

Posted 14 March 2012 - 12:04 PM

Quote

Quote

"What?"

the time between the subimages... try yourself

Try what myself? That wasn't a helpful reply to my question.



These do not work?
e.KeyCode.Up
e.KeyCode.Down
e.KeyCode.Left
e.KeyCode.Right


Was This Post Helpful? 0
  • +
  • -

#8 Cambalinho  Icon User is offline

  • D.I.C Head

Reputation: -1
  • View blog
  • Posts: 70
  • Joined: 04-March 12

Re: who is more powerfull? VB6 or VB.net 2010?

Posted 14 March 2012 - 12:14 PM

View Postmodi123_1, on 14 March 2012 - 12:04 PM, said:

Quote

Quote

"What?"

the time between the subimages... try yourself

Try what myself? That wasn't a helpful reply to my question.



These do not work?
e.KeyCode.Up
e.KeyCode.Down
e.KeyCode.Left
e.KeyCode.Right


If e.KeyCode.Up = True Then Button1.Top = Button1.Top - 1

error message: "Warning 1 Access of shared member, constant member, enum member or nested type through an instance; qualifying expression will not be evaluated."
Was This Post Helpful? 0
  • +
  • -

#9 modi123_1  Icon User is online

  • Suitor #2
  • member icon



Reputation: 8379
  • View blog
  • Posts: 31,147
  • Joined: 12-June 08

Re: who is more powerfull? VB6 or VB.net 2010?

Posted 14 March 2012 - 12:18 PM

Well yeah - e.keycode.up is an enumeration bro... it's not something that is a boolean it's a number behind those readable words.

You also need to use it in an event that makes sense... like the keydown event.

It also helps to have key preview on.

example:

        Select Case e.KeyCode
            Case Keys.Up
	'-- stuff
	Case Keys.Down
	'-- stuff
        End Select


Was This Post Helpful? 0
  • +
  • -

#10 Cambalinho  Icon User is offline

  • D.I.C Head

Reputation: -1
  • View blog
  • Posts: 70
  • Joined: 04-March 12

Re: who is more powerfull? VB6 or VB.net 2010?

Posted 14 March 2012 - 12:25 PM

View Postmodi123_1, on 14 March 2012 - 12:18 PM, said:

Well yeah - e.keycode.up is an enumeration bro... it's not something that is a boolean it's a number behind those readable words.

You also need to use it in an event that makes sense... like the keydown event.

It also helps to have key preview on.

example:

        Select Case e.KeyCode
            Case Keys.Up
	'-- stuff
	Case Keys.Down
	'-- stuff
        End Select


thanks works fine.
the animated gifs, maybe, is abou my hardware speed(memory and CPU).
but i still with 2 questions:
1 - how make controls realy transparent?
2 - how make controls Opacy?
thanks
Was This Post Helpful? 0
  • +
  • -

#11 nK0de  Icon User is offline

  • Catch me As Exception
  • member icon

Reputation: 204
  • View blog
  • Posts: 823
  • Joined: 21-December 11

Re: who is more powerfull? VB6 or VB.net 2010?

Posted 14 March 2012 - 12:29 PM

View PostCambalinho, on 15 March 2012 - 12:55 AM, said:

1 - how make controls realy transparent?


Set the TransparencyKey of the form to a certain color. Then set the controls' BackColor property to that same color.
Was This Post Helpful? 0
  • +
  • -

#12 trevster344  Icon User is offline

  • The Peasant
  • member icon

Reputation: 221
  • View blog
  • Posts: 1,478
  • Joined: 16-March 11

Re: who is more powerfull? VB6 or VB.net 2010?

Posted 14 March 2012 - 12:33 PM

The issue is not the language, but the programmer here. VB6 is a building block to .Net(naturally the case in many situations), because .Net does what that VB6 does not? It encapsulates much more of the Windows API into hundreds and thousands of simple working classes. If you need help with something ask for help, but try to keep your frustration out of this, and try to keep irrelevant discussion out of this. All this looks to me is like your method of trying to work free solutions out of people. Many people say they want something to be transparent, WHAT exactly about the control do you want to be transparent, please describe more.

This post has been edited by trevster344: 14 March 2012 - 12:34 PM

Was This Post Helpful? 0
  • +
  • -

#13 Cambalinho  Icon User is offline

  • D.I.C Head

Reputation: -1
  • View blog
  • Posts: 70
  • Joined: 04-March 12

Re: who is more powerfull? VB6 or VB.net 2010?

Posted 14 March 2012 - 12:39 PM

View PostnK0de, on 14 March 2012 - 12:29 PM, said:

View PostCambalinho, on 15 March 2012 - 12:55 AM, said:

1 - how make controls realy transparent?


Set the TransparencyKey of the form to a certain color. Then set the controls' BackColor property to that same color.

the results aren't correct:(
i only need the picturebox(for example) transparent. on my test i use 1 button. and i see bad results:(

View Posttrevster344, on 14 March 2012 - 12:33 PM, said:

The issue is not the language, but the programmer here. VB6 is a building block to .Net(naturally the case in many situations), because .Net does what that VB6 does not? It encapsulates much more of the Windows API into hundreds and thousands of simple working classes. If you need help with something ask for help, but try to keep your frustration out of this, and try to keep irrelevant discussion out of this. All this looks to me is like your method of trying to work free solutions out of people. Many people say they want something to be transparent, WHAT exactly about the control do you want to be transparent, please describe more.

only the backcolor of control(just hide the backcolor).
i understand what you mean, but i search and research several times without sucess. if you don't wan't tell me how, ate least tell where start reading something for these problems

sorry my english... i'm portuguese;)
Was This Post Helpful? 0
  • +
  • -

#14 nK0de  Icon User is offline

  • Catch me As Exception
  • member icon

Reputation: 204
  • View blog
  • Posts: 823
  • Joined: 21-December 11

Re: who is more powerfull? VB6 or VB.net 2010?

Posted 14 March 2012 - 12:42 PM

View PostCambalinho, on 15 March 2012 - 01:09 AM, said:

View PostnK0de, on 14 March 2012 - 12:29 PM, said:

View PostCambalinho, on 15 March 2012 - 12:55 AM, said:

1 - how make controls realy transparent?


Set the TransparencyKey of the form to a certain color. Then set the controls' BackColor property to that same color.

the results aren't correct:(
i only need the picturebox(for example) transparent. on my test i use 1 button. and i see bad results:(


Do you want to make the Picturebox transparent or the image in it? And how about if you post the code you're using for this? 'Cause I have no idea what you're trying to do.

This post has been edited by nK0de: 14 March 2012 - 12:48 PM

Was This Post Helpful? 0
  • +
  • -

#15 trevster344  Icon User is offline

  • The Peasant
  • member icon

Reputation: 221
  • View blog
  • Posts: 1,478
  • Joined: 16-March 11

Re: who is more powerfull? VB6 or VB.net 2010?

Posted 14 March 2012 - 12:42 PM

Are you trying to make a game or something?
Was This Post Helpful? 0
  • +
  • -

  • (4 Pages)
  • +
  • 1
  • 2
  • 3
  • Last »