I am trying to change the color of individual cells in a datagridview based on values from the columns. If the CDRGvalue is not blank and the ALOSvalue is greater than the PLOSvalue then I need to change the individual cell back color for the ALOS column (colALOS) and the PLOS column (colPLOS) to red for the patient in that row. Currently, the best I have been able to do is turn the whole line red instead of just the individual cells. Any help, tips, or suggestions are greatly appreciated! Private Sub DataGridView1_CellFormatting(ByVal sender As Object, ByVal e As System.Windows.Forms.DataGridViewCellFormattingEventArgs) …

Member Avatar
Member Avatar
+0 forum 6

I have a ListView control on a tab page. The backcolor of the items of the ListView are changed according to certain criteria, but whether or not the backcolor changes appears to be pretty random. The tab page containing the ListView is not the default tab page on application startup. On application startup, the ListView is updated. It displays a list of documents populated from a text file (which contains the list of documents and information such as most recent update time) and then changes the backcolor according to the most recent update time. The ListView is also updated every …

Member Avatar
Member Avatar
+0 forum 10

I'm making an alarm clock whose form's backColor should change randomlly every 5 seconds. I am not sure as to how to do this. I'm using a timer so after the alarm clock's given time matches the current time, a song will be played. But I do not know how to count the seconds, or milliseconds that pass after starting time.

Member Avatar
Member Avatar
+0 forum 3

Hello Every One ! i was using my code [CODE]textbox1.bgcolor = ___colorname___[/CODE] on the gotfoucs event of my textbox , but if i have 34 textboxes then i have to write this line 34 times , which cost lots of time , can any one help me to make any function or sub , so that it can automatically change the bgcolor when textbox gotfoucs , thanks in advance, Best Regards M.Waqas Aslam

Member Avatar
Member Avatar
+0 forum 1

Hello, I'm currently working on an advanced 4x4 multilayer tic tac toe(will include servers, and accounts with levels and xp). Now the problem i have is that i have a image (.png) of a piece(representing X or O) and I want the button that you click to place your X or O to have a transparent backcolor so that i can still see the image of the piece. Thanks!

Member Avatar
Member Avatar
+0 forum 5

I'm still pretty new to this and I need some help. Here's the situation. First the user opens a form to select which database (one of 3) they are working in. Then they will be using several forms. The same set of forms are always used no matter which database they're in. My boss has the following requirement - if they choose the NB database, we want all the forms they open to be Blue. If they choose database IB, all the forms they open should be Red, and for LB database, all forms they open will be Green. This …

Member Avatar
Member Avatar
+0 forum 2

I have a project which is 98% complete. Its basically a Shop(till) interface. I have a form that has tabs the first being the main till, second shows a listview with everything in stock and the quantity of items in stock. Im stuck on one part of the program where when the form loads it checks the stock and if any of the items have a quantity less than 5 for example than it displays a message box to the user telling him/her to order new stock, but im not sure exactly how to do that. Can someone help me …

Member Avatar
Member Avatar
+0 forum 5

Not entirely sure if this is even possible as have yet to find a solution anywhere for this but here goes. The form currently looks at a database and pulls a text name from location: [CODE]DS.Tables("Location").Rows(0).Item(4)[/CODE] The resultant text entry from this location, for example: "loc_fvh_Flowers", will then be compared against an array of every location possible in the program. Is it possible to, when a match is found, the use the "loc_fvh_Flowers" as a reference and effectively add [CODE].BackColor = Color.Crimson[/CODE] Onto it to make: [CODE]loc_fvh_Flowers.BackColor = Color.Crimson[/CODE] Which is the full code to change the object colour to …

Member Avatar
+0 forum 0

The End.