157 Topics

Member Avatar for
Member Avatar for CJMW

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 …

Member Avatar for Fenrir()
0
333
Member Avatar for PaulDel

Hello All, Just looking for code snippets to remove color from jpg image. I would like to remove red, blue, green from a picture, leaving black and white. For instance, imagine a newspaper cartoon with an "X" on the picture. I want to remove the colors leaving the "X". I'd …

Member Avatar for stultuske
0
324
Member Avatar for Basuraj

Dim table As DataTable = New DataTable table.Columns.Clear() Chart1.DataSource = Nothing Chart1.Series.Clear() table.Columns.Add("Color", GetType(System.String)) table.Columns.Add("Data", GetType(System.Int32)) table.Rows.Add("Green", Integer.Parse(txtgreen.Text)) table.Rows.Add("Red", Integer.Parse(txtred.Text)) table.Rows.Add("Blue", Integer.Parse(txtblue.Text)) table.Rows.Add("Yellow", Integer.Parse(txtyellow.Text)) table.Rows.Add("Brown", Integer.Parse(txtnothing.Text)) Dim IEtable = CType(table, System.ComponentModel.IListSource).GetList Chart1.DataBindTable(IEtable, "Color") Chart1.DataBindTable(IEtable, "Data")

Member Avatar for ReyJEnriquez
0
292
Member Avatar for Adak

Demonstrates the Right Hand Rule maze solving algorithm, with some sweet console colors and text display and erasing, in Windows. Note that if the Start is moved away from all the walls in the maze, the right hand rule fails, circling endlessly. Also, a similar failure happens if the Start …

0
3K
Member Avatar for aks227

Hi guys, I am trying to change color of the existing items in my listbox. Can somebody please help?

Member Avatar for aks227
0
280
Member Avatar for yuvjeeth

Hi Everyone, I would like to know if there is any way to change the color of a part of text in rich textbox when the user types it automatically like the way in vb.net IDE (Classes have blue etc.). Thanks in advance, Yuvjeeth

Member Avatar for ddanbe
0
424
Member Avatar for 恒

I use image component to display a picture for JPG,but it is lost a color.why I never meet this. I can't to upload picture to this forum.

Member Avatar for 恒
0
325
Member Avatar for Kratoswoo

So working on something and it is running on asp.net so this page is refreshing a lot. It has numbers in a textbox that have been counted and keep changing all day long. What I want to so the textbox witht he highest number is turned green. int[] MyNumbers = …

Member Avatar for ss125
0
300
Member Avatar for timetraveller1992

