Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

Devil's Outlookbar

 

Hey devil (or anyone that knows),

i'm using ur outlookbar...

 

The only way i came up with to identify a button in the

OutlookBar_ButtonClick event is with the e.Button.Text prop.

Is there another way?

 

Thanx

Auto-suggestion: "I have a life"

Uncontroled thinking: "So what the.."

  • *Gurus*
Posted

My nick isn't devil.

 

You can use the text property, or you can compare with the buttons on your form:

 

If e.Button Is olbMyButton Then
ElseIf e.Button Is olbMyOtherButton Then
End If

 

This is the same way it works for the .net toolbar, etc.

MVP, Visual Developer - .NET

 

Now you see why evil will always triumph - because good is dumb.

 

My free .NET Windows Forms Controls and Articles

Posted

Hey sorry for the nickname...

 

Thanks, that a lot better, didnt know you could do that....

Auto-suggestion: "I have a life"

Uncontroled thinking: "So what the.."

Posted

How to add icon on the image list

 

Glad to find yhou here. I tried to locate more info to help on your outlook control . Also submit question on the website. It can't reach you. Here is the question. Thanks.

I downloaded the file. I did not understand how he added icon in the imagelist. I checked the image list. It showed the system.drawing.bitmap. I have a lot problems to figure out how to use that. Any one want to share. In the source file, you can see any control at all. Thanks.

Posted

This is what I am using

 

Private Sub OutlookBar_ButtonClick(ByVal sender As Object, ByVal e As OutlookBar.OutlookBarButtonClickEventArgs) Handles OutlookBar.ButtonClick

If e.Button.Text = "System Info" Then hds.StartSysInfo()

If e.Button.Text = "Company Info" Then compinfo.ShowDialog()

End Sub

 

So just a lookup and matching the Text Labels.

  • 3 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...