473,804 Members | 2,962 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

MDI Application in C# or Floating Toolbar

I am trying to convert an SDI application to MDI. I had a from with many controls on it that was an SDI application. The form is really big and requires the user to scroll back and forth and up and down to see it all. It is done this way rather than with tabs, because the user wants it that way. I created a parent container with the toolbar at the top and made other necessary changes. The application runs and my parent form starts. The child does not start. I have called frm.show() and the task bar shows two icons on top of each other (such as with Excel and the open workbook or any other MDI application), but the child does not show up. I simply have a parent with a blank background. Is there some property or something that can cause this to happen? Has anyone ever had this problem before and fixed it?

--
JOHN TYCE
Nov 16 '05 #1
4 6532
Are you setting the Forms parent to the MDI form?

frm.MdiParent = this;

Nov 16 '05 #2
No I was not, thanks. I had done it in another place and then moved my code, forgetting this little line.

Another problem that I am now having, involves refreshing controls. I have allot of text boxes, several combo boxes and grids. These controls are showing live data from an Oracle database. I have dates in a combo box in my tool bar that are associated with the particular report that the user is opening. When the user picks a different date all of the data in the controls should reload. I originally built an SDI application but needed my tool bar to stay put so I redid it in MDI. In the SDI application when the user chooses a new date in the combo box, an event handler calls my load function and all of the data in the controls in reloaded with new data. In the MDI application, the new data does not show up unless I close and re show the MDI child. This of course makes the application too slow and is unacceptable. Also, I am having another problem with a control. This control is on the parent and is the dates combo box that I mentioned above. If a user clicks new report a dialog with a date time picker pops up and the user is able to select a date for the report and say OK. At this point the new date is to be inserted into the combo box (combobox.Items .Add(string)) as this happens the index of the new item is captured and the combo box is set to the new date. In the MDI application this does not happen. The combo box does not receive the new date. In fact, if I try to get a count of the items in the combo box within this event handler or a separate function, it comes back as zero, even though I can see that there are items in the list. In the SDI application, none of these problems exist. I have tried several different ways to get around this problem, and have shared it with the other developers on my team; we are all stumped. Has anyone ever seen this before? How can I fix it?

--
JOHN TYCE
"Martin Stainsby" <go***********@ alreadythank.yo u> wrote in message news:O6******** ******@TK2MSFTN GP09.phx.gbl...
Are you setting the Forms parent to the MDI form?

frm.MdiParent = this;

Nov 16 '05 #3
No I was not, thanks. I had done it in another place and then moved my code, forgetting this little line.

Another problem that I am now having, involves refreshing controls. I have allot of text boxes, several combo boxes and grids. These controls are showing live data from an Oracle database. I have dates in a combo box in my tool bar that are associated with the particular report that the user is opening. When the user picks a different date all of the data in the controls should reload. I originally built an SDI application but needed my tool bar to stay put so I redid it in MDI. In the SDI application when the user chooses a new date in the combo box, an event handler calls my load function and all of the data in the controls in reloaded with new data. In the MDI application, the new data does not show up unless I close and re show the MDI child. This of course makes the application too slow and is unacceptable. Also, I am having another problem with a control. This control is on the parent and is the dates combo box that I mentioned above. If a user clicks new report a dialog with a date time picker pops up and the user is able to select a date for the report and say OK. At this point the new date is to be inserted into the combo box (combobox.Items .Add(string)) as this happens the index of the new item is captured and the combo box is set to the new date. In the MDI application this does not happen. The combo box does not receive the new date. In fact, if I try to get a count of the items in the combo box within this event handler or a separate function, it comes back as zero, even though I can see that there are items in the list. In the SDI application, none of these problems exist. I have tried several different ways to get around this problem, and have shared it with the other developers on my team; we are all stumped. Has anyone ever seen this before? How can I fix it?

--
JOHN TYCE
"Martin Stainsby" <go***********@ alreadythank.yo u> wrote in message news:O6******** ******@TK2MSFTN GP09.phx.gbl...
Are you setting the Forms parent to the MDI form?

frm.MdiParent = this;

Nov 16 '05 #4
Please post your code.

"John Tyce" <jt***@chevront exaco.com> wrote in message news:Of******** ******@TK2MSFTN GP12.phx.gbl...
No I was not, thanks. I had done it in another place and then moved my code, forgetting this little line.

