Question about Microsoft Visual Basic Enterprise Edition 6.0 (361-00667) for PC

1 Answer

How to change the background color of cells in datagridview in VB 6.0

Posted by on

Ad

1 Answer

  • Level 3:

    An expert who has achieved level 3 by getting 1000 points

    All-Star:

    An expert that got 10 achievements.

    MVP:

    An expert that got 5 achievements.

    Vice President:

    An expert whose answer got voted for 100 times.

  • Master
  • 733 Answers

Use the "Style" property 
DataGridView1.Item(ColumnIndex, RowIndex).Style.BackColor = Color
DataGridView1.Item(ColumnIndex, RowIndex).Style.ForeColor = Color
or
DataGridView1.CurrentCell.Style.BackColor = Color
DataGridView1.CurrentCell.Style.ForeColor = Color

This is how you change the backround color. 

Posted on Feb 19, 2010

Ad

1 Suggested Answer

6ya6ya
  • 2 Answers

SOURCE: I have freestanding Series 8 dishwasher. Lately during the filling cycle water hammer is occurring. How can this be resolved

Hi,
a 6ya expert can help you resolve that issue over the phone in a minute or two.
best thing about this new service is that you are never placed on hold and get to talk to real repairmen in the US.
the service is completely free and covers almost anything you can think of (from cars to computers, handyman, and even drones).
click here to download the app (for users in the US for now) and get all the help you need.
goodluck!

Posted on Jan 02, 2017

Ad

Add Your Answer

Uploading: 0%

my-video-file.mp4

Complete. Click "Add" to insert your video. Add

×

Loading...
Loading...

Related Questions:

1 Answer

Change background from black to white


Which operating system ??
Is it for computer background or a program ??..
Make a Black Background White

The desktop appearance of a computer equipped with Microsoft Windows XP, whether PC or laptop, can be customized easily.
Users can change background color, background image, frame color, font size and the arrangement of desktop icons.
Five easy steps how to change the desktop background color from black to white.
Changing Background Color
Right-click the mouse on any open portion (i.e., non-icon) of the desktop, which will open a menu. Select "Properties" at the menu's bottom, which will open the "Display Properties" application.
Click the "Desktop" tab at the application's top.

Click the down arrow next to the "Color" button, and select the white color.


Click the "Apply" button, then click "OK" to close the application.


http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/display_change_background_color.mspx?mfr=true

Aug 30, 2013 | Computers & Internet

Tip

Applying the settings to the logon desktop


Next, you need to apply the Screensaver settings to the Logon Desktop / Welcome Screen (Technically, HKEY_USERS\.Default registry key), so that the Screensaver is invoked when no user is logged on. Copying all the Screensaver settings to the Logon Desktop (or Welcome Screen) manually is a tough task. Use Tweak UI instead.
Download and install TweakUI.
Launch TweakUI and click Logon, click Settings.
Select Screensaver from the list box and choose Copy Now
The Screensaver settings are applied to the Logon Desktop
Restart Windows for the changes to take effect
Allow few minutes at the Logon screen, to test if the Screensaver is working properly. The Screensaver should launch after the timeout. It will look as if the Company Logo moves around.
Additional Tip
The User interface / slider allows the minimum value for picture change interval to 6 seconds only. To reduce the change interval to less than 6 seconds, alter the registry value named ChangeInterval (Set decimal value 1000 for 1 Second, and so forth) in this key:
HKEY_USERS \ .DEFAULT \ Control Panel \ Screen Saver.Slideshow
For Current user profile, make the change here:
HKEY_CURRENT_USER \ Control Panel \ Screen Saver.Slideshow

With no logon wallpaper set, Windows displays a pre-defined color for the logon desktop. ( If you have enabled Welcome Screen, press CTRL+ALT+DEL twice to see the logon screen background color. ) To change the logon background color to that of your choice, you need to alter the registry:
Click Start, Run and type REGEDIT and press Enter
Navigate to the following key:
HKEY_USERS\.DEFAULT\Control Panel\Colors
Backup the registry key by exporting to a REG file
In the right pane, double-click Background
In the Edit String dialog box, type the Color code in R G B format and then click OK.
Example: Type 0 0 0 if you want to see a Black background. You can choose any combination from 0-255
Points to ponder
If the logon Wallpaper is set, the background Color may not be visible. So, you must reset the Wallpaper value to a blank string in this key: HKEY_USERS\.DEFAULT\Control Panel\Desktop
If the Background value is set under the following Winlogon registry key, the above setting is ignored. In other words, the Winlogon\Background value takes precedence over the .DEFAULT..\Background value.
HKLM\Software\Microsoft\Windows NT\CurrentVersion\Winlogon

on Mar 24, 2008 | Microsoft Windows Vista Ultimate Edition

1 Answer

Menu green color


In your settings menu if your using an android phone go to display settingsLook for the wallpapers and choose the background that you want. Do the same thing on the message option settings so you can change the background.Hope this little info has helped you..have a good day.!!

