hi does any one know the RGB values of the standard form in C#.net? how can i get it to be add to the colour pallatte in the C#.net color pallette?

Member Avatar
Member Avatar
+0 forum 9

## Background ## Hi All, I 've been playing around with colour (color!) formats and needed to create a class for converting different formats, so I thought I'd share it. It seems to work quite well and accepts a number of different convenient formats. The class allows the conversion between HSL, HSV, RGB, CMYK, HEX (base16), Integer (base10) and 'HTML color names'. I found the formulae for conversion from pseudocode in the following locations: http://www.rapidtables.com/convert/color/ (great colour references!) http://stackoverflow.com/questions/15202079/convert-hex-color (for the sscanf method) It should be noted that conversions involving CMYK can only be approximate as there is no absolute …

Member Avatar
Member Avatar
+5 forum 4

Wassup. I'm writing an application for web development. I have run into an issue and can't seem to overcome it. I have a button within the application that upon being clicked, will create a new tab that contains a rich text box. This new tab can then be used to edit existing files, or save new files. My problem is this; is there a way I can check for specific words in each text box in every tab and then change that words colour? For example, if the sentence int a = 2; is typed, is there a way to …

Member Avatar
Member Avatar
+0 forum 4

I want to let user to choose the colour of the border, the background and the background image. How can I do that? What I want is like the user choose blue from a dropdown list then this code below will change to the relative colour and image. .ui-widget-header { border: 1px solid #f86da8; background: #f84a94 url(images/ui-bg_gloss-wave_55_f84a94_500x100.png) 50% 50% repeat-x; Thanks for helping.

Member Avatar
Member Avatar
+0 forum 1

Hi can you help me please how can i change the color of progressbar or just look like in windows xp progress bar...please help me...thank you in advance hoping for your positive responds...

Member Avatar
Member Avatar
+0 forum 8

HELP ME plzzz! I try to make my datagridview rows change colour depending on value on a row cell. I ve tryed everything i found on the web but nothing.. plz help Last I tryed this one: http://msdn.microsoft.com/en-us/library/system.windows.forms.datagridview.cellformatting.aspx but stil nothing :(

Member Avatar
Member Avatar
+0 forum 3

Hey, i googled around for a solution but seem unable to come up with a reasonable solution to the problem of passing a class as a parameter. I wish to mimic the syntax used in java like below : setPenColor(new Color(255, 0, 255)); Where i can pass a new object as a parameter, however since no constructor has a return type, and if i use something like : //output returns a hex string, part of RGBColor class public String getOutput() { return output; } //the add function in the pen class public int add(String c) { System.out.print(c); return 0; } …

Member Avatar
Member Avatar
+0 forum 8

I notice that in some browsers, on some OSs, a field in a form gets a colored border. Is there any way to use CSS3, or possibly a JavaScript, to change the border color (as one can change the text highlight color on a given HTML page using CSS3)?

Member Avatar
Member Avatar
+0 forum 2

Is it possible to change text colour in the console window with Python? If so, could anyone tell me how?

Member Avatar
Member Avatar
+0 forum 3

Hey y'all, so I've created a 2D billiard program that basically just collides 2 balls together and determines their new direction and velocity however I now want to be able to change the colors of the balls after collision by using [CODE]Color.FromArgb(int r, int g, int b)[/CODE]. I would use something like [CODE]Red component = max( velocity * 25, 255 )[/CODE] ... etc for blue and green to create the colours of the balls afterwards (velocity would just be the sum of the square horizontal and vertical velocities). I was wondering if anyone had any tips other than what I …

Member Avatar
Member Avatar
+0 forum 3

Hi everyone. First time poster here :) I'm working on my final project for a computing course at university, and I was wondering if anyone knew of a portable library or solution to changing console colours. I understand that such functions are OS specific (I'm working on Win32, but my prof is a Mac-grrl) and thus likely a giant headache for someone of my limited experience... but hey, it would be nice to try for bonus points. Just curious. TYIA.

Member Avatar
Member Avatar
+0 forum 1

Anyone work with UltimateListCtrl's before? I'm looking for a way to dynamically change the column headers background color.

Member Avatar
+0 forum 0