Here's my code >> [Click Here](https://dl.dropboxusercontent.com/u/21617707/accordion.rar) And here's an image showing the problem! >> [Click Here](http://i41.tinypic.com/4id7dc.png) Rest is self explainatory. I used the same code in IE and the problem didn't occur. I haven't tried Firefox. The problem is most people seem to use Chrome these days and thats why …

Member Avatar for timetraveller1992
0
244
Member Avatar for o Chantelle o

Hi guys. I'm stuck. How can I use a custom color (rgb 25, 25, 25)(for example) as my fill rectangle color instead of the default blue? 'Private Sub ListBox10_DrawItem(ByVal sender As Object, ByVal e As System.Windows.Forms.DrawItemEventArgs) Handles ListBox10.DrawItem ' e.DrawBackground() ' If (e.State And DrawItemState.Selected) = DrawItemState.Selected Then ' e.Graphics.FillRectangle(Color.??, …

Member Avatar for o Chantelle o
0
2K
Member Avatar for Cravver

I need to make that when you use a color picker the hover styling would work too. So far I've only got background and border bottom working here is the code below (uses JQuery): var customElements2 ="#search .submit_input, .reputation.positive, .members li.positive"; var customElements = ".maintitle, #community_app_menu > li.active > a, …

Member Avatar for LastMitch
0
727
Member Avatar for 26bm

Hi, I wrote some code using pygame that has two images. I am trying to figure out how transparency works, so I have tried to display a circle png on a square png. My code looks like this. import pygame from pygame.locals import * #make window pygame.init() screen = pygame.display.set_mode((1270, …

Member Avatar for 26bm
0
588
Member Avatar for chriswelborn

This is another useful script I came across. It prints a color-code chart in your terminal. It can help you find the color-code you are looking for, or view the current color-scheme you are using (people use it on reddit/r/unixporn to show off their system's theme, I use it to …

0
371
Member Avatar for chivas12

i wanted my program to show up in a Jframe the code reads the pixel color i want the frame to display red= pixel color blue= pixel color and green= pixel color and how would you make the background color of the frame change according the mouse movement for example …

0
99
Member Avatar for Hazuan Nazri

Hello Friend, i hope someone can help me to solve my problem, i already put my database on datagridview, but my boss dont want it in standard color, so now i dont now how to change it, can i change the color using datagridview or i need to use another …

Member Avatar for Hazuan Nazri
0
425
Member Avatar for Atlanta15Braves

I am trying to have my .js file have a function that will change the color of the text within the div tag named "ID=test". I have the function (below), but I think I am missing something. I have three buttons in my HTML (red, blue, and black) that should …

Member Avatar for EvolutionFallen
0
398
Member Avatar for yap.junjie.7

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 { …

Member Avatar for JorgeM
0
316
Member Avatar for Catchamouse

I have a h file with this code: #include <windows.h> #include <iostream> struct Color { int color; Color(int color_): color(color_) {} Color operator + (const Color & other) const { return Color(this->color | other.color); } }; #define FORE_LIGHT(color) const Color cfl##color##_ = FOREGROUND_##color | FOREGROUND_INTENSITY; #define BACK_LIGHT(color) const Color cbl##color##_ …

Member Avatar for Ancient Dragon
0
201
Member Avatar for garyjohnson

Hello, I have been trying everyhting and I still have not gotten any good results for my cholor sheme. I need the scheme to go well with yellow, green, and red. I know random colors that dont really go well together. But Ive tried black but it makes my site …

Member Avatar for pritaeas
0
121
Member Avatar for apnavarun
Member Avatar for Acelabs
0
143
Member Avatar for ramy.merc

Hi programmers, I am a c# programmer but I have a very big project in C++ (Which I am not familiar with) and I am facing a big problem. As part of the project, I need to convert the image (any image of any type bmp,jpeg,png...etc) to grayscale using openMP. …

Member Avatar for Moschops
0
2K
Member Avatar for Hendo

Hello all, I'm trying to have a multi-colored border for a generated table on my website. The table is a 2 column, 18 row table, and I want the top 6 rows to be bordered in green (or cell shading in green), while the rest of the table uses the …

Member Avatar for Hendo
1
229
Member Avatar for ambageo

HI! I want to write a constructor that will make a window (a frame). I want to be able to insert the height, width, position and window color. This is what I've written: public Window(String name, int height, int width,String c,String isActive,int PointX, int PointY){ setTitle(name); setSize(height,width); getContentPane().setBackground(Color.c); setLocation(PointX,PointY); setVisible(isActive.equals("active")); …

Member Avatar for ambageo
0
198
Member Avatar for vegaseat

A colorful look at the PySide GUI toolkit and its QPainter class and methods. Well commented and demonstrated with the drawing of a number of rectangles and the different ways to apply colors.

1
1K
Member Avatar for heavy.is.happy

Hello. How do i make a flood fill in python? For exampel. I choose to download this picture of world countries. I save this as picture.png in a folder. The folder also contains a python file whith the name change.py. The change.py file is gonna change USA to yellow. To …

Member Avatar for Lardmeister
-1
2K
Member Avatar for butthole55

I need to remove a certain color, like for example, 0xFFFFFF (Color.White) would remove all the white in an image. Thanks :)

Member Avatar for butthole55
0
405
Member Avatar for nima.narim
Member Avatar for Momerath
0
215
Member Avatar for shills300

hi guys, i was wondering if anyone knew how to make a color wheel in python using turtle. i'v searched all over the web to see examples but haven't had any luck. i am a beginner programmer and it's very confusing to say the least so any explanations would be …

Member Avatar for vegaseat
0
3K
Member Avatar for jemz

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 for Samanta Goutam
0
8K
Member Avatar for HiHe

Method onPaint does not change the color. Does anyone know why? (there are no errors received) # explore the wxChoice widget # a simple ComboBox (dropdown box) that combines a ListBox with an EditBox # can't get the self.onPaint method to work!!!!! import wx ID_CHOICE = 120 ID_PANEL = 130 …

Member Avatar for HiHe
0
694

The End.