473,326 Members | 2,125 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

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 6495
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.you> wrote in message news:O6**************@TK2MSFTNGP09.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.you> wrote in message news:O6**************@TK2MSFTNGP09.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***@chevrontexaco.com> wrote in message news:Of**************@TK2MSFTNGP12.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.you> wrote in message news:O6**************@TK2MSFTNGP09.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
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
by: Jason | last post by:
How to make toolbar floating in C#? Thanks Jason
1
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
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...
3
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...
4
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...)...
0
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...
0
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...
0
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,...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.