|
|
OK. I don't have any code that could help you right now, but I'm currently studying up on how to build components in .NET 2.0.
Create a new component and make it extend System.Windows.Forms.Form. After that, override the OnPaint method. That should get you started.
If you want to test your form, create a new form and edit the code by making that form extend yours. Hope this helps!
Maybe somebody else has more experience with forms? I've never created a custom form before sooooo.....
|
|
|
|
|
Based on your profile that you are VERY new programming, isn't this kind of a very big step?
"Find it your bloody self - immediately!" - Dave Kreskowiak
|
|
|
|
|
True, true, but I want to learn this so I can try a few things and play around with it, you know?
|
|
|
|
|
Sure, but like Christian said, you will have to be in control of the redrawing/painting. It is a bit involved.
"Find it your bloody self - immediately!" - Dave Kreskowiak
|
|
|
|
|
|
No, you don't. There is such a huge amount of information you don't know yet that's required to do this. Sure, we could explain it to you, but the explaination would go so far over your head that you'd think it was a jetliner.
...and it would take something on the order of about 400 forum posts to lay out.
Seriously, scale back the requirements. Skinning your first app and creating custom controls to get the look you want, is like trying to build an entire car from scratch, and you haven't even finished your first metal shop class yet.
|
|
|
|
|
Dave Kreskowiak wrote: Skinning your first app and creating custom controls to get the look you want, is like trying to build an entire car from scratch, and you haven't even finished your first metal shop class yet.
Nice analogy.
Dave Kreskowiak wrote: Seriously, scale back the requirements.
I agree.
Dave Kreskowiak wrote: ...and it would take something on the order of about 400 forum posts to lay out.
And that is on the conservative side, I reckon
"Find it your bloody self - immediately!" - Dave Kreskowiak
|
|
|
|
|
I used to read some game programming forums, and they were full of posts like:
I just started learning C++ and I'm going to write the best game engine EVER. It will have pixel shading, blah blah blah. Who wants to join my team.
Two days later:
How do you get a cube to appear in DirectX ?
Then they would be gone. So few people want to learn at a reasonable pace, it's frustrating.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Welcome to the "instant gratification" generation. An entire generation of kids who believe the world revolves around them and everything should be handed to 'em. Colleges turning out idiots and charging an awful lot of money to do so. Un-frickin-believable.
|
|
|
|
|
There is an article on CP on skinable apps, beyond that, no.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Well, way to turn someone off to programming. You think I'm a stupid kid, but I'm not, though I KNOW I've got a long while. I'm not one of the people "Yeah, lets do it now!". I know it's long and frustrating and all of it. I don't know how hard it will get, but,I know it can be diificult; for example, I read 1 app took 1,767,000 lines of code. I'm not an idiot. (entirely) No there's no need to be cruel, though I realize level. My speech is over.
|
|
|
|
|
MasterSharp wrote: No there's no need to be cruel
Just how was Christian cruel??
MasterSharp wrote: though I realize level
Guy, there's just no way to show you how to do this in a small example app. The amount of code required to build an entirely custom "skinnable" form is quite large, just for a small sample.
We've been trying to tell you that the skill level required to build this yourself is years away. He's not trying to turn you off from programming. He's trying to stop you from turning yourself off to it by taking on a project that's just plain old too much for a beginner such as yourself.
MasterSharp wrote: for example, I read 1 app took 1,767,000 lines of code
So? "Lines of code" is almost a meaningless metric. There's a huge difference between 100 lines of good code and 100 lines of total garbage than won't even compile.
1.7 million is nothing compared to the codebase for Windows Vista, weighing in at an estimated 45+ million lines. I leave it to you to evaluate if thats more on the "good" side than the "garbage" side.
MasterSharp wrote: I'm not an idiot. (entirely)
It's not a statement of you being an idiot or not. This is about the amount of experience required to pull off a level of work. And that experience only comes with writing code for Windows Forms for a number of years to develop the level of understanding you need to begin such a project.
|
|
|
|
|
hello sir,
in a visual c# project iam using typed dataset
when i want to show data in a report using recordselectionformula it displays only feild name .Please help me
monu
getting started
|
|
|
|
|
It would help if you post the code part where it goes wrong.
|
|
|
|
|
my code are
SqlConnection cn=new SqlConnection(ConfigurationSettings.AppSettings["con"]);
SqlDataAdapter ad=new SqlDataAdapter("select * from printfees ",cn);
fees dt=new fees();
//fees is the name of typed dataset
ad.Fill(dt);
CrystalReport2 crv1=new CrystalReport2();
crv1.SetDataSource(dt);
crv1.RecordSelectionFormula="{printfees.registrationnumber}= '"+txtregistration.Text+"' ";//and {printfees.feesofmonth}='"+txtmonth.Text+"' and {printfees.session}='"+txtsession.Text+"' ";
CrystalReportViewer1.ReportSource = crv1;
|
|
|
|
|
Still not quite understanding what is your problem.
By the way, it is better to filter data that only you need first in your SQL, rather than pull ALL data into a dataset then pass ALL the data to Crystal Report to let Crystal Report filter the data.
|
|
|
|
|
there is any build in control for wordpad lie in c#
|
|
|
|
|
Please stop posting questions regarding the same thing. One post is enough.
Virtual1ty
"Any fool can learn from his own mistakes, but a wise man learns from mistakes of others"
|
|
|
|
|
If you post 2 more questions of this quality in the next 10 minutes you get a prize!
"More functions should disregard input values and just return 12. It would make life easier." - comment posted on WTF
"This time yesterday, I still had 24 hours to meet the deadline I've just missed today."
|
|
|
|
|
Don't encourage him...he might take you seriously!
|
|
|
|
|
|
Please don't post your question 3 times.
|
|
|
|
|
You can't. Wordpad is just a simple throwaway app that reads most of a Word doc. Word is an application that has full suppor for external control.
As someone else said, ask your question once, not three times.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Don't keep asking the same question over and over again. It really irritates people...
"Find it your bloody self - immediately!" - Dave Kreskowiak
|
|
|
|