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
which of the following indicates that the loop should stop when the value in the quantity variable is less than the number 50​
yan [13]

Answer:

while (quantity >= 50)

Explanation:

Required

Stop when quantity is less than 50

To do this, we make use of a while statement and the syntax is:

while (condition){ }

If the loop should stop when quantity is less than 50; then it means the loop would continue when quantity is greater or equal to 50

So, we have:

while (quantity >= 50)

6 0
3 years ago
You have been tasked with training end users in security best practices and have observed a trend among users in which many are
quester [9]

Hi, A Tech-Savvy here.

Answer:

(C) Lengthen the time period between forced password changes.

7 0
3 years ago
Please help ASAP!
makkiz [27]
B. training is the correct answer
8 0
3 years ago
Who share the road with an impaired driver are at risk
bonufazy [111]
All drivers

All drivers who share the road with an impaired driver are at risk.
8 0
3 years ago
Read 2 more answers
Top/Bottom Rules allow a user to apply conditional formatting to cells that fall within the top or bottom numbers or percentile.
Aliun [14]

C. TRUST

Explanation:

7 0
3 years ago
Read 2 more answers
Other questions:
  • Which fingers do you use to type the following letters rtgvf
    11·1 answer
  • Siva added a "Contact Form" to her website.
    10·1 answer
  • Why is a monitor an output device?
    15·1 answer
  • Anyone wanna play among us UwU code is TAEQPQ
    15·2 answers
  • Software enables users to create documents
    13·1 answer
  • 1. Light of wavelength 900x10-9 m is emitted by a source. What is its frequency?​
    5·1 answer
  • Pls explain the meaning of the word"INTERNET"​
    5·2 answers
  • Function _one(array)
    6·1 answer
  • Imagine running a 64-bit system on a 32-bit system, where we simulate a single 64- bit memory location (register) using two atom
    14·1 answer
  • as a pc technician, you are on the road most of the day and use a laptop. when you get back to your office at the end of the day
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!