Another problem that I am now having, involves refreshing controls. I have allot of text boxes, several combo boxes and grids. These controls are showing live data from an Oracle database. I have dates in a combo box in my tool bar that are associated with the particular report that the user is opening. When the user picks a different date all of the data in the controls should reload. I originally built an SDI application but needed my tool bar to stay put so I redid it in MDI. In the SDI application when the user chooses a new date in the combo box, an event handler calls my load function and all of the data in the controls in reloaded with new data. In the MDI application, the new data does not show up unless I close and re show the MDI child. This of course makes the application too slow and is unacceptable. Also, I am having another problem with a control. This control is on the parent and is the dates combo box that I mentioned above. If a user clicks new report a dialog with a date time picker pops up and the user is able to select a date for the report and say OK. At this point the new date is to be inserted into the combo box (combobox.Items .Add(string)) as this happens the index of the new item is captured and the combo box is set to the new date. In the MDI application this does not happen. The combo box does not receive the new date. In fact, if I try to get a count of the items in the combo box within this event handler or a separate function, it comes back as zero, even though I can see that there are items in the list. In the SDI application, none of these problems exist. I have tried several different ways to get around this problem, and have shared it with the other developers on my team; we are all stumped. Has anyone ever seen this before? How can I fix it?

--
JOHN TYCE
"Martin Stainsby" <go***********@ alreadythank.yo u> wrote in message news:O6******** ******@TK2MSFTN GP09.phx.gbl...
Are you setting the Forms parent to the MDI form?

frm.MdiParent = this;

Nov 16 '05 #5

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

Similar topics

3
2190
by: Simon McCabe | last post by:
Hi All, Has anyone come across a floating toolbar for .NET that does not come from a third party vendor? I have searched the net, but have come across nothing useable! Regards, Simon McCabe.
3
2527
by: Jason | last post by:
How to make toolbar floating in C#? Thanks Jason
1
2458
by: Valerie Hough | last post by:
Can someone point me to a sample of a floating toolbar for a C# System.Windows.Form. Thanks in advance Chris Hough
4
2353
by: John Tyce | last post by:
The problem that I am now having, involves refreshing controls. I have allot of text boxes, several combo boxes and grids. These controls are showing live data from an Oracle database. I have dates in a combo box in my tool bar that are associated with the particular report that the user is opening. When the user picks a different date all of the data in the controls should reload. I originally built an SDI application but needed my tool bar to...
3
440
by: R2D2 | last post by:
Hello, I am relatively new to .NET and was wondering how to create a floating toolbar (like the ones in MS Office) to use in my applications. The only one I could find in VS.NET is a standard one that cannot be moved aroud. Please help!! Thanks
4
3331
by: CMM | last post by:
Has any one gotten a "stay-in-view" floating div to work in ASP.NET 2.0? For those that don't know, the classic way is this (for IE anyway): (window.onscroll...) document.all.Toolbar.style.pixelTop = document.body.scrollTop; But, this doesn't seem to work in any way with ASP.NET 2.0. The problem seems to lay in ASP.NET 2.0's default doctype... <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"...
0
4238
by: Jon Slaughter | last post by:
Does the toolstripcontainer/toolstrip allow for automatically handling conversion to a toolbar? i.e., I have a toolstripcontainer that contains a few toolstrips and I would like the ability for the user to be able to convert, by draging the toolstrip off the toolstripcontainer, to a toolbar. i.e., exactly like VS.NET2k5 allows(and many other apps) where you can drag the grip of the toolstrip to the client area and it will create a...
0
1413
by: ngr | last post by:
I want to be able to produce a floating dockable toolbar like in the visual basic 2005 interface. I know how to get a toolbar to dock to the sides of a form, but there are instances where I want to have the toolbar floating in the middle of the form. Does anyone know how this can be achieved please. Thanks in advance for newsgroup feedback.
0
1836
by: msnews | last post by:
Hi All! How to make my toolbar as floating toolbar in VB.NET 2005. I am using toolstrip control and have the toolstrip container panel. Based on this i can set the toolbar to left, right, top, bottom option click from a form. How to set the floating option. --
0
9571
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10561
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10318
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10069
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...
1
7608
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
5639
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4277
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
3803
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2976
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.