Maximize/Minimize MDI Child window
Dear Members :
I am on Oracle forms 10.1.2 and irrespective of whether value of separateFrame=true/false, when I try to maximize mdi-sheet window (within application frame), the whole thing flickers and after some time browser crashes. Does "maximize allowed" property not work for child windows in MDI application ?
Behavior of minimize is also peculiar, as the the whole mdi application frame develops a vertical scroll, when I again try to resize the minimized mdi-sheet window, as it shows up with it's original size down from it's lower position; instead of getting back to where it originally appeared.
I tried above both using JInitiator and JRE - but same behavior.
Could anyone please suggest ?
Thanks in advance.
Atanu
Edited by: user11184124 on Sep 28, 2011 3:09 PM
...If you want to make your voice heard to the VC++/MFC developer support people via Connect, that is a reasonable option. If others vote the "me too" there, your suggestions might gather enough weight for some future action.
<
Robert, if you do post a bug report on Connect please post a link to
your bug report back here so we can find it.
I guess the bug report is really that Windows 8 doesn't draw MDI child
windows in a consistent style to the top level frame window (I see the
same thing using Forte Agent, so I don't think it's an MFC issue).
For instance, if you are asking that MFC include some new visual manager(s) to support the newer Windows 8 appearance,
Please, no more application specific "visual managers". Don't make it
easy to make an inconsistent mess of UIs.
I've just been saddled with a WPF application that's a right mess in
that respect - some parts change correctly when the user changes the
Windows scheme to high-contrast, while other parts use AvalonDock with
its own theme idea of what the colors should be.
Dave
Similar Messages
-
When you create an MFC MDI application in Visual Studio 2012 by selecting "Multiple Documents", clearing the "Tabbed documents" checkbox, and selecting "MFC Standard" for the project style, you get a traditional MDI application
with a main frame window and multiple child windows.
However, while the frame window gets the new flat Windows 8 look, the child windows still have a Windows7 style, with a 3D type light blue frame and a glossy close button in the top-right corner. Is there a way to get the child windows to have the same flat
look as the main frame window?
Thanks in advance for any advice....If you want to make your voice heard to the VC++/MFC developer support people via Connect, that is a reasonable option. If others vote the "me too" there, your suggestions might gather enough weight for some future action.
<
Robert, if you do post a bug report on Connect please post a link to
your bug report back here so we can find it.
I guess the bug report is really that Windows 8 doesn't draw MDI child
windows in a consistent style to the top level frame window (I see the
same thing using Forte Agent, so I don't think it's an MFC issue).
For instance, if you are asking that MFC include some new visual manager(s) to support the newer Windows 8 appearance,
Please, no more application specific "visual managers". Don't make it
easy to make an inconsistent mess of UIs.
I've just been saddled with a WPF application that's a right mess in
that respect - some parts change correctly when the user changes the
Windows scheme to high-contrast, while other parts use AvalonDock with
its own theme idea of what the colors should be.
Dave -
Passing value from mdi child to parent form
Hallo
I design project in which is main window with mdi container and mdi child windows. My problem is that so i want to save value from TextBox1 from child form using main menu which is in main window. I don't know how to call content of TextBox1. Here is part
of code about saving file.
Private Sub MenuItem5_Click(sender As Object, e As EventArgs) Handles MenuItem5.Click
If Me.ActiveMdiChild IsNot Nothing Then
SaveFileDialog1.FileName() = "Nowa metryka"
SaveFileDialog1.Filter() = "Metryka zaworu bezpieczenstwa (*.mzb) | *.mzb"
If SaveFileDialog1.ShowDialog() = DialogResult.OK Then
Dim ZapisywanieTekstu As New IO.StreamWriter(SaveFileDialog1.FileName)
Dim varZapisywanyTekst As String = ZapisywanieTekstu.AutoFlush
ZapisywanieTekstu.WriteLine("HERE SHOUL BE A CALL TO TextBox1 VALUE")
ZapisywanieTekstu.Close()
End If
End If
End Sub
If somebody have any idea ho to call value of TextBox1 in child form using main form save menu plase give me any help.
Thank You
And Best RegardsHello,
I'd ask in
Windows Forms General.
Karl
When you see answers and helpful posts, please click Vote As Helpful, Propose As Answer, and/or Mark As Answer.
My Blog:http://unlockpowershell.wordpress.com
My Book:Windows PowerShell 2.0 Bible
My E-mail: -join ('6F6C646B61726C40686F746D61696C2E636F6D'-split'(?<=\G.{2})'|%{if($_){[char][int]"0x$_"}}) -
How to maximize the MDI window in web form.
Dear all,
i am new to jdeveloper. i am using form 10g there is a problem which is not handle by me in forms.
i want to maximize the MDI window in web form.
can jdeveloper solve my problem.
i am new please anyone tell me step by step.
thanks
Muhammad Nadeem
[email protected]Hi,
no. Please use the Forms built-in set_window_property maximize
Forms questions are answered here: Forms
Frank -
C# MDI application: how to scale child windows when main window is re-sized?
Hi,
I have an MDI application that have several child forms. Users can view several forms at one time, and users also are given the options to arrange the child forms anyway they want: cascade or tile. What I want to achieve is that if the
parent window is re-sized, all child forms should also be re-sized proportionally. The code that I have only work if the child forms are tiled horizontally, AND that I only make the main window wider. Otherwise, all forms are scaled (but not perfect),
however, the location is not scaled; therefore, they are overlapping each other. I greatly appreciate any help from you.
Size m_preSize;
private void MainForm_ResizeBegin(object sender, EventArgs e)
m_prevSize = this.ClientRectangle.Size;
private void MainForm_ResizeEnd(object sender, EventArgs e)
int iWidth = m_prevSize.Width;
int iHeight = m_prevSize.Height;
double dXFactor = (double)(this.ClientRectangle.Width) / (double)iWidth;
double dYFactor = (double)(this.ClientRectangle.Height) / (double)iHeight;
foreach (Form c in this.MdiChildren)
if (!c.Visible)
continue;
if (c.WindowState == System.Windows.Forms.FormWindowState.Maximized ||
c.WindowState == System.Windows.Forms.FormWindowState.Minimized)
// DO not ajust on resize if a child window is at its Maximized state
return;
c.Scale(new SizeF((float)dXFactor, (float)dYFactor));
Best Regards,
EmilyHi Badidea,
Once again, I did not explain my idea clearly. I am sorry about that. I only wanted to scale the child-windows as the parent re-sized. And yes, if the child-windows fill up the view-able area of the parent's window, I would like them to
also fill up the view-able area of parent's window once again after re-size of parent window. No scroll should be involved.
Regards,
Emily
Hello,
It depends on how you cascade or tile these forms.
In this case, I would recommend you use this way below.
1. Layout with splitContainers.
2. Set each child form's toplevel to false, then add them to the panels of splitContainers.
3. Resize these form to fit the panels.
4. repeat #3 inside the main form's resize event.
Here is a simple sample.
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace _150313AutoSizeMdiChiledForm
public partial class MainForm : Form
public MainForm()
InitializeComponent();
Form1 f1 = new Form1();
Form2 f2 = new Form2();
Form3 f3 = new Form3();
private void MainForm_Load(object sender, EventArgs e)
f1.TopLevel = false;
this.splitContainer2.Panel1.Controls.Add(f1);
f1.Size = this.splitContainer2.Panel1.ClientSize;
f1.Show();
f2.TopLevel = false;
this.splitContainer2.Panel2.Controls.Add(f2);
f2.Size = this.splitContainer2.Panel2.ClientSize;
f2.Show();
f3.TopLevel = false;
this.splitContainer1.Panel2.Controls.Add(f3);
f3.Size = this.splitContainer1.Panel2.ClientSize;
f3.Show();
private void MainForm_Resize(object sender, EventArgs e)
f1.Size = this.splitContainer2.Panel1.ClientSize;
f2.Size = this.splitContainer2.Panel2.ClientSize;
f3.Size = this.splitContainer1.Panel2.ClientSize;
Designer code.
namespace _150313AutoSizeMdiChiledForm
partial class MainForm
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
if (disposing && (components != null))
components.Dispose();
base.Dispose(disposing);
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
this.splitContainer1 = new System.Windows.Forms.SplitContainer();
this.splitContainer2 = new System.Windows.Forms.SplitContainer();
((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).BeginInit();
this.splitContainer1.Panel1.SuspendLayout();
this.splitContainer1.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.splitContainer2)).BeginInit();
this.splitContainer2.SuspendLayout();
this.SuspendLayout();
// splitContainer1
this.splitContainer1.Dock = System.Windows.Forms.DockStyle.Fill;
this.splitContainer1.Location = new System.Drawing.Point(0, 0);
this.splitContainer1.Name = "splitContainer1";
this.splitContainer1.Orientation = System.Windows.Forms.Orientation.Horizontal;
// splitContainer1.Panel1
this.splitContainer1.Panel1.Controls.Add(this.splitContainer2);
this.splitContainer1.Size = new System.Drawing.Size(607, 411);
this.splitContainer1.SplitterDistance = 198;
this.splitContainer1.TabIndex = 0;
// splitContainer2
this.splitContainer2.Dock = System.Windows.Forms.DockStyle.Fill;
this.splitContainer2.Location = new System.Drawing.Point(0, 0);
this.splitContainer2.Name = "splitContainer2";
this.splitContainer2.Size = new System.Drawing.Size(607, 198);
this.splitContainer2.SplitterDistance = 294;
this.splitContainer2.TabIndex = 0;
// MainForm
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(607, 411);
this.Controls.Add(this.splitContainer1);
this.Name = "MainForm";
this.Text = "MainForm";
this.Load += new System.EventHandler(this.MainForm_Load);
this.Resize += new System.EventHandler(this.MainForm_Resize);
this.splitContainer1.Panel1.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).EndInit();
this.splitContainer1.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.splitContainer2)).EndInit();
this.splitContainer2.ResumeLayout(false);
this.ResumeLayout(false);
#endregion
private System.Windows.Forms.SplitContainer splitContainer1;
private System.Windows.Forms.SplitContainer splitContainer2;
Result.
You could download it form http://1drv.ms/1Mwwibp.
It is quite similar with the one for tiling, you could edit it to fit your requirements.
Regards,
Carl
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey. -
How to Maximize/M​inimize Child panels
Is it possible to have maximize and minimize for child panels ? I would like a panel to be able to maximize to the size of the canvas area of the parent panel.
You can resize the child panel and move it as you see fit with SetPanelAttribute. However, for a child panel that is not a top-level window, there is no notion of minimize and maximize. This is an option for top-level windows that has a built in OS functionality.
Best Regards,
Chris Matthews
Measurement Studio Support Manager -
I want to add a new window (child window) . it should have only close button (no minimize and no maximize) and it should be a normal window (not a JInternal frame but a normal child window). How can i do that?
JDialog
-
== Issue
==
I have another kind of problem with Firefox
== Description
==
I use Firefox Version 3.6.6. If firefox is kept opened for a day or two with some tabs opened, then the active buttons like the "Back","Forward","Maximize","minimize","Close", etc and even the links on the webpage become disabled. On mouse click no action gets performed on these type of links. Once this starts only a PC restart causes Firefox to work normally.
Please kindly help me with a solution and I would request a fix for this issue.
== This happened
==
A few times a week
== Firefox is kept opened for long time, may be for a day or two with quite a lot of tabs opened.
==
== Troubleshooting information
==
Application Basics
Name Firefox
Version 3.6.6
Profile Directory
Open Containing Folder
Installed Plugins
about:plugins
Build Configuration
about:buildconfig
Extensions
Name
Version
Enabled
ID
Google Redesigned 0.4.5 false
Greasemonkey 0.8.20100211.5 false
Java Console 6.0.16 true
Java Console 6.0.17 true
Java Console 6.0.20 true
Java Quick Starter 1.0 false [email protected]
Microsoft .NET Framework Assistant 1.1 false {20a82645-c095-46ed-80e3-08825760534b}
New Tab King 3.1.4 false
RealPlayer Browser Record Plugin 1.1.1 false
Stylish 1.0.8 false {46551EC9-40F0-4e47-8E18-8E5CF550CFB8}
Modified Preferences
Name
Value
accessibility.typeaheadfind.casesensitive 1
accessibility.typeaheadfind.flashBar 0
browser.places.smartBookmarksVersion 2
browser.startup.homepage_override.mstone rv:1.9.2.6
extensions.lastAppVersion 3.6.6
general.useragent.extra.microsoftdotnet (.NET CLR 3.5.30729)
network.cookie.prefsMigrated true
print.print_printer \\secureprint\Level 8 Right Wing Printer
print.printer_\\secureprint\Level_8_Left_Wing_Printer.print_bgcolor false
print.printer_\\secureprint\Level_8_Left_Wing_Printer.print_bgimages false
print.printer_\\secureprint\Level_8_Left_Wing_Printer.print_command
print.printer_\\secureprint\Level_8_Left_Wing_Printer.print_downloadfonts false
print.printer_\\secureprint\Level_8_Left_Wing_Printer.print_edge_bottom 0
print.printer_\\secureprint\Level_8_Left_Wing_Printer.print_edge_left 0
print.printer_\\secureprint\Level_8_Left_Wing_Printer.print_edge_right 0
print.printer_\\secureprint\Level_8_Left_Wing_Printer.print_edge_top 0
print.printer_\\secureprint\Level_8_Left_Wing_Printer.print_evenpages true
print.printer_\\secureprint\Level_8_Left_Wing_Printer.print_footercenter
print.printer_\\secureprint\Level_8_Left_Wing_Printer.print_footerleft &PT
print.printer_\\secureprint\Level_8_Left_Wing_Printer.print_footerright &D
print.printer_\\secureprint\Level_8_Left_Wing_Printer.print_headercenter
print.printer_\\secureprint\Level_8_Left_Wing_Printer.print_headerleft &T
print.printer_\\secureprint\Level_8_Left_Wing_Printer.print_headerright &U
print.printer_\\secureprint\Level_8_Left_Wing_Printer.print_in_color true
print.printer_\\secureprint\Level_8_Left_Wing_Printer.print_margin_bottom 0.5
print.printer_\\secureprint\Level_8_Left_Wing_Printer.print_margin_left 0.5
print.printer_\\secureprint\Level_8_Left_Wing_Printer.print_margin_right 0.5
print.printer_\\secureprint\Level_8_Left_Wing_Printer.print_margin_top 0.5
print.printer_\\secureprint\Level_8_Left_Wing_Printer.print_oddpages true
print.printer_\\secureprint\Level_8_Left_Wing_Printer.print_orientation 0
print.printer_\\secureprint\Level_8_Left_Wing_Printer.print_pagedelay 500
print.printer_\\secureprint\Level_8_Left_Wing_Printer.print_paper_data 1
print.printer_\\secureprint\Level_8_Left_Wing_Printer.print_paper_height 11.00
print.printer_\\secureprint\Level_8_Left_Wing_Printer.print_paper_size_type 0
print.printer_\\secureprint\Level_8_Left_Wing_Printer.print_paper_size_unit 0
print.printer_\\secureprint\Level_8_Left_Wing_Printer.print_paper_width 8.50
print.printer_\\secureprint\Level_8_Left_Wing_Printer.print_reversed false
print.printer_\\secureprint\Level_8_Left_Wing_Printer.print_scaling 1.00
print.printer_\\secureprint\Level_8_Left_Wing_Printer.print_shrink_to_fit true
print.printer_\\secureprint\Level_8_Left_Wing_Printer.print_to_file false
print.printer_\\secureprint\Level_8_Left_Wing_Printer.print_unwriteable_margin_bottom 0
print.printer_\\secureprint\Level_8_Left_Wing_Printer.print_unwriteable_margin_left 0
print.printer_\\secureprint\Level_8_Left_Wing_Printer.print_unwriteable_margin_right 0
print.printer_\\secureprint\Level_8_Left_Wing_Printer.print_unwriteable_margin_top 0
print.printer_\\secureprint\Level_8_Right_Wing_Printer.print_bgcolor false
print.printer_\\secureprint\Level_8_Right_Wing_Printer.print_bgimages false
print.printer_\\secureprint\Level_8_Right_Wing_Printer.print_command
print.printer_\\secureprint\Level_8_Right_Wing_Printer.print_downloadfonts false
print.printer_\\secureprint\Level_8_Right_Wing_Printer.print_edge_bottom 0
print.printer_\\secureprint\Level_8_Right_Wing_Printer.print_edge_left 0
print.printer_\\secureprint\Level_8_Right_Wing_Printer.print_edge_right 0
print.printer_\\secureprint\Level_8_Right_Wing_Printer.print_edge_top 0
print.printer_\\secureprint\Level_8_Right_Wing_Printer.print_evenpages true
print.printer_\\secureprint\Level_8_Right_Wing_Printer.print_footercenter
print.printer_\\secureprint\Level_8_Right_Wing_Printer.print_footerleft &PT
print.printer_\\secureprint\Level_8_Right_Wing_Printer.print_footerright &D
print.printer_\\secureprint\Level_8_Right_Wing_Printer.print_headercenter
print.printer_\\secureprint\Level_8_Right_Wing_Printer.print_headerleft &T
print.printer_\\secureprint\Level_8_Right_Wing_Printer.print_headerright &U
print.printer_\\secureprint\Level_8_Right_Wing_Printer.print_in_color true
print.printer_\\secureprint\Level_8_Right_Wing_Printer.print_margin_bottom 0.5
print.printer_\\secureprint\Level_8_Right_Wing_Printer.print_margin_left 0.5
print.printer_\\secureprint\Level_8_Right_Wing_Printer.print_margin_right 0.5
print.printer_\\secureprint\Level_8_Right_Wing_Printer.print_margin_top 0.5
print.printer_\\secureprint\Level_8_Right_Wing_Printer.print_oddpages true
print.printer_\\secureprint\Level_8_Right_Wing_Printer.print_orientation 0
print.printer_\\secureprint\Level_8_Right_Wing_Printer.print_pagedelay 500
print.printer_\\secureprint\Level_8_Right_Wing_Printer.print_paper_data 1
print.printer_\\secureprint\Level_8_Right_Wing_Printer.print_paper_height 11.00
print.printer_\\secureprint\Level_8_Right_Wing_Printer.print_paper_size_type 0
print.printer_\\secureprint\Level_8_Right_Wing_Printer.print_paper_size_unit 0
print.printer_\\secureprint\Level_8_Right_Wing_Printer.print_paper_width 8.50
print.printer_\\secureprint\Level_8_Right_Wing_Printer.print_reversed false
print.printer_\\secureprint\Level_8_Right_Wing_Printer.print_scaling 1.00
print.printer_\\secureprint\Level_8_Right_Wing_Printer.print_shrink_to_fit true
print.printer_\\secureprint\Level_8_Right_Wing_Printer.print_to_file false
print.printer_\\secureprint\Level_8_Right_Wing_Printer.print_unwriteable_margin_bottom 0
print.printer_\\secureprint\Level_8_Right_Wing_Printer.print_unwriteable_margin_left 0
print.printer_\\secureprint\Level_8_Right_Wing_Printer.print_unwriteable_margin_right 0
print.printer_\\secureprint\Level_8_Right_Wing_Printer.print_unwriteable_margin_top 0
privacy.sanitize.migrateFx3Prefs true
security.warn_viewing_mixed false
== User Agent
==
Opera/9.80 (Windows NT 5.1; U; en) Presto/2.5.24 Version/10.54I do not use McAfee software and I am having this issue. I can right-click on the "back-or-forward" buttons and get a history list to choose from (which is far from an improvement), but do not get any response from a left-click. The "back-or-forward" navigation buttons are greyed-out. Also, when I open Firefox (4), I get two title bars at the top with two separate sets of the "minimize", "maximize" and "close" icons. It appears as if one window is open within another, but if I click any of the commands "both" windows respond. It's annoying and cumbersome.
-
Maximize/Minimize/Close buttons are all greyed out
Hello. Ever since a few days ago, the green, yellow, and red maximize/minimize/close buttons at the top left of every window have all been greyed out. They're all still completely usable and they do what you would expect them to do...there's just no color in them anymore. This is happening for all applications.
I'm not really sure what's causing this. I don't remember exactly when it stopped working or what happened right before it, but it may have started happening right after my computer shut down, possibly from overheating (My friend was trying to be funny and opened the application window in finder and then pressed Cmd+a followed by Cmd+o --- To open all of my applications. We watched it chugging along for a while and then the screen just went black and the computer turned off). I don't know if that would cause the problem, I'm not really sure why it would.
I tried a google search but came up empty handed. Any advice on how to fix this would be much appreciated. Thanks.No problem at all! Do remember to check the smallest things first before thinking that it is a big thing.
-
Hi again,
Now, I am interested in creating a status bar at the bottom of my vi and I want to put the date and time in it or other messages that my application generates. How can I do it?
and.... How can I do and a MDI child application like in visual basic?
Finally,
Is it possible in time execution to show the front panel of my vi without embeding it in a window? LabVIEW always embeds the vi in a window, I would like to not embed it in a window.
Thanks,
ToNi.I'll start with the easy ones -
The easy way to put a status bar in your app is probably to devote that area for one, or several, controls which will display what you want. You can decorate that area and customize the controls to have the look you want. If you want it to hover above, I think your best chance is a subVI constantly open in that area.
Which brings me to the next question - "LV embeds the VI in a window" - I presume you mean the menu bar (the area where the run button and the VI icon are). If so, right click the icon, select VI Properties and go to Window Appearence. Here you customize these options.
Last one - MDI. If I understand correctly, this is Multiple Document Interface, meaning that you have several child windows sharing the same menus, etc. Like when you open Word and have several documents in the same space or Photoshop and have several pictures in the same space using the same tools. I don't know how this works in VB (how does it work in VB, by the way?), but I don't think this can be done just as easily in LV, since LV is multiplatform and VB (I believe) is windows specific and uses windows options inherently to do this (just a guess, LV also has some windows specific features). Anyway, you can have a seperate VI as your common area and simulate this using subpanels (can be found in the Containers palette, next to the tab control) or using regular subVIs, but you'll probably have to sync all of them somehow. Hope this helps. Maybe I'm wrong and someone will have a better idea.
Try to take over the world! -
Control of NotifyIcon in MDI Parent from MDI child (C# Express)
I have an MDI application with a base(Parent) form (FormA) and several child forms (Form1, Form2, etc). My Parent Form (FormA) is invisible and contains a ContextMenuStrip (contextMenuStrip1) and a NotifyIcon (notifyIcon1). I have 3 Icons defined in my properties.resources
(a yellow, green, and red check mark). I start FormA from Main() in my Program.cs with Application.Run(new FormA()); . FormA starts and checks various things via code in FormA or in Program.cs, selects the proper icon and sets it, may or may not
create a message balloon depending on what it finds and gives the user access to the ContextMenuStrip by right-clicking the Icon. From the ContextMenuStrip the user can select the various other forms to make certain adjustments. Whichever form is selected
by the user is started with:
Form1 newMDIChild = new Form1();
// Set the Parent Form of the Child window.
newMDIChild.MdiParent = this.MdiParent;
// Display the new form.
newMDIChild.Show();
Form1 (or Form2 or Form97) starts, checks stuff via routines in Form1 (or 2 or 97) and Program.cs and allows the user to change certain things via textboxes or run certain routines via buttons that are made visible if appropriate. This all works flawlessly
and I'm happier than a pig in you know what BUT... what I NEED to be able to do is change the Icon in FormA (notifyIcon1.Icon) from a yellow or red check mark to a green one, once things causing a problem are corrected while still remaining in Form1 (and/or
2 and/or 97) to allow other changes to be made. My understanding was that Form Papa = (Form)this.MdiParent; would give me the Parent (FormA) form, but no matter what I have tried, I cannot change notifyIcon1.Icon, so there is an obvious disconnect in
my thinking.
Please understand that I am new at C#. The last time I "mastered" a programming language was in the days of Clipper 5.3 and C (DOS) when OOL was in its' infancy, so my toes got damp but my feet never got truly wet with OOL, so please type slowly
Please understand also that I Understand that MDI is the personification of Satan himself here on Earth, but it is what for now I am stuck with and must solve. If you know better ways of accomplishing what I have described, by all means please point me to
them for future use. I am learning, and will continue to learn until about two weeks after they wrap me in burlap with some heavy stones and drop me off a ship at sea.
My thanks in advance for your patience, understanding and help.
DanHello Dan,
>>Form1 newMDIChild = new Form1();
// Set the Parent Form of the Child window.
newMDIChild.MdiParent = this.MdiParent;
// Display the new form.
newMDIChild.Show();<<
1. First, I will point that if you called that MDI form with that way, you will not be able to access main form's instance, since you set its mdiparent to the
main form's parent. So I would recommend you change it to the following one.
newMDIChild.MdiParent = this;
If you don't want the main form is mdi container, you could add a property to mdi form and pass the instance directly to that property instead.
2. You could add the following property to the main form class.
public Icon MyIcon
get { return this.notifyIcon1.Icon; }
set { this.notifyIcon1.Icon = value; }
And then inside the MDI form, change that property to the one you want to change the icon to, e.g change it to Icon2.
private void button1_Click(object sender, EventArgs e)
Form1 f1 = (Form1)this.MdiParent;
f1.MyIcon = Properties.Resources.Icon2;
Result:
Regard,
Carl
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey. -
Parent child window functionality using CFM
In .cfm page I am trying to implement the following
functionality
I got a parent window contains a button.
On button click a child window should get open.
This child Window should get embed in that parent window
(like MDI application)
1)i.e While minimizing the parent window this child window
should also get minimized
2)While closing the parent window this child window should
also get closed
3) We should also be able to close the child window alone.
4) If you double click on the title bar of the child window
it should get maximized
5) Again double click on the title bar of the child window it
should get minimized.
I tried with <embed> tag but it seems its for audio ,
flash kind files.
If we can use <embed> tag means whats should be the
value of the "Type" attribute.
waiting for your valuable informationWindow handlers and controls are generally a function of the
browser and not really manipulatable using ColdFusion, as it runs
on server-side only, not client-side. JavaScript would be more the
thing to play with in this regard, although I don't think there is
an "onClose" event handler.
HOWEVER!
All browsers have a security feature that prevents pop-up
child windows from "hijacking" their parents window behaviors,
including resizing, moving, changing the toolbars, closing, etc.
This security feature cannot be bypassed, and is an integral
hard-coded aspect of all modern browsers. I suspect that what you
are looking to do may be impossible due to this one fact, unless
someone knows a bypass. -
Hello,
Can anyone tell me how to disable Minimize, Restore & Close Buttons of a MDI & SDI Window.
Reply at [email protected]
Thanx.In the MDI window you cannot - but in the SDI window there are properties on the window to disable all those things.
-
I am running Firefox 3.6.13 under Mint 9, LXDE Edition. I've noticed its Maximize/Minimize tab in the bar across the bottom of the screen blinks alternately between green and light gray. I've never witnessed this phenomenon while running Firefox under other Linux distros or Windows. Does anyone know what it means?
Many thanks.Hi,
You can try to right-click the taskbar icon, '''Unpin''' it and later '''Pin''' it again. The [http://answers.microsoft.com/ Windows forum] would have different solutions to the problem. -
Can I limit where a child window can move inside the parent window?
I was wondering if it is possible to define a region of the parent vi window that a child window must be contained within so that the child window cannot be drug over my vi buttons and controls on the side.
ThanksFor child window, take a look G Toolbox at:
http://gtoolbox.yeah.net
To limit window position, you've to catch the window move event, and
check the window position, move it back if needed.
Sprinter wrote:
> I've had the same problem like cjs.
> I think your answer (Labviewguru) is OK byt it isn't exactly what I and (I
> think) cjs need.
> I need the child window always was on the top of parent window (and only
> parent window not other windows), even when the parent is being clicked and
> is active.
> The child window should minimize to the bottom of parent, not to the Windows
> taskbar.
> I know winutil.llb but it doesn't work exactly in required (by me
> certainly) way.
> If you have any other suggestions I'd be grateful.
>
> Gregor
>
>
>
> Uzytk
ownik "cjs" napisal w wiadomosci
> news:[email protected]..
>
>>I was wondering if it is possible to define a region of the parent vi
>>window that a child window must be contained within so that the child
>>window cannot be drug over my vi buttons and controls on the side.
>>
>>Thanks
>
>
>
Maybe you are looking for
-
But I tried from a different computer and it worked there.
-
I am VERY annoyed with my IMAC G5. This was supposed to be the more User Friendly machine and I am finding it INFINITELY more difficult to use than the PC.... FAXING happens to be one of the MOST IMPORTANT functions for business use of Computers. Wit
-
Content in sent items not displaying content but recipient having full contents
Hi Some users having issue while sending mails to recipients, Full contents not showing in users sent items, recipients receives full content in items, some times subject not showing, what could be the issue, please support. Thanks is advance.
-
Why does my 8GB Ipod Touch have Voice Memos?
Why does my 8GB Ipod Touch have Voice Memos? According to Apple's manual the Voice Memos will only work on the 32GB Ipod Touch. The old 8GB does not have a microphone.
-
N900 - "public user name" in sip settings!
on symbian n95/n82 phones: sip settings: there is a field "public user name". the info there is what the caller id sends to the receiver of the call. so i had "sip:[email protected]" (nonoh is my voip service and my mobile is registered with them) an