My project I am working on is a product location system for a large supermarket. My current issue is that the map I am using to display the product location is assembled from rectangle objects which I will then change the colour of when required. The array storing the locations is dimensioned as LocationArray(x) Where x is equal to the max rows function used on a table in database. Stored information always proceeded with "loc_" and the location. All rectangles are named in accordance with this. I wish to pull the field name stored in the array (which corresponds to …

Member Avatar
Member Avatar
+0 forum 9

Hi All I have this XSL code, but I am trying to get it so every other row is light grey and the ones in between are white. I want the headers to be anjother colour all together. [CODE] <?xml version='1.0'?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl"> <xsl:template match="/"> <html> <body> <table border="2" bgcolor="yellow"> <tr> <th>OrderNum</th> <th>Date</th> </tr> <xsl:for-each select="ExportQuery/ELEC01_SalesOrdersWaitingParts[NotEnoughStock='TRUE']"> <tr> <td class="class"><xsl:value-of select="OrderHed_OrderNum"/></td> <td class="class"><xsl:value-of select="OrderHed_OrderDate"/></td> </tr> </xsl:for-each> </table> </body> </html> </xsl:template> </xsl:stylesheet> [/CODE] Any help would be greatly appreciated. Thanks.

Member Avatar
Member Avatar
+0 forum 2

Hey, I have this code [CODE]Public Class Form1 Private Declare Sub mouse_event Lib "user32" (ByVal dwFlags As Integer, ByVal dx As Integer, ByVal dy As Integer, ByVal cButtons As Integer, ByVal dwExtraInfo As Integer) Private Const MOUSEEVENTF_MOVE As Integer = &H1 ' mouse move Private Const MOUSEEVENTF_LEFTDOWN As Integer = &H2 ' left button down Private Const MOUSEEVENTF_LEFTUP As Integer = &H4 ' left button up Private Const MOUSEEVENTF_RIGHTDOWN As Integer = &H8 ' right button down Private Const MOUSEEVENTF_RIGHTUP As Integer = &H10 ' right button up Private Const MOUSEEVENTF_MIDDLEDOWN As Integer = &H20 ' middle button down Private …

Member Avatar
+0 forum 0

anyone know how to make the colour text box w2 change to a random colour when button clicked please ? [CODE] </html> <FORM NAME = frmOne> StartA X: <INPUT TYPE = Text NAME = x SIZE = 5 value ="0"> Two B Y: <INPUT TYPE = Text NAME = y SIZE = 5 value ="1"> Three D W: <INPUT TYPE = Text NAME = w SIZE = 5 value ="0"> W2+: <INPUT TYPE = Text NAME = w2 style="background-color:#444999" SIZE = 5 value = ("0") > W3:<INPUT TYPE = Text NAME = w3 SIZE = 5 value = "0" > …

Member Avatar
Member Avatar
+0 forum 5

Hi, I'm a beginner with html and javascript, so I try and edit other peoples free codes, Ive got some input boxes and I want to change the colour of them, they are the default white, I want them transparent, there is no code I can see that says its colour, I'm not sure what to change or put in so I can make the white part inside the input field transparent Here is my script. you will see some white boxes, its this I'm trying to change colour. [CODE]<script language="JavaScript"> <!-- Begin secs2 = 0; count = 0; allBpm …

Member Avatar
Member Avatar
+0 forum 26

Everytime btnSendClick is execute, 2 messages will be added to the rich edit. The first needs to be of fixed values (BOLD, size 8 etc) The second needs to be changable by the user using a FontDialog box. This is my below code, but it doesnt quite work, it pretty much just ignores my FIXED settings!!! Help me please [CODE]procedure TfrmMain.btnSendClick(Sender: TObject); //send message begin edChat.SelAttributes.Name := 'Tahoma'; //assign to set values edChat.SelAttributes.Style := [fsBold]; //assign to set values edChat.SelAttributes.Size := 8; //assign to set values edChat.SelAttributes.Color := clWindowText; //assign to set values edChat.Lines.Add(DateTimeToStr(now)+' '+UserName+' says:'); //date time and user …

Member Avatar
Member Avatar
+0 forum 2

I'm stumped with a somewhat complicated 'lookup table' situation. I've tried many different methods to output the data I need (and in the order I need it) but I think I'm just going around in circles. Basically I'm trying to output a <select> dropdown form element, with serveral different <options> which refer to the available sizes and colours of a garment. My table layouts are as follows: [COLOR="Red"]colours.table[/COLOR] [COLOR="Green"]id, colour_name[/COLOR] 1, Black 2, White 3, Black & White tie-dye 4, Grey 5, Beige [I](as you can see, these are not stored in alphabetical order as new colours can always be …

Member Avatar
Member Avatar
+0 forum 3

HI Guys. I'm trying to make my own lite program that can highlight specified chosen words (Syntax highlighting in short). I have a working method using Regex, but it is TOO SLOW. Here is what is currently: My Regex Statements: [CODE] public Regex SettingsAndComments = new Regex("--settings|-|", RegexOptions.IgnoreCase); public Regex Numbers = new Regex("0|1|2|3|4|5|6|7|8|9|"); public Regex TTrue = new Regex("true|", RegexOptions.IgnoreCase); public Regex FFalse = new Regex("false|", RegexOptions.IgnoreCase); public Regex MainTitles = new Regex("Logging & Displaying|Char Builds|GAME DELAYS|POTION & CHICKEN SETTINGS|MERC POTION & RESURRECT SETTINGS|BOT ACTIONS & BEHAVIORS|IN TOWN SETTINGS|" + "CUBE SETTINGS|GAME CONFIGURATION & OPTIONS|GRUSH SETTINGS|DIA CLONE HUNT SETTINGS|IMMUNITY …

Member Avatar
Member Avatar
+0 forum 6

The End.