|
I thought I remembered seeing a starter kit on www.asp.net[^]
|
|
|
|
|
The Community starter kit at http://www.asp.net/Default.aspx?tabindex=9&tabid=47[^] offers some ideas on all kinds of stuff including discussion boards. You could also look in the asp.net controls section here http://www.asp.net/ControlGallery/default.aspx?Category=34&tabindex=2[^] for forum controls.
If you decided to build your own, a simple design could include a table for Forums, one for Topics, and one for Comments with one-to-many relationships between each (many Topics to one Forum, many Comments to one Topic). It would be pretty standard C# data access code to select/insert data to/from the tables, and a DataGrid or Repeater control would work nicely for display in an ASP.NET page.
Then get more sophisticated by adding user logins...
All in all, this isn't a bad type of project if you're learning C#.
|
|
|
|
|
Anyone know how to get a cusor to load from an array of bytes? I have a byte[] in a resorce file that is a custom cursor. I need to load a System.Windows.Forms.Cursor from it. I don't have to use a resource file for it, but it needs to be embeded in the exe some how and not on disk. Thanks in advance.
|
|
|
|
|
It's easier if you don't embed it in a ResX file. Instead, add the .cur file to your project and change it's Build Action (in the properties displayed when you click on the file) to "Embedded Resource".
To get the Cursor (Icons work this way, too), either use Assembly.GetManifestResourceStream or - easier - use this particular Cursor constructor:
Cursor cur = new Cursor(typeof(SomeClass), "MyCursor.cur"); ...where SomeClass is a Type that scopes the resource (provides both the assembly reference and the namespace to find the embedded resource by name). For more information, see the aforementioned constructor.
Basically, if SomeClass exists in the namespace MyCompany.MyProject , the example would look for an embedded resource named "MyCompany.MyProject.MyCursor.cur".
-----BEGIN GEEK CODE BLOCK-----
Version: 3.21
GCS/G/MU d- s: a- C++++ UL@ P++(+++) L+(--) E--- W+++ N++ o+ K? w++++ O- M(+) V? PS-- PE Y++ PGP++ t++@ 5 X+++ R+@ tv+ b(-)>b++ DI++++ D+ G e++>+++ h---* r+++ y+++
-----END GEEK CODE BLOCK-----
|
|
|
|
|
Thanks Heath. I ended up doing it this way. I added it to the project and used a resourcemanager to pull it out. It works great this way. Resources are one spot in .net that I find lacking. MS didn't even provide a good resource editor. All I can find on the net don't work with custom cursors. I had one that was an adding for vs02 but lost it and can't find it again. It worked great.
|
|
|
|
|
Why did you use the ResourceManager ? You simply grab the manifest resource stream. The ResourceManager is for ResX files.
VS.NET has a great resource editor, far better than VS6. It still handles cursors, icons, and bitmaps internally. Instead of string resources, you're supposed to use ResX files. The great thing is that you can embed any file as an embedded resource. If you right-click, you can select "Open with..." to open ANY resource with ANY program (and keep a cached list of programs you use). In VS6, if the resource wasn't understood / handled by the IDE, you had to export the resource, browse to it and open it with the associated application (or open the application then open the file). That was a pain.
In any case, 'tis far easier to just embed the .cur file as an embedded resource and use the Cursor constructor I mentioned, not the ResourceManager . Besides, binary files are stored as bse64 encodings by default. The ResourceManager has overhead for setting things up, then has to find the resource and decode it. The other way is quick and is closer to how it would be done in Win32 when loading a cursor from a persistent file.
-----BEGIN GEEK CODE BLOCK-----
Version: 3.21
GCS/G/MU d- s: a- C++++ UL@ P++(+++) L+(--) E--- W+++ N++ o+ K? w++++ O- M(+) V? PS-- PE Y++ PGP++ t++@ 5 X+++ R+@ tv+ b(-)>b++ DI++++ D+ G e++>+++ h---* r+++ y+++
-----END GEEK CODE BLOCK-----
|
|
|
|
|
Do someone know where can i find the source code of Sqrt() method or where can i read some theory about this subject
thanks for help
|
|
|
|
|
It simply returns the positive result, if the input is negative it returns a NaN which can be detected with IsNan. Is that what you were looking for?
|
|
|
|
|
LOL, of cause not i am looking for the source code of sqeare root method. but thank u any way
|
|
|
|
|
Bisection and Newton-Raphson are commonly used algorithms for this.
|
|
|
|
|
and where can i find them??
|
|
|
|
|
Took me under 10 seconds, but if you're too stupid to use google, it's unlikely you'd be able to understand them.
Christian
I have drunk the cool-aid and found it wan and bitter. - Chris Maunder
|
|
|
|
|
i wrote in my first message that i was looking for the source code of Sqrt() method.
Brian Gideon wrote me the names of the algorithm he knows, so i asked him where can i find them because i expected to find the source code of this algorithms too.
first: i did not ask you.
second: what are you doing here if can find everything in google.
third: think before you want to write something.
fourth: never write stuipid to the people u do not know, got this
i think that u would never say something like this to someone directly, cause this someone would break u f***in face for this ... . got this
have your sickness any name?
|
|
|
|
|
u r ? damn ass ? ( I think you mean dumb ass ) ur ? cause ? ( I think you mean because )
I see I underestimated your stupidity. How did you figure out how to turn your computer on ? Or do people in the sheltered workshop help you ?
Christian
I have drunk the cool-aid and found it wan and bitter. - Chris Maunder
|
|
|
|
|
I love it when weak minded pussies edit their posts to change completely what they said. I should have recognised you for a wimp and quoted you in my reply.....
oOomen wrote:
so i asked him where can i find them because i expected to find the source code of this algorithms too.
Yeah, which makes you an idiot. All you need to do is google. If you can't turn any of the explanations I found in seconds into source code, then you should not be let near anything that resembles source code, you should go and try to work out HTML or something instead.
oOomen wrote:
first: i did not ask you.
You asked on a public forum
oOomen wrote:
second: what are you doing here if can find everything in google.
Helping people who ask questions that are not so easy to google. And advising idiots like you to search for yourself.
oOomen wrote:
third: think before you want to write something.
Most people who read my articles here think that I do. Why don't you try thinking at all ?
oOomen wrote:
fourth: never write stuipid to the people u do not know, got this
Every post you make convinces me further of your stupidity.
oOomen wrote:
i think that u would never say something like this to someone directly, cause this someone would break u f***in face for this
Well, I guess you don't know me that well.
oOomen wrote:
have your sickness any name?
Yeah, sick of idiots.
Christian
I have drunk the cool-aid and found it wan and bitter. - Chris Maunder
|
|
|
|
|
save ur remarks for u cause u need it ok
|
|
|
|
|
you have to learn how to recognize in the cases like this that you are wrong!
|
|
|
|
|
Bwhahahahahahahahahahaaa !!!
It's amazing, there's 670 THOUSAND members on this site, and yet I've managed to find the stupidest one, on the C# forum. I don't recall anyone on the C++ forum ever being this dumb. I feel everything I ever said about C# and .NET is being proved before my eyes......
C'mon, post more poorly spelled half sentences. In the meantime, I'm going to read your profile to verify my suspicion that you're 12 or under.
Christian
I have drunk the cool-aid and found it wan and bitter. - Chris Maunder
|
|
|
|
|
What made you decide to say this instead of
URL : http://www.codeproject.com/script/comments/forums.asp?msg=653169&forumid=1649#xx653169xx
From: oOomen
be a man, not a sh*t!
the think i see it that u r real swine with the sick head, so go to your doctor stupid idiot, but i think it is a hopeless case for u.[laugh]
????
You weak, worthless pussy. Why are you still posting on this ? You made an idiot of yourself, now live with it.
Christian
I have drunk the cool-aid and found it wan and bitter. - Chris Maunder
|
|
|
|
|
Don't judge all C# developers by a few people. Also, I've seen some pretty moronic people on the C++ forums, too.
"Blessed are the peacemakers, for they shall be called sons of God." - Jesus
"You must be the change you wish to see in the world." - Mahatma Gandhi
|
|
|
|
|
Hey, don't get me wrong. There are problems with C#, although some of the major ones are being fixed, they should have been in the first release ( generics are a major one ). However, I use it every day at work, and it certainly has pluses over C++, as well as minuses. I was more referring to the marketing of C#/.NET being designed to appeal to the lowest common denominator, and therefore to attract morons. There are good programmers and bad ones in every language, but the ratio differs. I'd prefer my chances of finding a good C++ to a good VB programmer, for example. C#, I'm not sure yet where the ratio will sit. I sure hope it sits with us, and not with this other guy......
Christian
I have drunk the cool-aid and found it wan and bitter. - Chris Maunder
|
|
|
|
|
pretty moronic dude you can see in the mirror, too
|
|
|
|
|
The answer you imagine to have managed, is always quite close to you.
It's lights, which comes in your eyes after it was reflected from your body.
good luck and have a nice day
|
|
|
|
|
http://www.google.com/search?hl=en&ie=UTF-8&oe=UTF-8&q=Square+Root+Algorithms
|
|
|
|
|
Hi every body!
My app has 1 array which consists of 3 comboboxes, each comboBox of the array uses the same comboBox_ChangedItem(object sender, System.EventArgs e) method.
When those ComboBox are Changed item, How can I know which combobox was changed? (I mean how can I get index of changed combo in the Array?)
Thanks!
xyz
|
|
|
|