Click to See Complete Forum and Search --> : Graphical buttons...?


Talikag
January 28th, 2007, 10:23 AM
I need graphical buttons for my project, I just took a look at the button properties and I was surprise to discover that there was no "Style" propertie, is there a way to create a graphical buttons in C#?

Thanks.

BTW: I think Ill stop asking here questions each 2 hours, I guess you got no power for me anymore (You are all too polite to say that :P).
Ill stop bother you xD

dcell59
January 28th, 2007, 12:42 PM
There is an "Image" property. Would that work for you?

Talikag
January 28th, 2007, 01:02 PM
There is an "Image" property. Would that work for you?
Not really, I want a button with a backcolor (not a gray backcolor), but when I make a colourful backcolor the border of the button stays gray and it's ugly :/

Is there a way to color ALL the button?

dcell59
January 28th, 2007, 01:23 PM
I created a button, put an image on it, and then made the FlatStyle "Flat" and turned off the border.

I also made a square red button with no borders by setting the button's BackColor to red and doing the same FlatStyle changes as above.

What else do you want to be able to do?

Talikag
January 28th, 2007, 01:28 PM
I created a button, put an image on it, and then made the FlatStyle "Flat" and turned off the border.

I also made a square red button with no borders by setting the button's BackColor to red and doing the same FlatStyle changes as above.

What else do you want to be able to do?
Oh, lolz, it's a command button :/
Now I discovered it

emm... There is a command in the components, but when I it's just don't want to be added to my toolbar
does anybody knows how do I declare on a command-button?

??? command1 = new System.???

petes1234
January 28th, 2007, 01:59 PM
Oh, lolz, it's a command button :/
Now I discovered it

Are you creating a windows form app or a web app? I believe that command buttons are only for web apps (but again, I could be wrong).

/P

Talikag
January 28th, 2007, 02:06 PM
Are you creating a windows form app or a web app? I believe that command buttons are only for web apps (but again, I could be wrong).

/P
It's a window application, but Im not able to do somethin like this:

command x = new System.Web.(...).Command();


I don't know what to do :/, without the command-buttons it's so ugly and tasteless :(

dcell59
January 28th, 2007, 03:33 PM
What's special about a command button that a Windows Forms button doesn't do?

BTW, when working with Windows Forms, it's a good idea to set the Help Index filter to "Windows Forms Development" to help avoid trying to use features from ASP.NET.

Talikag
January 28th, 2007, 03:51 PM
What's special about a command button that a Windows Forms button doesn't do?

BTW, when working with Windows Forms, it's a good idea to set the Help Index filter to "Windows Forms Development" to help avoid trying to use features from ASP.NET.
I just can't create a board from normal labels, it looks verrrry bad, emm.. Take a look at the window's minesweeper, those are command buttons (or at least what I want)... If I won't success to create 1 I think Ill do it flat.. :P

petes1234
January 28th, 2007, 04:27 PM
Take a look at the window's minesweeper, those are command buttons
I think you may misunderstand what command buttons are. The windows minesweeper game is not an internet app and so cannot use command buttons.
/Pete

dcell59
January 28th, 2007, 05:20 PM
I see what you're talking about. I just assumed you were using the Windows Forms Button control. That's what I based my response on.