Click here to Skip to main content
15,914,419 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionConvert from decimal to hexidecimal? Pin
Adam Wike30-Apr-10 3:48
Adam Wike30-Apr-10 3:48 
AnswerRe: Convert from decimal to hexidecimal? Pin
Dave Kreskowiak30-Apr-10 3:58
mveDave Kreskowiak30-Apr-10 3:58 
AnswerRe: Convert from decimal to hexidecimal? [modified] Pin
Dalek Dave30-Apr-10 4:00
professionalDalek Dave30-Apr-10 4:00 
GeneralRe: Convert from decimal to hexidecimal? Pin
DaveAuld30-Apr-10 4:19
professionalDaveAuld30-Apr-10 4:19 
GeneralRe: Convert from decimal to hexidecimal? Pin
Dalek Dave30-Apr-10 4:23
professionalDalek Dave30-Apr-10 4:23 
GeneralRe: Convert from decimal to hexidecimal? Pin
DaveAuld30-Apr-10 4:28
professionalDaveAuld30-Apr-10 4:28 
GeneralRe: Convert from decimal to hexidecimal? Pin
Adam Wike1-May-10 13:32
Adam Wike1-May-10 13:32 
QuestionDynamically adding tool strip buttons [modified] Pin
MacRaider430-Apr-10 2:54
MacRaider430-Apr-10 2:54 
I have a project that I'm working on and my boss wants me to add the buttons to the tool strip at runtime based on different things (those I'll worry about later). I've gotten pretty far on my own but am now stuck on the "click event". I can get the buttons to display but can't get them to do anything once they are there other than look good. I'm in the testing stage now so it's nothing impressive but as I said it works up to the point of displaying in the manner I need it to.

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click

        'Create a button for the tool strip
        Dim btnSomething As New ToolStripButton
        btnSomething.Text = "Test 1"
        btnSomething.Image = Image.FromFile("F:\VisualBasic\ToolStripTest\images\eventlog.ico")
        btnSomething.TextImageRelation = TextImageRelation.ImageAboveText
        btnSomething.ToolTipText = "This is Just a Test"

        Dim btnSomething2 As New ToolStripButton
        btnSomething2.Text = "Test 2"
        btnSomething2.Image = Image.FromFile("F:\VisualBasic\ToolStripTest\images\eventlog.ico")
        btnSomething2.TextImageRelation = TextImageRelation.ImageAboveText
        btnSomething2.ToolTipText = "This is Just a Test again"

        'Display a separator with followed by the two created buttons followed by another separator
        ToolStrip1.Items.Add(New System.Windows.Forms.ToolStripSeparator)
        ToolStrip1.Items.Add(btnSomething)
        ToolStrip1.Items.Add(btnSomething2)
        ToolStrip1.Items.Add(New System.Windows.Forms.ToolStripSeparator)
        
    End Sub


Thank you all in advance...

modified on Friday, April 30, 2010 12:37 PM

AnswerRe: Dynamically adding tool strip buttons Pin
Simon_Whale30-Apr-10 3:17
Simon_Whale30-Apr-10 3:17 
GeneralRe: Dynamically adding tool strip buttons Pin
MacRaider430-Apr-10 3:39
MacRaider430-Apr-10 3:39 
GeneralRe: Dynamically adding tool strip buttons Pin
MacRaider430-Apr-10 3:49
MacRaider430-Apr-10 3:49 
AnswerRe: Dynamically adding tool strip buttons Pin
Wayne Gaylard30-Apr-10 3:56
professionalWayne Gaylard30-Apr-10 3:56 
GeneralRe: Dynamically adding tool strip buttons Pin
MacRaider430-Apr-10 6:44
MacRaider430-Apr-10 6:44 
GeneralRe: Dynamically adding tool strip buttons Pin
Wayne Gaylard30-Apr-10 15:11
professionalWayne Gaylard30-Apr-10 15:11 
GeneralRe: Dynamically adding tool strip buttons Pin
MacRaider43-May-10 6:30
MacRaider43-May-10 6:30 
QuestionRead data from MS Excel Pin
nishkarsh_k30-Apr-10 2:18
nishkarsh_k30-Apr-10 2:18 
AnswerRe: Read data from MS Excel Pin
Dave Kreskowiak30-Apr-10 4:01
mveDave Kreskowiak30-Apr-10 4:01 
GeneralRe: Read data from MS Excel [modified] Pin
nishkarsh_k3-May-10 2:25
nishkarsh_k3-May-10 2:25 
GeneralRe: Read data from MS Excel Pin
Dave Kreskowiak3-May-10 5:09
mveDave Kreskowiak3-May-10 5:09 
AnswerRe: Read data from MS Excel Pin
Wayne Gaylard30-Apr-10 4:05
professionalWayne Gaylard30-Apr-10 4:05 
GeneralRe: Read data from MS Excel Pin
nishkarsh_k2-May-10 20:28
nishkarsh_k2-May-10 20:28 
GeneralRe: Read data from MS Excel [modified] Pin
nishkarsh_k2-May-10 23:37
nishkarsh_k2-May-10 23:37 
GeneralRe: Read data from MS Excel Pin
Wayne Gaylard3-May-10 0:07
professionalWayne Gaylard3-May-10 0:07 
GeneralRe: Read data from MS Excel Pin
nishkarsh_k3-May-10 2:08
nishkarsh_k3-May-10 2:08 
GeneralRe: Read data from MS Excel Pin
nishkarsh_k4-May-10 3:27
nishkarsh_k4-May-10 3:27 

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.