|
Samir Ibrahim wrote: I know how property work and should work. I just HATE how property work in vb.net
I works exactly the same as it does in any .NET lanuage, be it Managed C++, C#, VB.NET, ... It's very standard and doesn't deviate from accepted norms in other languages outside the .NET environment. So, I fail to understand how you find the functionality or structure of a VB.NET Property weird.
Samir Ibrahim wrote: I cannot accept "read beginner book" as an answer
There are other uses for books like that, such as being a reference when converting code/concepts from other languages to VB.NET.
Yeah, I saw all the ' marks in your code snippet. It looked as though you were guessing, trying to figure out how properties worked. Properties are a very basic concept in .NET, so that's why the book suggestion.
The rest, I'm not going to touch.
|
|
|
|
|
Samir Ibrahim wrote: I know classing and subclassing more than you can imagine
Samir Ibrahim wrote: 6 month of learning vb.net
My career is a mix of low level embedded, hardware and software overy thirty years and there is a lot I can learn from Dave.
His point was valid.
|
|
|
|
|
Okay, Dave and Ellain have been nice to you. I won't be:
Your code example was sh!t. Your knowledge of OO principles is w!nk. A rabid monkey knows more than you.
Is that clear enough or do you need it carved on stone and shoved up your manky a...?
Panic, Chaos, Destruction.
My work here is done.
|
|
|
|
|
Normally, When you have question in forums, and you have an answer, say it. otherwise it is much better to stay quite and play a game such Monkey Island if you love monkeys that much.
I refuse the answer of "read books" because I am reading 3, and "search google" because I do. Should I read the 550 pages of books just to know that the answer to my question is "No, That cannot be done".
I would like to know your answer about my
williamnw wrote: w!nk OO question .
williamnw wrote: Your code example was sh!t.
That example is working fine. Make a good statement so I can comment on it.
Like car accidents, most hardware problems are due to driver error.
Samir R. Ibrahim
|
|
|
|
|
*cough* name is Elliott, not Ellain *cough*
|
|
|
|
|
I wouldn't call Trollslayer Elliot as she'd scratch me.
Panic, Chaos, Destruction.
My work here is done.
|
|
|
|
|
Samir--
If you think Dave's answer was arrogant because of how spot on it was (meaning that it is completely correct), then I suggest you have no business getting into the programming profession. You should get involved in a touchy-feely business like fast food, or car lot boy where a lack of knowledge about your chosen profession has no bearing on your ability to excecute your professional skills.
Otherwise, suck it up and learn. This isn't a freaking prep school for pampered children.
Good luck and I wish you well.
The world is a stage and most of us are desperately unrehearsed.
—Sean O’Casey, Playwright
|
|
|
|
|
Jerry Hammond wrote: If you think Dave's answer was arrogant because of how spot on it was (meaning that it is completely correct), then I suggest you have no business getting into the programming profession.
Please read my last reply to Dave, I translate an idea in my mind in wrong words.
Like car accidents, most hardware problems are due to driver error.
Samir R. Ibrahim
|
|
|
|
|
Samir Ibrahim wrote: 6 month of learning vb.net
Six months of "learning VB.net" makes you a rank amateur, a newbie, a mere child. It took me ten years to get to a point where I felt comfortable in my knowledge of C++. I've been doing C# for just two years (about 7 years less than almost everyone else here), and while I feel pretty comfortable with it, I wouldn't call myself "accomplished".
And while I realize that this is the VB forum, saying you code in VB is like admitting you use AOL to get on the internet.
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
John Simmons / outlaw programmer wrote: saying you code in VB is like admitting you use AOL to get on the internet.
Hey now, I can understand bashing the OP, but the rest of us?
Back when <= VS6, I would agree with you; but with the CLR/CLS, does it really matter what you use to 'develop' with these days (other than fitting in with the C# norm)?
Any suggestions, ideas, or 'constructive criticism' are always welcome.
"There's no such thing as a stupid question, only stupid people." - Mr. Garrison
|
|
|
|
|
Jon_Boy wrote: Hey now, I can understand bashing the OP, but the rest of us?
I am an equal-opportunity abuser.
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
John Simmons wrote: I am an equal-opportunity abuser.
Jon-boy lowers his head and prepares to be clubbed for his deep rooted love of VB.
Any suggestions, ideas, or 'constructive criticism' are always welcome.
"There's no such thing as a stupid question, only stupid people." - Mr. Garrison
|
|
|
|
|
You have 10 years experience in C++, 2 years in C#
Since the algorithm and principals (thinking of solving the problem) is the same almost in all language.
can you compare your self for learning let say "Delphi" with someone who has no programming experience at all?
Like car accidents, most hardware problems are due to driver error.
Samir R. Ibrahim
|
|
|
|
|
Samir Ibrahim wrote: You have 10 years experience in C++, 2 years in C#
No, I have 18 years in C++, 2 in C#, 8 in Pascal, and a number of years in more obscure languages on systems that were not PCs. I've been programming for a living for 30 years.
Samir Ibrahim wrote: Since the algorithm and principals (thinking of solving the problem) is the same almost in all language.
Old news - I discovered that in 1981.
Samir Ibrahim wrote: can you compare your self for learning let say "Delphi" with someone who has no programming experience at all?
Delphi is Pascal, so no, I can't compare the two since I already know Pascal.
What point are you failing to make?
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
Speaking for myself, I doubt I would make such a fundamental mistake.
Panic, Chaos, Destruction.
My work here is done.
|
|
|
|
|
John Simmons / outlaw programmer wrote: Six months of "learning VB.net" makes you a rank amateur, a newbie, a mere child
I agree 100%.
Who said that I want from you to consider me an expert?
Just take into consideration my programming experience because it make a lot of difference from dealing with no experience.
Like car accidents, most hardware problems are due to driver error.
Samir R. Ibrahim
|
|
|
|
|
Errr , i dont know alot , but sound like subclassing/inheritance..
Me.Version = "1.0" is a setter thingie in this class, you are setting version to 1 , that will set property version to 1 , that will set version to 1 etc..
Version = value is also a setter thingie in this class.
-did you ever type mybase in your subclass ? use and abuse !
-if you have a inherited control , then this class uses a already made class , maybe you'll have to dive into private/protected/public/must overidde/overiddes stuff..It's weird in the beginning but extremely helpfull in the end.
-did you put your usercontrol in a different project and referenced that project into your inheritee project , (cause that how it works with me here) ? A usercontrol sometimes wants to be build first in a seperate project , before it wants to be patched up with new code by a different project.
Jarno Burger
Video Jockey
|
|
|
|
|
Thank you for your answer. Appreciated.
Like car accidents, most hardware problems are due to driver error.
Samir R. Ibrahim
|
|
|
|
|
You really are a muckfit aren't you! You say thanks for a little and rant at a lot.
Panic, Chaos, Destruction.
My work here is done.
|
|
|
|
|
If you can read and understand, you will know that I am trying to end this post and end this discussion. but it seem you don't.
Like car accidents, most hardware problems are due to driver error.
Samir R. Ibrahim
|
|
|
|
|
I normaly type my variables and properties in .NET like so:
Public Class UserControl1 ' I add Textbox
Dim m_Version As String
Property Version() As String
Get
'Version = "1.0" ' Worked Fine
'Me.Version = "1.0" ' Warning 3 Property 'Version' doesn't return a value on all code paths. A null reference exception could occur at run time when the result is used.
'Return "1.0" ' Worked Fine
Return m_Version ' Worked Fine
End Get
Set(ByVal value) As String
m_Version = value ' Works Fine
'Version = value ' Warning 3 Expression recursively calls the containing property 'Version'.
End Set
End Property
End Class
But it probably realy would make sense to make the Property readonly.
Regards: Didi
|
|
|
|
|
Hi all I hope someone can tell me to use crystal report viewer of Crystal report viewer Application to use as crystal report of VB.net thank for reading
|
|
|
|
|
|
Thank for your reply, but I have been try to do again and again but I still can't call Report viewer of other application(Crystal Report 9.0 or upper) to use as Cristal Report Viewer of VB.net I hope I got more batter answer then this. note(The report Viewer Of other application from VB.net Like Crystal Report 9.0, 12, ...)
thank.
modified on Saturday, May 30, 2009 6:15 AM
|
|
|
|
|
Should I or should I not be using the 'Me' keyword to reference local objects and properties? Is it recommended or is it just a matter of coding style?
|
|
|
|