Click here to Skip to main content
15,919,749 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: How to send mail in vb6.0 Pin
JC.KaNNaN30-Dec-09 23:24
JC.KaNNaN30-Dec-09 23:24 
GeneralRe: How to send mail in vb6.0 Pin
εїзεїзεїз30-Dec-09 23:51
εїзεїзεїз30-Dec-09 23:51 
GeneralRe: How to send mail in vb6.0 Pin
JC.KaNNaN31-Dec-09 1:51
JC.KaNNaN31-Dec-09 1:51 
AnswerRe: How to send mail in vb6.0 Pin
nlarson1131-Dec-09 4:27
nlarson1131-Dec-09 4:27 
AnswerRe: How to send mail in vb6.0 Pin
Eddy Vluggen31-Dec-09 4:49
professionalEddy Vluggen31-Dec-09 4:49 
QuestionMenu Strip... Pin
thebiostyle30-Dec-09 13:14
thebiostyle30-Dec-09 13:14 
AnswerRe: Menu Strip... Pin
Rick Shaub31-Dec-09 7:41
Rick Shaub31-Dec-09 7:41 
GeneralRe: Menu Strip... Pin
thebiostyle1-Jan-10 8:15
thebiostyle1-Jan-10 8:15 
Well, that didn't really work. Hopefully this can help, I need to know where this should go...

public class MyRenderer : ToolStripProfessionalRenderer
   {
       protected override void OnRenderMenuItemBackground(ToolStripItemRenderEventArgs e)
       {
           if (!e.Item.Selected)
           {
               base.OnRenderMenuItemBackground(e);
               e.Item.BackColor = Color.Black;
           }
           else
           {
               Rectangle rc = new Rectangle(Point.Empty, e.Item.Size);
               e.Graphics.FillRectangle(Brushes.Red, rc);
               e.Graphics.DrawRectangle(Pens.Black, 1, 0, rc.Width - 2, rc.Height - 1);
               e.Item.BackColor = Color.Red;
           }
       }
       protected override void OnRenderItemText(ToolStripItemTextRenderEventArgs e)
       {
           base.OnRenderItemText(e);
           if (!e.Item.Selected)
           {
               e.Item.ForeColor = Color.Red;
           }
           else
           {
               e.Item.ForeColor = Color.Black;
           }
       }
   }
   public class MenuStripAllowsCustomHighlight : MenuStrip
   {
       public MenuStripAllowsCustomHighlight()
       {
           this.Renderer = new MyRenderer();
       }

   }


Where should that go, I believe it will be what I need to complete what I want. Here is what I already have... Well, I will post the "Edit" menu...

Public Class Form1
    Private Sub CutToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles CutToolStripMenuItem.Click
        TextBox1.Cut()
    End Sub

    Private Sub CopyToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles CopyToolStripMenuItem.Click
        TextBox1.Copy()
    End Sub

    Private Sub PasteToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles PasteToolStripMenuItem.Click
        TextBox1.Paste()
    End Sub

    Private Sub SelectAllToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles SelectAllToolStripMenuItem.Click
        TextBox1.SelectAll()
    End Sub

    End Class


Thanks.
GeneralRe: Menu Strip... Pin
thebiostyle3-Jan-10 16:59
thebiostyle3-Jan-10 16:59 
GeneralRe: Menu Strip... Pin
Rick Shaub7-Jan-10 4:03
Rick Shaub7-Jan-10 4:03 
GeneralRe: Menu Strip... Pin
thebiostyle8-Jan-10 13:45
thebiostyle8-Jan-10 13:45 
Questionlicence issues Pin
Boost201030-Dec-09 8:01
Boost201030-Dec-09 8:01 
AnswerRe: licence issues Pin
Eddy Vluggen31-Dec-09 4:55
professionalEddy Vluggen31-Dec-09 4:55 
QuestionAntivirus Catch while Accesing Registry Pin
Anubhava Dimri29-Dec-09 22:50
Anubhava Dimri29-Dec-09 22:50 
AnswerRe: Antivirus Catch while Accesing Registry Pin
Abhinav S30-Dec-09 0:31
Abhinav S30-Dec-09 0:31 
GeneralRe: Antivirus Catch while Accesing Registry Pin
Anubhava Dimri30-Dec-09 0:40
Anubhava Dimri30-Dec-09 0:40 
AnswerRe: Antivirus Catch while Accesing Registry Pin
Dave Kreskowiak30-Dec-09 2:02
mveDave Kreskowiak30-Dec-09 2:02 
GeneralRe: Antivirus Catch while Accesing Registry Pin
Anubhava Dimri30-Dec-09 17:18
Anubhava Dimri30-Dec-09 17:18 
GeneralRe: Antivirus Catch while Accesing Registry Pin
Dave Kreskowiak31-Dec-09 2:28
mveDave Kreskowiak31-Dec-09 2:28 
Question.Net Security Tool Use and Command Pin
Anubhava Dimri29-Dec-09 21:05
Anubhava Dimri29-Dec-09 21:05 
AnswerRe: .Net Security Tool Use and Command Pin
Dave Kreskowiak30-Dec-09 2:03
mveDave Kreskowiak30-Dec-09 2:03 
AnswerRe: .Net Security Tool Use and Command Pin
Eddy Vluggen30-Dec-09 6:29
professionalEddy Vluggen30-Dec-09 6:29 
GeneralRe: .Net Security Tool Use and Command Pin
Luc Pattyn30-Dec-09 6:51
sitebuilderLuc Pattyn30-Dec-09 6:51 
QuestionHow To get MAC no and system information in vb 6.0 Pin
JC.KaNNaN29-Dec-09 19:06
JC.KaNNaN29-Dec-09 19:06 
AnswerRe: How To get MAC no and system information in vb 6.0 Pin
Andy_L_J29-Dec-09 19:35
Andy_L_J29-Dec-09 19:35 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.