Advertisement
|
[x]
Attachment Details
|
||
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: |
//hyperLink is a control that inherits from LinkLabel
hyperLink b = new hyperLink(lastHyperLink, pageNum);
b.LinkClicked += new System.EventHandler(hyperLink1_LinkClicked); //Throws "No overload for 'hyperLink1_LinkClicked' matches delegate 'System.EventHandler'"
b.MouseEnter += new EventHandler(hyperLink1_MouseEnter); //Works just fine
b.MouseLeave += new EventHandler(hyperLink1_MouseLeave); //Works as well
this.Controls.Add(b);
private void hyperLink1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
{
hyperLink hl = (hyperLink)sender;
tbInput.Tag = "Send";
tbInput.Text = hl.Text;
}
private void hyperLink1_MouseEnter(object sender, EventArgs e)
{
hyperLink hl = (hyperLink)sender;
hl.BackColor = highlightColor;
}
private void hyperLink1_MouseLeave(object sender, EventArgs e)
{
hyperLink hl = (hyperLink)sender;
hl.BackColor = Color.Transparent;
}
|
|
[x]
The Solution Rating System
|
||
|
With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.
Your Input Matters If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support. Thank you! |
||
|
Loading Advertisement... |