Set The Fill Color Of A Shape?
Apr 28, 2009I am trying to create a legend for some colors and thought of adding rectangleshpes to do so. However, I do not seam to be able to set the fill color of the shape.
View 3 RepliesI am trying to create a legend for some colors and thought of adding rectangleshpes to do so. However, I do not seam to be able to set the fill color of the shape.
View 3 RepliesI need to create an on-screen shape (circle) that has a fill color, which will blink every X seconds (go from fill color, to white, back to fill color). This is trivial to do...BUT... i want to do it in my own class, so that I can instantiate it numerous times passing it unique coordinates for each instantiation.
How do I do it? Can a class have its own "timer control" in it independent from the form? How would I draw a shape from a class?
a set of color add into combobox
bttnclick
Dim mypen As New Pen(, 2)
base
cbocolor.items.add("Red")
cbocolor.items.add("Green")
how to make the color apply in the pen?? what to put before the coma??
how to fill an closed shap in visual basic 2010
i try it but when i press on the button fill all the page was colored
i am working on a virtual make-up software and the only thing i lack to totally finish it is the lipstick part. is there a way that i can trace the edges of the lips of the picture that im editing and fill its insides with colors from a colordialog that will serve as if it applied a lipstick. just like what they have on jkiwi that users will jut trace the edges of the lips and then the color will automatically be filled out and it can be changed by choosing a color in a dialogbox.
View 1 RepliesI have been using custom shapes for some time now but the pixels always have to be 100% solid or it mixes with the color I have set as transparent and its starting to get a bit annoying. Is there any way possible that I could take a png image with transparent pixels and use that as my custom shape without the transparent pixels becoming that color I chose? This is what I have: I want to put my image as the background without the purple being where the transparent pixels are.
Me.Backcolor = Color.Purple
Me.Transparencykey = Color.Purple
Is there a way to customize a forms boarder so that it has a different color, or shape?
View 10 RepliesDo any of you know how i can filled the font color in a comobox and then change the color of the text in the textbox?
View 1 Repliesim working on changing this code.. The code do a "floodfill", but I want a "floodfill" with a range of color..so i dont understand very much of this code, but somehow i want to change the recursive funciontion to paint only in a certain region I think I have to work whit this function. Actually I do, changing the fourth parameter (before: &HFFFFFF)ExtFloodFill(hMDC, e.X, e.Y, CInt("&H" + Hex(pixR) + Hex(pixG) + Hex(pixB)), 1) I only found this code to do that, I tried to do my own recursive function, but it didnt work..
[code]...
how can i draw a free-shape (it means no particular shape or sides) and fill it in with the colors chosen from colordialog?
e.g. im gonna draw a rounded rectangle and i want to fill its insides with color red.
I have an image saved in a bitmap (bmp) as a result of some graphic manipulation. Part of it is transparent. And I can save it to a file in bmp, jpg, png, tif with no problem. I also want to fill the image background with a color of choice, which is saved in a PictureBox control (ColorBox1). I suppose I need to draw a rectangle like[code]...
View 2 RepliesI am using Rack-mounted Equipment (US units).VSS as stencil. I need to Connect a server on Rack.
View 1 RepliesIm using a dataset to display data in a datagrid from a sql server DB. One of the colums I have in my datagrid is "Status" the table adapter sql statment selects certain items based on whether there open or closed e.g "where = Open ". I want to remove this row entirely and instead of displaying open or closed for status column, display the open/ closed results in colour on the datagrid. Im really not sure how to go about this whether i need to do it in the table adapter or some sort of property. I presume i need to write a sql statement and selct the identity of the row where x= open etc , is there a way of assigning a colour in sql statement so it displays on my vb form ?
View 2 RepliesI just want to display data of a single column from an oracle table into a datagridview or a listbox for readonly with no requirements to make changes to it. Simply display the information.What is the best way forward... To used DATAADAPTER or DATAREADER.s DATAGRIDVIEW SLOWER TO FILL THAN a LISTBOX.i am using the following code to fill datatgridview but for some odd reasons at time it is slow to display the data. I want to use listbox instead
Dim ds As New DataSet
Dim adp As OracleDataAdapter
adp = New OracleDataAdapter("select customer_name from customers")
[code].....
How to change a forms background system color schemes to windows default color schemes in vb.net?
View 2 RepliesI have a question of VB event handler and color picker. Now I have a label, and I want when user click it, it pops up a color picker dialog and let user to change the background color of the label. Not sure how to implement this, can anyone give me a direction?
View 2 RepliesAlright inside of a combo box I have a list of colors and I want to change the background color of the combo box to the selected color...basically this... but im not sure what the problem is here anyone have some advice or is this not possible?
CBLinerColor.BackColor() = CBLinerColor.Items.Item(0)
Basically i want dynamic code that will change the color depending on the items in the box.
I want the background of my form to be the same color as the window frame color that the user selects, even if that changes. I selected System->WindowFrame as my background color, but it always remains a dark grey, regardless of what I have my window color set to. How else would I achieve what I want? I assumed I was doing it the correct way. Do I actually need code that gets the system window color and then apply it?
View 4 RepliesI have a array of pixels. And I would like to Quantize them.
For Example
FF00FF,00FFFF stuff like that, but most are custom colors and are not a standard 256 color palette. So I need code to convert a color to a 256 color. I dont have any idea on how to do this, but thats why I came here. I do not want to use System.Graphics.Image.Palette or anything like that as this project uses arrays for images. I would like to if at all possible be able to convert a R, G, B color to 8bit, 16bit, 256bit and possibly use the HSL or NeuQuant method or something close to that, or maybe even some other methods of doing it. I do need to be able to do this for a single pixel, but I will also need a method for a array of them.
Right Click drop down menu using ContextMenuStrip. The background color of an unselected menu item is set with "BackColor".The color of the text of a selected menu item is set with "ForeColor".How to set the background color of a selected menu item? Default appears as a dark grey and I would like to change it.
View 2 RepliesHow to change the Data Gridview Button Back Color and Fore Color Based on Condition in Vb.net2005. i'm Attaching the gif toooo
View 5 RepliesI am using .NET 1.1, so I don't have the access to listitem object. I would like to change the text color or the background color of certain items in a listbox. can it do it in .NET 1.1?
View 5 RepliesI need to a color picker luke office 2007 color chooser this must be as "toolstripItem" for adding to toolbar!
View 1 RepliesI am trying to write code to load all nown color names from color.xxxxxxx in a ComboBox, but can not get it right. I can not find the Color Enum member. What I had in mind was something like this:
[Code]....
[URL] That way if the string that is not recognised that is passed to Color.FromName it returns a SolidColor of
Color.Black = Color.FromARGB(255,0,0,0)
That way, Forms and controls that only support SolidColors are supported.Installing VB6 on Windows 7?
i would like to have an image like this one on my form.e form to turn this color
View 2 RepliesConvert brush`color to pen color and vice versa?
View 6 Repliesvb.net 2003 asp.net 1.1Web ApplicationI have a dynamic DataGrid with the alternating rowcolors and paging, with a textbox in each row. I need to know how to make the background color ofthe texboxes the same color as the row that they are in.
[Code]...
In either of these (preferably Vb6), is it possible to replace a specific pixel color with a defined color? For example, if i scan my screen for 100,200,150, is there a way i can replace every instance of that with a specific color?
View 4 RepliesI want to have some labels on a form with the same font color as the caption on my group boxes, and furthermore I want these colors to change if the user has applied a different Theme on their system.
Can I do this without changing the GroupBox caption from its default?[code]...