1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
soldi70 [24.7K]
3 years ago
10

Create a project named ClassicBookSelector that contains a Form with a ListBox that lists at least five classic books that you t

hink all educated people should have read. When the user places the mouse over the ListBox, display a Label that contains a general statement about the benefits of reading. The Label disappears when the user’s mouse leaves the ListBox area
Computers and Technology
1 answer:
STALIN [3.7K]3 years ago
4 0

Answer:

See explaination

Explanation:

using System;

using System.Collections.Generic;

using System.ComponentModel;

using System.Data;

using System.Drawing;

using System.Linq;

using System.Text;

using System.Threading.Tasks;

using System.Windows.Forms;

namespace BookListBox

{

public partial class Form1 : Form

{

public Form1()

{

InitializeComponent();

}

string[] Book={"In Search of Lost Time","Ulysses","Don Quixote","The Great Gatsby","One Hundred Years of Solitude"};//declare variable book name

string[] Book_displayMessage = { "In Search of Lost Time by Marcel Proust", " Ulysses by James Joyce", "Don Quixote by Miguel de Cervantes", " The Great Gatsby by F. Scott Fitzgerald", "One Hundred Years of Solitude by Gabriel Garcia Marquez" };//declare variable Short dispay

string[] Book_BrienfSynpsis = { "Swann's Way, the first part of A la recherche de temps perdu, Marcel Proust's seven-part cycle, was published in 1913. In it, Proust introduces the themes that run through the entire work. ", "Ulysses chronicles the passage of Leopold Bloom through Dublin during an ordinary day, June 16, 1904.", "Alonso Quixano, a retired country gentleman in his fifties, lives in an unnamed section of La Mancha with his niece and a housekeeper.", "The novel chronicles an era that Fitzgerald himself dubbed the Jazz Age. ", "One of the 20th century's enduring works, One Hundred Years of Solitude is a widely beloved and acclaimed novel known throughout" };//declare variable Brienf synpsis

private void Form1_Load(object sender, EventArgs e)

{

lblBriefSynopsis.Text = "";//blank display textbox

lbldisplaymessage.Text="";//blank display textbox

for(int i=0;i<5;i++)

lbbook.Items.Add(Book[i]);//add book to listbox

}

private void lbbook_MouseHover(object sender, EventArgs e)

{

Point point = lbbook.PointToClient(Cursor.Position);

int index = lbbook.IndexFromPoint(point);

if (index < 0) return;

//Do any action with the item

lbldisplaymessage.Text = "Here is the Short things about it"+Environment.NewLine+Book_displayMessage[index];

}

private void lbbook_MouseLeave(object sender, EventArgs e)//mouse leave event here

{

lbldisplaymessage.Text = "";//here display message will blank textbox

}

private void lbbook_SelectedIndexChanged(object sender, EventArgs e)

{

}

private void lbbook_MouseClick(object sender, MouseEventArgs e)

{

lblBriefSynopsis.Text = Book_BrienfSynpsis[lbbook.SelectedIndex];//display click brienf Synposis

if (lbbook.SelectedIndex % 5 == 0)

this.BackColor=Color.Blue;

else if (lbbook.SelectedIndex % 5 == 1)

this.BackColor = Color.Red;

else if (lbbook.SelectedIndex % 5 == 2)

this.BackColor = Color.Purple;

else if (lbbook.SelectedIndex % 5 == 3)

this.BackColor = Color.Pink;

else if (lbbook.SelectedIndex % 5 == 4)

this.BackColor = Color.Orange;

}

}

}

You might be interested in
Write a pseudocode to read 10 integer numbers and find the largest number, you need to use loop in your answer.
Sophie [7]
  1. # Algorithm to find the number of integers greater than 10 in a list
  2. list = read(list of integers)
  3. n = len(list)
  4. count = 0
  5. For i = 1 to n
  6.    If list[i] > 10:
  7.        count = count + 1
  8.    Endif
  9. End
  10. Return count
<h3>Explanation:</h3>

Then the length of the list is stored in a variable n. A variable count to store the number of integers more significant than 10 is initialized to 0.

  • Then, a for-loop is used to iterate over the list. A for-loop is used in this case because every element of the inventory needs to be checked for a value greater than 10.
  • In each iteration of the for-loop, the value at the index of the list is checked. If the value is greater than 10, then the counter variable count is incremented by 1.
  • The iterations continue till the for-loop ends. At this point, the variable count will be the number of integers greater than 10.
  • Note that in case the list does not have any number greater than 10, then the count variable will be 0.

To learn more about it, refer

to brainly.com/question/25311149

#SPJ4

3 0
2 years ago
Can anyone help me to write an example for html language​
ivann1987 [24]
No i cannot bcs i dont know
3 0
3 years ago
Read 2 more answers
Three positive impacts of computer technology in our society.​
Contact [7]

Explanation:

1. it has resulted into the manufacturing of vehicles , trains etc

2. 9through computer technology satellites have been invented to boost education through the use of Internet

3. it has improved agriculture by manufacturing machinery such as tractors, ploughs etc

7 0
3 years ago
Read 2 more answers
A company gives you a document to review. This document lays out the strengths and weaknesses of a proposed business venture. It
Olegator [25]
Requirements document
6 0
4 years ago
To rename a worksheet, you change the text on the ? HELP ASAP
prohojiy [21]
If this is Excel, it would be C. Sheet tab
5 0
3 years ago
Other questions:
  • Which of the following accurately completes this sentence? The Internet is ____.
    6·2 answers
  • With a(n) ____, you can enter a value either by typing the value or by selecting it from a list.
    14·1 answer
  • For local travel addresses and street names should be
    14·1 answer
  • ____ errors occur when a formula is written incorrectly, when a mistake is made with a decision condition, or when the wrong var
    11·1 answer
  • Consider a classStudent. The following code is used to create objects and access its member functions. Which statement is true a
    6·1 answer
  • Which of these components is a part of the central processing unit (CPU) of a computer? A. memory B. storage C. control unit D.
    8·2 answers
  • Your company wants to use an IoT device but wants to make sure it does not interfere with other RF devices that use the 2.4 GHz
    13·1 answer
  • Define the function max2 that takes two integers as arguments and returns the largest of them. Then define the function max_list t
    11·1 answer
  • Which of the following is NOT a semantic reason for using header tags
    7·1 answer
  • Edhesive assignment 1 movie ratings
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!