|
Create a round button image with your favrotie editor. Then subclass the button class ( can't remember the exact name ). Override the paint method to paint the image onto the screen instead of the normal button. You can then draw the string above the Image. This should give you the effect of a rounded button.
Jared
jparsons@jparsons.org
www.prism.gatech.edu/~gte477n
|
|
|
|
|
The buttons you see with Windows XP are caused by enabling XP to use Themes on your application.
There are many topics on MSDN about enabling XP Themes so I won't tell you how here; a search for 'XP Themes' should turn up a few articles you may need to trim it down by adding '.NET' to the search as well.
James
"Java is free - and worth every penny." - Christian Graus
|
|
|
|
|
To the guyz hacking at C#
do you find it more OOL then C++ or less ?
Or is it too early to tell ?
Regardz
Colin J Davies
Sonork ID 100.9197:Colin
I am sick of fighting with Martin, I think I will ignore his posts from here on in, and spend the time working on articles instead.
Christian Graus
|
|
|
|
|
First, what's your definition of OO? There seems to be some disagreement as to what the essential constituents of it are.
I define it to include encapsulation, inheritance and polymorphism. In this respect, C++ and C# are equally OO. However, in C++ you can still write procedural code. Some take this to mean that C++ is not "pure" OO.
On the other hand C++ has multiple inhertitance. Some, like the Eiffel guys, take multiple inheritance to be part of OO, but I think this is too restrictive a definition. Few OO languages would survive such a characterisation.
Kevin
|
|
|
|
|
You are right about the definition stuff, its a disagreeable point, easily enough.
I was more after "feelings" rather than principles.
So as to see if anyone felt it was more or less OO.
Since I haven't really done nothing in C# I can't comment.
But your feedback is appreciated.
Regardz
Colin J Davies
Sonork ID 100.9197:Colin
I am sick of fighting with Martin, I think I will ignore his posts from here on in, and spend the time working on articles instead.
Christian Graus
|
|
|
|
|
|
Just because C# is a straightjacket, does that make it more OO, or just harder to use if your project does not entirely fit an OO paradigm ?
Christian
come on all you MS suckups, defend your sugar-daddy now. - Chris Losinger - 11/07/2002
|
|
|
|
|
So perhaps it's better to ask not whether C++ is OO but does it support OO? For me, the answer is definitely: yes.
Personally, I don't think the fact that C++ allows procedural programming should detract from the central question of whether it allows the full spectrum of OO features. Though, one can discuss how well it implements those features.
Interestingly, a language such as Python, unlike C++, was designed upfront to be OO. But it also supports procedural programming. Yet I bet few would say that Python is not truly OO.
Another issue, you can still do procedural programming in VB .NET. Does this mean it's not now truly OO?
Kevin
|
|
|
|
|
The question should be - is a "pure OO" (however that is defined) language better than one that is not? I have been a proponent of OO since I first learned it back in the '80's, but even I know that it is not an ideal solution to every programming issue. Therefore, a language which allows you to write non-OO code when needed is vastly better than one which does not.
"Human imagination has been sculpted by the universe within which it was born" Hmmmm...
|
|
|
|
|
Amen, Reverend. Testify !!!
Christian
come on all you MS suckups, defend your sugar-daddy now. - Chris Losinger - 11/07/2002
|
|
|
|
|
It's true that OO is not an ideal solution to every situation. But it does not follow that a language that allows you to write non-OO code when needed is vastly better than one which does not. Some argue that trying to mix two paradigms in the same language causes confusion and makes it difficult to separate out the concepts. C++ is heavily criticised for deciding to bolt on OO on top of a procedural base. Though really its main problems are due to its retaining backwards compatibility with C, a low-level language. This tends to produce obscure and inelegant solutions. You tend to have to work much harder to do things properly in an OO sense.
Betrand Meyer argues that a better approach is to allow interfaces from OO languages into procedural code and vice-versa, rather than munging the two together.
OTOH, Python is an OO language that allows procedural programming and I don't think it has the problems of C++. This is likely because Python was designed upfront to be OO.
Kevin
|
|
|
|
|
I think this is the method i should use to retrieve a bitmap i added to resource [its not in a resource file!] in sharp develop. now i want to load that, but do not know how. some help please.
Email: theeclypse@hotmail.com URL: http://www.onyeyiri.co.uk "All programmers are playwrights and all computers are lousy actors."
|
|
|
|
|
Check the bitmap properties?
Build action = Embedded Resources!
Normski. - the next bit of code is self modifying ... jmp 0xCODE
|
|
|
|
|
|
Thats a setting for files in a VS.NET project. Obviously not going to help you.
IIRC the FromResource method is used to load a Win32 resource out of a resource-only satelite dll; so it wouldn't be of much help to you.
James
"Java is free - and worth every penny." - Christian Graus
|
|
|
|
|
Is there similary method in C# like IntersectRect() function in C?
I want to use it for square "collisons".
Rickard Andersson@Suza Computing
C# and C++ programmer from SWEDEN!
UIN: 50302279
E-Mail: nikado@pc.nu
Speciality: I love C#, ASP.NET and C++!
|
|
|
|
|
You mean myRect.IntersectsWith() or myRect.Intersect() ?
James
"Java is free - and worth every penny." - Christian Graus
|
|
|
|
|
James T. Johnson wrote:
You mean myRect.IntersectsWith() or myRect.Intersect()?
James, yes!
And it was damn easy to use!
Rickard Andersson@Suza Computing
C# and C++ programmer from SWEDEN!
UIN: 50302279
E-Mail: nikado@pc.nu
Speciality: I love C#, ASP.NET and C++!
|
|
|
|
|
Well...I have a problem here ..I can't debug my applications from VS.NET...not even an empty command-line application.
I can build all the stuff normally and launch it from the VS.NET command prompt and it works perfectly fine, but I would like to use the GUI debugger in VS.NET.
When I click Run, the output screen outputs all the normal lines until "Build: 1 succeeded" etc. Usually I get another "Deploy:" line, but VS.NET hangs before it gets there. I have to use the Win2000 Task Manager to shut it down and launch the program again (Quick Launch button).
I conjectured that VS.NET can't identify the process and to check, I clicked Debug Processes under Debug and sure enough, VS.NET hanged in the same way.
Anyone has the same problem or know how to fix it?
I'm using Windows 2000 and have administrator privileges.
|
|
|
|
|
You're going to want to ask this in the VS.NET IDE issues forum...
David Stone
dstone@newcenturytitle.com
Procrastination is like masturbation; it's all good until you realize you just screwed yourself.
-Writing on a bench at college
|
|
|
|
|
How can I copy a complete directory and its content? The File class has the
Copy/Move method, the Directory class has the Move method only. Why not the
Copy method?? Is there any reason?
Pranoti
|
|
|
|
|
|
How can we change this C++ function in C#?
foo(int x, int y = 10)
{
.
.
}
main()
{
int i = 5;
int k = 2;
foo(5);
foo(5, 2);
}
Thanks in advance.
|
|
|
|
|
I think you'd have to do this
<br />
private void foo(int x, int y)<br />
{<br />
.<br />
.<br />
}<br />
<br />
private void foo(int x)<br />
{<br />
foo(x, 10);<br />
}<br />
Andy Gaskell, MCSD MCDBA
|
|
|
|
|
Hi,
Anyone got a sample or a link to a sample of exception handling across threads?
i.e. got a worker thread that throws but i want to catch it in my main thread.....
|
|
|
|