Hi

Color Handling for Visual Basic 6.0: Background Color Program

SHARE:

Color Handling for Visual Basic
The background color is very essential for everything. Suppose you have created something but you could not put background color when you're in VB and it will be fed-up.

So, for your better program in Visual Basic, we are going to discuss on Color Handling for Visual Basic 6.0 for background color program.

Color Handling for Visual Basic: Create a Program in VB to insert Window Background Color


Step 1: -
  • At first open Visual Basic 6.0 application software

  • Then click on or select ‘Standard EXE’ icon from New Project dialog box

  • Then click on ‘Open’.
Step 2: -

Form Design: -

Select necessary Control Tool from Tool Box and adjust the position to ‘Form Window’: -

  • Five Command Box
Color Handling for Visual Basic 6.0: Background Color Program



Step 3: -

Properties Settings: -

  • Select ‘Form1’from Form Window and select ‘Caption’ from Properties Window

  • Then replace ‘Form1’ to ‘Background Color Project’ from the properties window

  • Then select ‘Command1 box’ from Form Window and select ‘Caption’ from Properties Window

  • Then replace ‘Command1’ to ‘RED’ from Properties Window.

  • Then select ‘Command 2 box’ from Form Window and select ‘Caption’ from Properties Window

  • Then replace ‘Command 2’ to ‘GREEN’ from Properties Window.

  • Then select ‘Command 3 box’ from Form Window and select ‘Caption’ from Properties Window

  • Then replace ‘Command 3’ to ‘BLACK’ from Properties Window.

  • Then select ‘Command 4 box’ from Form Window and select ‘Caption’ from Properties Window

  • Then replace ‘Command 4’ to ‘BLUE’ from Properties Window.

  • Then select ‘Command 5 box’ from Form Window and select ‘Caption’ from Properties Window

  • Then replace ‘Command 5’ to ‘EXIT’ from Properties Window.







Step 4: -

Code Writing:-

  • Double click on ‘RED button’ or ‘Command 1 box’

  • Then input code to Command 1 code box

Code: - Form1.Backcolor = vbRed

  • Then double-click on ‘GREEN button’ or ‘Command 2 box’

  • Then input code to Command 2 code box.

Code: - Form1.Backcolor = vbGreen

  • Then double-click on ‘BLACK button’ or ‘Command 3 box’

  • Then input code to Command 3 code box.

Code: - Form1.Backcolor = vbBlack

  • Then double-click on ‘BLUE button’ or ‘Command 4 box’

  • Then input code to Command 4 code box.



Code: - Form1.Backcolor = vbBlue

  • Then double-click on ‘EXIT button’ or ‘Command 5 box’

  • Then input code to Command 5 code box.

Code: - End




  • Then close code box

Step 5: -

Project Save: -

  • Click on ‘Save project’ option from the File menu

  • Then input any name to file name box and click on Save option from Save file as box

  • Then input any new name to file name box

  • Then click ‘Save’ option.
Step 6: -

Project Run: -

  • Press F5 key from the keyboard or click on ‘Start’ from ‘Run menu’ to run the project

  • Then click on ‘RED’/ ‘GREEN’/ ‘BLACK’/ ‘BLUE’ box and display Background Color.


  • Then click on ‘Exit Button’ for close the result window.
So this is the simple way to create a program in VB to insert window Background color.

COMMENTS

Name

Computer,8,MS Office,2,Visual Basic,8,
ltr
item
Computercoursestudy: Color Handling for Visual Basic 6.0: Background Color Program
Color Handling for Visual Basic 6.0: Background Color Program
https://3.bp.blogspot.com/-Yv5R1qgonww/WqEfnl9ROEI/AAAAAAAAAIQ/ovLq3H1_mHkIXfeEj6MazNfb0KUbogyJACLcBGAs/s320/Color%2BHandling%2Bfor%2BVisual%2BBasic.png
https://3.bp.blogspot.com/-Yv5R1qgonww/WqEfnl9ROEI/AAAAAAAAAIQ/ovLq3H1_mHkIXfeEj6MazNfb0KUbogyJACLcBGAs/s72-c/Color%2BHandling%2Bfor%2BVisual%2BBasic.png
Computercoursestudy
https://www.computercoursestudy.com/2016/12/color-handling-for-visual-basic-60.html
https://www.computercoursestudy.com/
https://www.computercoursestudy.com/
https://www.computercoursestudy.com/2016/12/color-handling-for-visual-basic-60.html
true
3961810787506653407
UTF-8
Loaded All Posts Not found any posts VIEW ALL Readmore Reply Cancel reply Delete By Home PAGES POSTS View All RECOMMENDED FOR YOU LABEL ARCHIVE SEARCH ALL POSTS Not found any post match with your request Back Home Sunday Monday Tuesday Wednesday Thursday Friday Saturday Sun Mon Tue Wed Thu Fri Sat January February March April May June July August September October November December Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec just now 1 minute ago $$1$$ minutes ago 1 hour ago $$1$$ hours ago Yesterday $$1$$ days ago $$1$$ weeks ago more than 5 weeks ago Followers Follow THIS CONTENT IS PREMIUM Please share to unlock Copy All Code Select All Code All codes were copied to your clipboard Can not copy the codes / texts, please press [CTRL]+[C] (or CMD+C with Mac) to copy