Click here to Skip to main content
16,010,553 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Closing All MDI Child Windows At Once Pin
Jeremy Falcon14-Jan-03 6:58
professionalJeremy Falcon14-Jan-03 6:58 
General.NET Crashes Pin
A. Aluthwala10-Jan-03 15:56
sussA. Aluthwala10-Jan-03 15:56 
GeneralRe: .NET Crashes Pin
FruitBatInShades11-Jan-03 0:34
FruitBatInShades11-Jan-03 0:34 
GeneralRe: .NET Crashes Pin
Anonymous13-Jan-03 1:07
Anonymous13-Jan-03 1:07 
GeneralStupid VB glitch Pin
Kevnar10-Jan-03 4:10
Kevnar10-Jan-03 4:10 
GeneralRe: Stupid VB glitch Pin
Glenn Dawson10-Jan-03 4:48
Glenn Dawson10-Jan-03 4:48 
GeneralRe: Stupid VB glitch Pin
Kevnar10-Jan-03 5:13
Kevnar10-Jan-03 5:13 
GeneralRegarding toolbar Pin
suresh_sathya10-Jan-03 0:47
suresh_sathya10-Jan-03 0:47 
I tried the following code below which is given in msdn.
But i am not getting any button on the toolbar.
Can anyone tell why.




applicationObject = CType(application, EnvDTE.DTE)
addInInstance = CType(addInInst, EnvDTE.AddIn)
If connectMode = Extensibility.ext_ConnectMode.ext_cm_UISetup Then
Dim objAddIn As AddIn = CType(addInInst, AddIn)
Dim CommandObj As Command

' When run, the Add-in wizard prepared the registry for the Add-in.
' At a later time, the Add-in or its commands may become unavailable for reasons such as:
' 1) You moved this project to a computer other than which is was originally created on.
' 2) You chose 'Yes' when presented with a message asking if you wish to remove the Add-in.
' 3) You add new commands or modify commands already defined.
' You will need to re-register the Add-in by building the MyAddin1Setup project,
' right-clicking the project in the Solution Explorer, and then choosing install.
' Alternatively, you could execute the ReCreateCommands.reg file the Add-in Wizard generated in
' the project directory, or run 'devenv /setup' from a command prompt.
Try
Dim cmds As Commands
Dim cmdobj As Command
Dim customin, customout As Object
Dim cmdbarobj As CommandBar
Dim colAddins As AddIns

' Set references.

Dim DTE As EnvDTE.DTEClass
colAddins = DTE.AddIns()
cmds = DTE.Commands
cmdobj = cmds.Item("File.NewFile")

' Create a toolbar and add the File.NewFile command to it.
cmdbarobj = cmds.AddCommandBar("Mycmdbar", vsCommandBarType.vsCommandBarTypeToolbar)
MsgBox("Commandbar name: " & cmdbarobj.Name)
cmdobj = cmds.AddNamedCommand(colAddins.Item(1), "mycommand", "mycommand", "tooltip for mycommand", True)
QuestionHow Can i detect <Return> in datagrid Cell Pin
intibnin9-Jan-03 20:27
intibnin9-Jan-03 20:27 
AnswerRe: How Can i detect <Return> in datagrid Cell Pin
Nick Seng9-Jan-03 21:33
Nick Seng9-Jan-03 21:33 
GeneralTimer problem... Pin
Ruca9-Jan-03 6:54
Ruca9-Jan-03 6:54 
GeneralRe: Timer problem... Pin
FruitBatInShades9-Jan-03 6:59
FruitBatInShades9-Jan-03 6:59 
GeneralRe: Timer problem... Pin
Ruca9-Jan-03 7:06
Ruca9-Jan-03 7:06 
GeneralThe Answer... Pin
FruitBatInShades9-Jan-03 7:10
FruitBatInShades9-Jan-03 7:10 
Generalmenu enable/disable problem.. Pin
drmzunlimited9-Jan-03 5:28
drmzunlimited9-Jan-03 5:28 
GeneralRe: menu enable/disable problem.. Pin
Jeremy Falcon14-Jan-03 7:04
professionalJeremy Falcon14-Jan-03 7:04 
GeneralGathering Data between 2 dates Pin
Anonymous8-Jan-03 19:03
Anonymous8-Jan-03 19:03 
GeneralRe: Gathering Data between 2 dates Pin
drmzunlimited9-Jan-03 5:34
drmzunlimited9-Jan-03 5:34 
GeneralRe: Gathering Data between 2 dates Pin
Hesham Amin9-Jan-03 9:12
Hesham Amin9-Jan-03 9:12 
GeneralRe: Gathering Data between 2 dates Pin
pchari11-Jan-03 14:55
pchari11-Jan-03 14:55 
GeneralRe: Gathering Data between 2 dates Pin
Hesham Amin11-Jan-03 20:20
Hesham Amin11-Jan-03 20:20 
Generalweb browser control Pin
Hesham Amin8-Jan-03 11:06
Hesham Amin8-Jan-03 11:06 
GeneralRe: web browser control Pin
FruitBatInShades9-Jan-03 7:01
FruitBatInShades9-Jan-03 7:01 
Generalproblem updating from a datagrid Pin
mcm8-Jan-03 8:05
mcm8-Jan-03 8:05 
GeneralTiff to PDF conversion Pin
Zulfikar Ali8-Jan-03 6:26
Zulfikar Ali8-Jan-03 6:26 

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.