473,802 Members | 2,461 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

ToolStripManage r.Merge and .RevertMerge help please

Newbie alert!

VB 2005 Express. One MDIParent form and one regular Form. The MDIParent has
the standard ToolStrip. The MDI Child Form has its own ToolStrip that is to
be merged onto the MDIParent's ToolStrip. Sounds simple, right?

I've gone through quite a few URLs that all pretty much say the same thing
but I have yet to get this completely working. (Most of those URLs also seem
to wander away from ToolStrip and instead go down the same illustration path
using MenuStrip. My problem is with ToolStrips, not MenuStrips.)

No problem with ToolStripManage r.Merge(sourceT oolStrip, targetToolStrip ),
other than the fact that no matter what I do with the ToolStripButton
MergeAction and MergeIndex I can't seem to get the buttons to merge in the
middle of the target.

Calling ToolStripManage r.RevertMerge(s ourceToolStrip, targetToolStrip ), on
the other hand, appears to have no effect.

In the MDI Child, the ToolStrip's AllowMerge and AllowItemReorde r are set to
True. The individual ToolStripButton s are all set to Insert (or Append -
I've tried it both ways) with unique MergeIndex values (let's say they're
values from 51-55).

The MDI Child's New() subroutine simply calls:

ToolStripManage r.Merge(Me.Tool Strip, MyParent.ToolSt rip)

No problems there (other than the merged button order that is - they always
get tacked on the end of the target).

The MDI Child's FormClosing() subroutine equally simply calls:

ToolStripManage r.RevertMerge(M e.ToolStrip, MyParent.ToolSt rip)

Unfortunately the merged result is still displayed.

In the MDIParent, the ToolStrip's AllowMerge and AllowItemReorde r properties
are also set to True. The individual ToolStripButton s are mostly default
(Append, -1) except for the last separator and Help buttons that have a
MergeIndex of 98 and 99 respectively.

The big question is how does one get merged ToolStrips unmerged?

The bonus question is how does one get ToolStripButton s to merge in the
middle of the target?

Jul 17 '06 #1
1 4964

"MyndPhlyp" <no****@homerig ht.nowwrote in message
news:OG******** ******@TK2MSFTN GP05.phx.gbl...
>
The MDI Child's FormClosing() subroutine equally simply calls:

ToolStripManage r.RevertMerge(M e.ToolStrip, MyParent.ToolSt rip)
Doh! Finally figured that one out. Had to reverse the order of the
ToolStrips in the parameter list.

Still trying to figure out how to get the ToolStripButton s of the source to
merge in the middle of the target though.
Jul 17 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
6167
by: Newbie | last post by:
Hi, I am trying to merge data from two tables (over two servers, using dblink). Approx 40,000 records in each. Server1(source) and Server2(dest) On Server1, db-link "dblink1" points to Server2 On Server2, db-link "dblink1" points to Server1 Schema names are same on the two servers.
4
4448
by: Steve Donnor | last post by:
Here's my question.. I have a Dataset which has populated a datagrid with information from an AS400 That SQL looks like this "Select MASYS, MAFLD, MADATA, MAEQV from QS36F.MAPDATA WHERE MASYS = ? AND MAFLD = ? It populates a data adapter in which at that point I open a new dataset and I have the parameters and such setup including the proper update, insert and delete commands created as well. It works great I can update and insert and...
9
4330
by: Neil Ginsberg | last post by:
I have a strange situation using Access to automate a Word mail merge. Using Access 2000 and Word 2000, the code opens Word, opens the document in Word, sets a table in the calling Access application as the data source, and then performs a merge. Everything works fine. However, when a user uses it in Access 2002 and Word 2002, an extra instance of the Access application is opened and remains open at the end. Sometimes it remains open
8
13342
by: Ron B | last post by:
Help!!! What am I doing wrong? I am working with Office 2003 and am trying to create a command button on an Access form that will create a mail merge in Word from an Access table. I want to make the mail merge seamless to the user so all they have to do is click on the command button and the letters are generated. For the button I created an event procedure with the following code: Private Sub RunLetters_Click()
3
3410
by: Matt F | last post by:
I'm having difficulty with a function and can't find what the problem is. The code is below. Essentially, it works fine if the target table (tbl variable in code) is empty, however if it contains rows prior to the method being called, the error "'column' argument cannot be null" is thrown on the tbl.merge line. Any help would be greatly appreciated. ''' <summary>Imports data from the table passed in.</summary>
1
4968
by: mr k | last post by:
Hi, I wanted to use mail merge with forms but Text form fields are not retained during mail merge in Word, I got the code from Microsoft but it doesn't remember the text form field options such as the maximum length of the text (which I need) and the text format (would be ideal but can do without if need be) I have posted the code below, so please can you help!?? Thanks in advance... Sub PreserveMailMergeFormFieldsNewDoc() Dim...
16
3607
by: Sam Durai | last post by:
Hello, I need to merge a small table (of rows less than 100,sometimes even 0 rows) to a big table (of rows around 4 billion). I used the PK of the big table as merge key but merge does a table scan so it runs for ever. I checked the table and PK statistics of the big table and it looks good. Please let me know if I need to check for something else. Here are more details Small table - Non Partitioned ( Node 0)
1
6552
by: Esther Lane | last post by:
Hello! First off, many many thanks to Albert who wrote the Mail Merge code for MS Access I am using. It has been working beautifully for a few years. However, my client just (without notice!) upgraded from Access 2000 to Access 2007. Now that component is failing. The merge is building the data source file fine (text file named merge.888). I am providing an absolute path reference to the word file being used for the mail merge. ...
2
2890
by: mqueene7 | last post by:
below is my code for my merge sort but I can't get it to sort properly. I am trying generate random numbers based on input from the user and then sort those random numbers. Can you tell me what I am doing wrong? void merge(int,int,int); void merge_sort(int low, int high) { int mid, temp; if (low==high) return; if (low+1==high)
1
10285
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10063
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9114
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7598
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6838
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5622
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4270
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3792
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2966
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.