EFileTahi-A
Well-known member
"....NET have same great features..." I thought to my self when
EFileTahi-A said:So what do I need to call this function? _parent_paint(even tryed my wifes name here);
Me.refresh()
EFileTahi-A said:"....NET have same great features..." I thought to my self when
Malfunction said:Before using a complex framework like .Net you should try to understand its basic features.
Malfuction said:Im not halfway through to call myself a beginner although I spent some time working with it now.
Malfuction said:Dont judge something you dont know and your question about events obviously proves that you dont know a lot about the WindowsForms library
Malfuction said:A lot of people (including myself) start off with some windows forms applications and see the benefit of the designer and get depressed when they find out that theres more to it than just learn how to use certain controls.
At this point you either love it or hate it. The latter wont stay with it for long.
Bottomline:
Malfunction said:Winforms is not some magic library that does all that gfx stuff as good (fast) as directX.
Need to get a book with the basics in it.EFileTahi-A said:What do u think am doing here? Thats what am trying to do, understand the basic features, and during this part its natural ppl go frustrated... otherwise I would not be posting here... Am reading tutorials and using the MSDN help... Am not just wishing that i can learn all this during a dream with a mermaid next time I go to bed.
2.5 weeks and youre banging your head into custom controls, custom drawing, GDI+ and whatnot.I have about 2.5 weeks of C#. so, I think u can imagine the huge confusion with c# inside my head right now...
Im not judging it, am simply saying that its transparent redraws are slow (and thats a fact, and, against facts there are no possible arguments) and that I dont understand some things like the calling args...[/quotes]
Its transparent redraws were just fine. It was the transparent redraws over a picture with really high resolution that was slowing you down.
In sprite animation its the transparency that normally slows things down. a lot.
To make up for this and the same redraw issue you had, they draw to an artificial screen in RAM, then draw the entire screen at once.
In essence - by taking the easy way out - youre drawing the background then each individual control.
Im not going to say its more correct, but the more optimised way is to throw it all into memory and draw at once.
That means not having a "Form background" and 40 controls.
This isnt even .net programming, but what I learned in VB6 for making games (which I never really finished) - straight up theory applicable to all languages.
GDI+ is more unified and integrated than GDI in vb6.You mean .NET, as VB6 was d*** fast with graphics (with no directX). If .NET is not fast with graphics (transparent stuff) dont blame "WindowsForms Library" as VB6 proved the inverse. I also read something here about GDI in .NET not being "yet" hardware acelerated... mmmm...
Youre not using GDI+. Youre comparing and object oriented forms library with VB6 hardcoded forms - complete with labels that arnt really controls.
When youre using GDI+, youre not using controls. You either have a 100% blank form or maybe a picturebox youre drawing into.
Youre drawing the picture, text over the picture, working in a native .bmp file, etc.
.Net has its own downfalls without you attributing new ones because youre not using it properly.
I remember when .net came out, someone did a bunch of benchmarks comparing vb6 to vb.net (2002 I guess) in many ways. VB6 came out on top every test. Why? The guy had been using vb (4,5,6) for years. vb.net was new. he was trying to do things the vb6 way.
The funny thing is that after a few months, he went back and redid the benchmarks with the new knowledge hed gained in learning how to use .net - its optimizations, etc. No, it didnt win every time, but it performed a lot better in comparison and came out on top on some things.
This is why you need fundamentals and experience.
Anyone can make a control. Divils the only one I know who can make a control fully functional in runtime and fully optimized. He knows windows forms better than most other people on this site - Id hazzard to say more than most people not working in MS right now.
You can use vb.net to open a textfile and complain that its so slow. There are like 5 ways to do it in .net. Even using StreamReader, there are multiple optimizations and some scream in comparison!
Honestly I would suggest picking up a book - either something like "Complete C#" or maybe MCAD for C# Windows applications. You may not want to become MCAD certified, but I see nothing wrong with learning the "proper" practices right off the bat
luck with the subs