I am creating an Windows Form application in C# that at a certain point opens an all screen form formed by a "grid" of buttons.
I would like some of these buttons to visualize (besides a title) an image on them, that may be modified (e.g. become semi-transparent) at run-time: at the moment an event is fired (in particular clicking on the same button).
How should I do? Should I use the BackgroundImage or Image of the Button...
User Profile
Collapse
-
Buttons with run-time adjustable images
-
You are right, I should specify a bit better!
I'm working on a Windows app, not Web, with C# language.
The fact is I need this property or something that tells me width and height of the screen I'm using, including the Windows taskbar (I think this is the name in English, meaning the bar at the bottom, with start button, open applications, ...)
Thanx George, but: the Screen you mean is a class of System.Windows. Forms... -
Screen dimensions
Hi!
I need to create a form and fill it with a number of button decided at run-time..then I need to create this buttons according to their number such that they adapt on the whole screen dimension..
Is there any property or anything that tells me this?
Thanx!!!
Davide -
Thank you for the advice, I think I understood..jus t one thing: by Page_Init you mean the constructor of the form i'm talkin about, right?
I have a problem, then:
The form I have to create as I told u (AppWin) is called inside the main Application.Run (new StartUp), where StartUp is another form that is needed at the beginning to perform some initial operation and to decide how AppWin must be looking like.
But when I call the...Leave a comment:
-
Help on dinamic button creation
I guess what I have to do is quite simple, but I'm really stuck!
I need to create, in a form, a particular number "i" of "Button"s (i is given at runtime), whose reference name should be "button1","butt on2", ...
I mean something like: Button button1 = new System.Windows. Forms.Button(); ...
So I tried with a "for" looping i times, ech time to create a new Button called button;...
No activity results to display
Show More
Leave a comment: