View Single Post
  #6   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Cindy M. Cindy M. is offline
external usenet poster
 
Posts: 2,416
Default how to create word CommandBarComboBox using vb.net(automate wo

Hi ?B?c3JpZA==?=,

**still looking for help with combobox

2)if i open word from my application ten time,there are ten
CommandBarComboBoxes on the word toolbar
3)even if i open the word seperately(not via vb.net) still i see newly
created CommandBarComboBoxes(10 or #...)

It would help to see the code you're using to manage the combobox, but
right off-hand I'd say you're application needs to

1. Be sure to set the CustomizationContext when creating the combobox
2. Be sure to also delete the combobox, again setting the
CustomizationContext (to the same container as when creating it) before
issuing the command
3. It probably also wouldn't hurt to check for the presence of the
Combobox in the target toolbar before creating it again, deleting the
control if it's found.

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 17 2005)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question or
reply in the newsgroup and not by e-mail :-)