Need help with painting text

hi i believe i can help you out here

look it besicly is the same for every event the sender is usualy the object that it
fireing the event so if your object is a form class object it will be the form that fires the event so you can asume the sender your getting will be the form your using

and the eventArgs well thats the data you can use or you get from that event
be glad you get it in some cases you can change the values to have like cool effects
like you can change a color at the last time or change text or do other stuf

but i think your problem is that you should make some reusable classes that do all stuff you said in you post. like you could create a button yourself witch is a 1 time job and add features like fast transparancy or make it cool translucent with a nice soft color at the code project they have lots of good tutorials. you should check out there site

if you need any help creating some classes im am willing to help you get started

help i sorted out some things for ya buy
 
Malfunction said:
Before using a complex framework like .Net you should try to understand its basic features.

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.

Malfuction said:
Im not halfway through to call myself a beginner although I spent some time working with it now.

I have about 2.5 weeks of C#. so, I think u can imagine the huge confusion with c# inside my head right 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

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...

Yes I dont know alot of windowsForms Library. I though nobody would notice this, but yeah, u caugh me! Am just trying to understand it, and hoping ppl here will help me...

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:

So u are aware that ppl might get drepressed (specialy at the learning phase, and not because I found "...theres more to it...") and even start to hating it or loving .NET... So, I truly dont understand your moral lesson here...

Malfunction said:
Winforms is not some magic library that does all that gfx stuff as good (fast) as directX.

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...

Conclusion, In my first post it was obviously that I was pisst off (still am). So, when ppl is pisst off, their mood becomes diferent, sometimes means caution you know... (Maybe I should change the topic name to "truly pisst off!" so ppl can realize this, or, something like, I dont know...). The previous persons who post before you realized this and their concern was trying to help me out (thk you mates, realy apreciate that!!) so, dont get hard feelings on this one... I only wrote things this way because u came here with a "Daddy" attitude and did not help at all.

PS: Tks m8, Althought you told me nothing new, it did not help either... Dont bother answering if ur not going to help me.
 
Last edited by a moderator:
Hey buddy :)


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.
Need to get a book with the basics in it.

MSDN is very spuratic and trying to REALLY figure out a MSDN article can require weeks at times. Why?

Well you need to understand the topic and normally that means understanding the underlying topics. Its just like english or any other language. If you read a sentence and you dont understand something - you have to go look it up. Otherwise youre just kinda hedging along and dont have a solid foundation.

Without a solid foundation, if anything goes wrong or changes (and they always do) youre stuck up the creek without a paddle trying to get something to work differently.

If you can find a GOOD tutorial that runs from A-Z on a site, take it. I havnt found it yet so Id suggest at least getting a "C#" basics book.

I think its silly normally to try to learn from 80 different tutorials on the net. If you need to know something specific - well thats fine.

In learning a language, you cant have holes in your learning. You need it to transition from one topic to another and build on itself, laying a nice foundation.

I have about 2.5 weeks of C#. so, I think u can imagine the huge confusion with c# inside my head right now...
2.5 weeks and youre banging your head into custom controls, custom drawing, GDI+ and whatnot.

You might need to take a step back and work on the basics.

You come from vb6 - a similar language - but its not object oriented.

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.

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...
GDI+ is more unified and integrated than GDI in vb6.

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 :D
 
its not becuals you have the manuals and the explenation on some things you can actualy use it. You need some besic technieques on how to get things organized im not firing at enyone here and i do think divil hase some greate controls but i do to believe that with some good help that anyone can create good controls aswell but you need some besic idea of how things actualy work.

for example when i first started programming may dream was to create a game at first i thout a big 3d game but soon i began to relize its not that easy so i started small and desided to create a breakout style game (a classic for every starting game programmer) and that ,something that seemd so simple wasnt simple at all becauls i had to do it all by my self ,no helping ,no samples ,nothing just turbo pascal (at that time) so it was hard. but then when i finaly made the game it got me going i undertood the basics of a game, now i can create any type of game since in the end they all work the same.

see that is why i think if you give peoeple smoe help on getting started they will learn things faster and eventualy create greate things their self.

this is why i think forums are a grate place to learn and i am willing to give peoeple with some ambitian that help to get the going.

so if you need me or want to ask me something on msn EfileTahi

Vanhecke_Mario@msn.com is my adress
 
Well thaks for the replies m8s... realy i like ya alot (Denaes and engine252)

I wish so much to learn... My biggest dream is to work as game designer :), u know... talk to ppl to share my ideias and make them bring it to life, there is just so bright and awesome minds at game developing companies, I call then the ELITE of the planet since u find there all the best GFX, musicians and programmers! but... since this is quite impossible (being a game designer) I have to manualy bring those projects to life by myself! lol

Engine252 u can make any game? God knows I wish to have ur acknowledge :D... thats why I just gave up on normal life and am studying C# day and night!

Hey, one final question... Denaes remember when i sent my project yesterday and it went weird by everthing being at wrong place and text box who did overlapped? Well, when I open my project at my jobs computer, the project opened exactly like the picture u sent me (with the aboves description)..

My labels were all too far right... and the form was way too wide! why did this happens? it opens ok at my homes computer... is there an service pack for .NET or something? D***!!!... Just went a few more steps backwords... Looks like everything is against me or something...

PS: why was my topic name changed? funny... ahh... maybe so that my topic can be categorized (right?)
 
Back
Top