Feb 19, 2012 | Samsung Stratosphere

1 Answer

How to change the color of the background?


This is pulled from the tutorial PDF:
================================ DESIGNING YOUR MENU Now that your content is added, you can customize the look and feel of your menu. You can change the background, title, and chapter button layout and text. Before changing your text, it's recommended that you set your background first. Often, the color of your text will be dependent on the background color. A good amount of contrast between the colors is necessary to ensure that the text stands out clearly ================================
The option to change the background is in the Themes tab.

Mar 02, 2011 | Arcsoft ShowBiz DVD 2 (3265)

2 Answers

How to recognize hyperlink cells


try to close your workbook. After a while you try to open it so that the dimmed color for "visited links" disappears.

Regards!

Jul 10, 2009 | Microsoft Office Excel 2007

1 Answer

A nice datagrid in vb.net


You'd better me more familiar with the C# DataGrid Header. I reckon that this would do you some help.

Nov 29, 2008 | Computers & Internet

1 Answer

How to insert in to data base data throught using datagridview in vb net


Coolboarders 3 Go to tournament and type in "BIGHEADS" and the word "Cheater" will be spoken. Then you will be able to change the size of the boarders head by pressing [PAUSE] and hitting R2 or L2 to increase and decrease the head size.

Aug 16, 2008 | 989 Studios Cool Boarders 3 for...

2 Answers

Sanyo katana II cell phone


YOU SHOULD BE ABLE TO.DO YOU HAVE YOUR MANUEL.IF NOT GOOGLE YOUR PHONE AND IT WILL FIND SOME TECH INFO WHERE YOU CAN CHANGE COLORS
GOOD DAY
KZ

Feb 08, 2008 | Sanyo Katana SCP-6600 Cellular Phone

2 Answers

How i can change forms backcolor through coding in vb.net


ok you have 3 choices
assuming your form name is main.

main.backcolor = color.blue
or
this.backcolor = color.blue
or
me.backcolor = color.blue

you can type your form name followed by the . to get all options for changing it peoperties,
or you can type this. refering to the form your are currently in, this has the effect just as the form name,
If you are programming on the formitself you can use
me. same effect as the form name..

Jan 18, 2008 | Computers & Internet

Not finding what you are looking for?

Open Questions:

0 Answers

Hai everyone, I am doing a project on Attendance Monitoring. I have two tables one master table called student and another table called att to store students daily attendance. I have four comboboxes in my form, by selecting the city,area,centre and batch the respective students satisfying this condition has to be displayed in the grid apart from that i have to display another column to mark attendance. I am using datagrid and mark P for present and A for absent. When i finished marking the whole data has to be stored in att table with the current date. The next day again the same class may be selected with the next date and has to be stored again. The problem is i am not able to store each person attendance. Please help me in this regard. The att table contains fields like Code: Student_ID,Date,Attendance The student table contains fields like Code: Student_ID,City,Area,Centre,Batch,Name etc The code that i have written is like this Code: Public ac As New ADODB.Connection Public ar As New ADODB.RecordSet Private Sub Command1_Click() Set ar = ac.Execute("select student.Student_ID,att.Attendance from student,att where City = '" & Combo1.Text _ & "' AND Area = '" & Combo2.Text & "' AND Centre = '" & Combo3.Text & "' AND Batch = " & Combo4.Text & "") Dim count As Integer count = ar.RecordCount MsgBox count Set DataGrid1.DataSource = ar End Sub Private Sub Form_Load() ac.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=E:v-tablesStudent.mdb;Persist Security Info=False" ac.CursorLocation = adUseClient Combo1.AddItem ("CHENNAI") Combo1.AddItem ("BANGALORE") Combo2.AddItem ("GILL NAGAR") Combo2.AddItem ("CHOOLAIMEDU") Combo2.AddItem ("EGMORE") Combo2.AddItem ("SOWCARPET") Combo2.AddItem ("KOTTIVAKKAM") Combo2.AddItem ("KILPAUK") Combo2.AddItem ("MOGAPAIR") Combo3.AddItem ("RANGA NURSERY") Combo3.AddItem ("V-KIDS") Combo4.AddItem ("1") Combo4.AddItem ("2") End Sub

Jun 27, 2009 | Microsoft Visual Basic Enterprise Edition...

Microsoft Visual Basic Enterprise Edition 6.0 (361-00667) for PC Logo

Related Topics:

104 people viewed this question

Ask a Question

Usually answered in minutes!

Top Microsoft Computers & Internet Experts

micky dee

Level 3 Expert

2774 Answers

Piyal Perera
Piyal Perera

Level 3 Expert

528 Answers

Les Dickinson
Les Dickinson

Level 3 Expert

18394 Answers

Are you a Microsoft Computer and Internet Expert? Answer questions, earn points and help others

Answer questions

Manuals & User Guides

Loading...