Click here to Skip to main content
15,902,276 members
Home / Discussions / C#
   

C#

 
AnswerRe: how to change colour? Pin
Paul Conrad14-Dec-06 13:11
professionalPaul Conrad14-Dec-06 13:11 
GeneralTHANXXXXXXXXXXXXXXXXXxxx Pin
sajid.salim.khan14-Dec-06 20:38
sajid.salim.khan14-Dec-06 20:38 
QuestionPages per sheet Pin
netJP12L14-Dec-06 9:06
netJP12L14-Dec-06 9:06 
QuestionDialog box Pin
sajid.salim.khan14-Dec-06 8:18
sajid.salim.khan14-Dec-06 8:18 
AnswerRe: Dialog box Pin
Nader Elshehabi14-Dec-06 8:47
Nader Elshehabi14-Dec-06 8:47 
GeneralI Love the Way U answer But ! Pin
sajid.salim.khan14-Dec-06 9:02
sajid.salim.khan14-Dec-06 9:02 
AnswerRe: I Love the Way U answer But ! Pin
Martin#14-Dec-06 9:19
Martin#14-Dec-06 9:19 
GeneralRe: I Love the Way U answer But ! Pin
Nader Elshehabi14-Dec-06 9:47
Nader Elshehabi14-Dec-06 9:47 
Forgive me if I misunderstood you at first, but dialog box is different from message box. Anyway, changing the message box behaviour/appearance is done by changing windows themes. You can't change your message boxes alone. Another way is to make a form instead of the message box, and put whatever buttons you wish in it. This way you could change it as you like.
sajid.salim.khan wrote:
how do i change the strip Colour of my main form

This question has been asked many times in this forums, and I haven't seen a satisfying 1-2-3 short answer yet. Yes, there are several ways of doing it, but not in pure C#. Take a look at GDI+[^] section, or C# graphics[^] section. I believe you could find somthing satisfying -it won't be straightforward as I said.

PS. The following two ways are quite hard and way out of the league of C#.
1- You can use GetWindowDC()[^] Windows API function, to get the Device Context of your window -somehting like the graphics object-. Then use Windows API drawing functions to customly drawing your window -including the caption bar-.
2- If you only want to change the gradient color of the caption bar, you can use CreateWindowEx()[^] function. It has variant styles that you can choose from, then box it into a NativeWindow using the NativeWindow.AssignHandle() method.

RegardsRose | [Rose]

GeneralThanXXXXXXXXXXXXXXXXX Pin
sajid.salim.khan14-Dec-06 10:02
sajid.salim.khan14-Dec-06 10:02 
QuestionI found something in the following document Pin
lulaleila14-Dec-06 7:17
lulaleila14-Dec-06 7:17 
QuestionFriendAccessAllowed Attribute Pin
tomerico14-Dec-06 6:34
tomerico14-Dec-06 6:34 
QuestionRe: FriendAccessAllowed Attribute Pin
Hassan Faghihi8-Oct-16 0:56
Hassan Faghihi8-Oct-16 0:56 
QuestionRead and append to a text file Pin
steve_rm14-Dec-06 6:34
steve_rm14-Dec-06 6:34 
AnswerRe: Read and append to a text file Pin
DavidNohejl14-Dec-06 7:02
DavidNohejl14-Dec-06 7:02 
QuestionCopy Text box Value Pin
sajid.salim.khan14-Dec-06 6:33
sajid.salim.khan14-Dec-06 6:33 
AnswerRe: Copy Text box Value Pin
gnadeem14-Dec-06 7:55
gnadeem14-Dec-06 7:55 
GeneralThanxxxxxxxxxxxxxxxxxx:rose: Pin
sajid.salim.khan14-Dec-06 8:53
sajid.salim.khan14-Dec-06 8:53 
QuestionStoring a Colour in Xml using XmlConvert Pin
Gareth H14-Dec-06 5:28
Gareth H14-Dec-06 5:28 
AnswerRe: Storing a Colour in Xml using XmlConvert Pin
Guffa14-Dec-06 5:40
Guffa14-Dec-06 5:40 
GeneralRe: Storing a Colour in Xml using XmlConvert Pin
Gareth H14-Dec-06 22:31
Gareth H14-Dec-06 22:31 
Question.net 2.0 datagridview column header width Pin
fmardani14-Dec-06 4:26
fmardani14-Dec-06 4:26 
AnswerRe: .net 2.0 datagridview column header width Pin
Ravi Bhavnani14-Dec-06 4:52
professionalRavi Bhavnani14-Dec-06 4:52 
Questionhow to programmatically delete cookies Pin
cellardoor071614-Dec-06 4:10
cellardoor071614-Dec-06 4:10 
AnswerRe: how to programmatically delete cookies Pin
Ravi Bhavnani14-Dec-06 4:59
professionalRavi Bhavnani14-Dec-06 4:59 
QuestionRe: how to programmatically delete cookies Pin
SpartanSoft14-Dec-06 8:44
SpartanSoft14-Dec-06 8:44 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.