MDI FORM
Hi,
In the beginning I'm Sorry as i didnt know where is the right place in the forum to post this thread...
I developed an application using forms 6i, I wanted to know if there is a way to detect when the user clicks on close control of the MDI window because i want to show some warning before closing the application.
Also i wonder if it is possible to hide control buttons (close,maximize/restore,minimize) for my module (FORM) window ??
Thanks a lot
LoveSoul
Love Soul wrote:
Hi,
In the beginning I'm Sorry as i didnt know where is the right place in the forum to post this thread...
I developed an application using forms 6i, I wanted to know if there is a way to detect when the user clicks on close control of the MDI window because i want to show some warning before closing the application.
Also i wonder if it is possible to hide control buttons for my module (FORM) window ??
Thanks a lot
LoveSoulHi
1.pls check the properties of ur form window
2.another option to use when manupalating the windows property programatically is to use
IF UR_CONDITION THEN
SET_WINDOW_PROPERTY(Forms_MDI_WINDOW, WINDOW_STATE, MAXIMIZE);
SET_WINDOW_PROPERTY('window1', WINDOW_STATE, MAXIMIZE);
ELSE
SET_WINDOW_PROPERTY(Forms_MDI_WINDOW, WINDOW_STATE, MAXIMIZE);
SET_WINDOW_PROPERTY('window1', WINDOW_STATE, MAXIMIZE);
END IF;u can hide & DISPLAY the canvas
SHOW_VIEW('CANVAS_NAME');
HIDE_VIEW('CANVAS_NAME');the window as WELL
SHOW_WINDOW('WINDOW_NAME');
HIDE_WINDOW('WINDOW_NAME');Using this depends on ur requirement of the restriction u want to force the user to use as u can use
KEY-EXIT TRIGGER or WHEN-WINDOW_CLOSED before existting the app.
Hope this helps...
Regards,
Abdetu...
Similar Messages
-
MDI form feature in JDeveloper 10.1.3
It's nice to see that you provide MDI form feature now for JClient in JDeveloper 10.1.3. Actually, you are having an even more powerful rich client framework that is quite more useful than MDI, witch is already available in your inventory. That is the doctable framework you are using for JDeveloper itself. Some IDE provider releases, or partially releases their source environment. Do you have any plan to release that also? That will make JClient users extremely happy :-)
Charles,
we are currently evaluating this option but have made no decision yet.
Frank -
How to create MDI form in flex4 ?
Hi to all .....i am new to this flex world i am trying to create MDI form can any one help me pls if u have samll program pls send me with full runnable source. pls help me
Thanks for you answer.
However that will not accomplish what I need.
if i am validating an item code of sales order matrix
so i have code behind the validate event
The inputs that i will get from the modal form will determine wheather I should accept the value of the itemcode entered or not to accepts
In other words. wheather to set bubbleevent = false or to true.
your Idea will not make the validate event to wait until the modal form close
So if I open the module form on the validate event, the form will open and the validate event will terminate and the bubbleevent will true. therefore the itemcode value entered is accepted.
Sincerely yours
Riade Asleh -
1)I have about 13 forms that I want to have an MDI container for, how do I create MDI form in 9i?
2) How can I append my own menu to the default menu?
Thanks
MohammedTo get a really speedy response you should probably address Forms questions to the appropriate forum Forms.
Anyway, my Forms is a little rusty, but I seem to recall that there is a Forms level property for determining the use of MDI or SDI. Can't remember what it's called, but a couple of seconds staring at the Form level property inspector and you should be able to spot it. Alternatively Forms Builder does come with some good help text.
Cheers, APC -
Remove the ORACLE Logo in my MDI form
Dear Friends,
<p>In my MDI form eventhough I give null for my menu Form module property, I'm getting menu with Window displayed and also the ORACLE Logo as below. I don't want this to appear. What I should do to make it disappear? I'm using Forms 10g Application server to run my forms. </p>
<IMG SRC="C:\Documents and Settings\Administrator.PROJECTSQL\My Documents\My Pictures\myform1.jpg"></IMG>
<p> Thank you in advance </p>
<p> Regards </p>
<p> Senthil .A. Perumal. </p>Dear Friends,
<p>I finally got it corrected without setting useSDI = yes property. Actually what I did was - just created a dummy menu with only one menu item in it and with the following menu item properties set to that menu item and attached with the login screen.</p>
<p>Menu item type = Magic</p>
<p>Magic Item = Window</p>
<p>Command Type = Null</p>
<p>Visible in Menu = No</p>
<IMG SRC="C:\Documents and Settings\Administrator.PROJECTSQL\My Documents\My Pictures\myform2.jpg"></IMG>
<p> <h1> Wish you a Very Happy New Year 2006 </h1> </p>
<p> Regards, </p>
<p>Senthil .A. Perumal. </p> -
Icon in MDI form window...
Hi There,
I am using developer 6i, I want to know an easy way how to hide default Oracle runtime icon in menu and MDI window at runtime. OR if possible can i give icons of my choice both in Menu runtime and in MDI window.
please help! Thanks!
Imran
[email protected]The d2kwutil add-on has a function to change the MDI window icon to your own icon
http://otn.oracle.com/software/products/forms/files/d2kwutil/d2kwutil_6_0_6_0.zip -
Dear Forum
help me!
i am new user of jdeveloper so, i want to know Multiple
document Form(MDI) facility in the jdevelper.Tell me how can perform this task.
javedYou should have a look at the Java API documentation for JDesktopPane and JInternalFrame
Alternatively, there's a Swing tutorial over here: http://java.sun.com/docs/books/tutorial/uiswing/components/internalframe.html -
Need Multiple Instance of MDI Form, Possible ?
Hi,
I have a button in outlook, that when clicked runs an Winforms application as addin. The app has main MDI window and uses lots of .xsd files (Typed Datasets) for database activity.
I have a situation where we want to shift all 2014 data into and as OLD database and only 2015 onwards records with be in current database. But we also want users to view old data.
The immediate thought with minimum changes is that if we can create two instance of MDI Window (Running separately from each other in process ) then both can have different connection strings and program will run as usual getting data
from respective database.
Note: Connection strings are defined in and as global::AppName.Properties.Settings.Default.cnn and same is used everywhere in the code including .xsd files (Typed Datasets)
Any Guidance or Better Thoughts to achieve the task.
RegardsThanks Phill for the response.
But in both of the techniques I will have to modify the code (SQL) at many places and do round of testing.
Its a 4yr old code and not everything is in stored procedures, some are dynamic sql coming from code etc etc.
Another factor which I forgot to mention was that we want to Re-numbering/Restart of all AutoIncrement Fields.
This might be in conflict with either of your suggestions.
if it was just WinForms application, I think it would be easy to run multiple instance. but in my case its an outlook addin. My view is somehow if it is possible to manipulate and spawn two instance running as different process, that it would be awesome.
Any thoughts ?
Regards
Hello,
a. >>But in both of the techniques I will have to modify the code (SQL) at many places and do round of testing.
b. >>Its a 4yr old code and not everything is in stored procedures, some are dynamic sql coming from code etc etc.
c. >>Another factor which I forgot to mention was that we want to Re-numbering/Restart of all AutoIncrement Fields.
From these words above, it seems that you didn't want to edit the current form, and want to copy that and edit it to display the old data, and do some other modifications, right?
We could create another form and copy all controls and code from the main form, and edit them to display the old data by changing the connection string, but it still needs us modify the code at many places.
We could create another instance of the main form, and get that displayed, but it will still display the same data unless we changing the connection string and query.
To sum up, no matter which way we selected, it still needs us to edit the code include query and connections strings at many places.
>>if it was just WinForms application, I think it would be easy to run multiple instance. but in my case its an outlook addin. My view is somehow if it is possible to manipulate and spawn two instance running as different process, that it would
be awesome.
The key issue is that where did you display these data, you want to display them inside the form, right?
Inside the button click event of that add-in, you could show multiple window forms, one for old data, the other for 2015 data, they will not disturb each other.
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. -
we wants to use mdi application But with open_form, call_form or
new_form it is not possible.
if we save record in one form then it try to save records of
all opened forms and gives an error "if there are any intigrity
Constraint" .
We don't want to use open_form with new session
because it occupies more resources.Hi Haishai
Thanks for replyin,
Create two panels. Use border Layout for contentPane() .
panel1 in CENTER panel2 in SOUTH. panel1 contains desktoppane, panel2 contains status bar & progress bar. right
I have done it already.
1) Within panel1 I am displaying JInternal frame
2) In panel2 I have created status bar
But my problem is :
1) Progress Bar should be display in status bar.
2) Functionality of progress bar should take place in JInrenalFrame
Can I use Progress Bar Object which has been created in desktop Pane(), & progress bars value should be changed in JInrenalFrame.
Is it possible?
Thanx in advanced.
Message was edited by:
jay.D -
Dear Seniors,
I am new to java, I am trying to develop my 1st simple java app using NetBean 6, I have created a MDI form using Swing GUI Forms -> MDI application sample form..
I also have created a simple form using JFrame, how to make it as MDI child form?
please help
Thanks a lot in advancemy 1st simple java appYou are simply in over your head. Go back to the shallow end of the pool. Slip on some floaties...
http://java.sun.com/docs/books/tutorial/
Seriously dude, swing ain't simple, with or without a smartypants GUI building IDE. -
Hi all
May i know how to create MDI in Forms 6i....
I have read on basic documentation that MDI Forms Windows is probably not displayed on Object navigator etc.
Kindly let me know the procedure on how to create the MDI Form Window
Please tell me some links for Advanced Documentation concepts as well
i shal be highly thankful to you ..
I have posted a thread regarding the Size and display of Window..
is is that Nobody has worked on that ...
Thanx alot to all of you ..
BRHi,
Source: Metalink
Note:73444.1
Subject: How to Control Windows Programatically in Forms?
Bookmark Go to End
Doc ID: Note:73444.1
Subject: How to Control Windows Programatically in Forms?
Type: BULLETIN
Status: PUBLISHED
Content Type: TEXT/X-HTML
Creation Date: 29-JUL-1999
Last Revision Date: 29-OCT-2002
How to Control Windows Programmatically in Forms?
=================================================
This technical bulletin will cover the triggers and built-ins that you can
use to manage the properties and behavior of windows and canvases at run time.
We will learn how to:
-- create trigger code to interact with windows
-- control windows programmatically
This technical bulletin will discuss the following items in more details:
1) What are the window interaction triggers?
2) What are the common uses for these triggers?
3) How to keep track of the triggered window?
4) What are the Built-ins for manipulating windows?
5) What is the relationship between windows and blocks?
6) How to manipulate windows properties programmatically?
7) How to manipulate the MDI Application Window at form startup?
8) How to locate the cursor window?
9) How to show multiple windows?
10) How to cascade windows with context?
11) How to close windows?
12) Known bugs with windows tiggers
What are the Window Interaction Triggers?
=========================================
There are four window interaction triggers to provide extra functionality
whenever a user interacts with a window. These triggers should be defined
as the form level.
Trigger Characteristic
When-window-activated Fires when a window is made the active window.
Note that window activation can occur
independently of navigation.
When-window-deactivated Fires when a user deactivates a window by
setting the input focus to another window.
When-window-closed Fires when a user closes a window using a
window-manager-specific Close command.
When-window-resized Fires when a window is resized, either by
the user or through a trigger. It also fires
at form startup, but not when a window is made
into an icon.
What are the Common Uses for These Triggers?
============================================
Trigger Use
When-window-activated Enforces navigation to a window; captures
initial window properties; keep track of most
recently fired window triggers.
When-window-deactivated Deactivates a window.
When-window-closed Closes a window.
When-window-resized Maintains visual standards; captures window
properties; audit actions of an operator; set
input focus in an item in target window.
Additional documentation and examples can be found in the Forms Online Help.
How to Keep Track of the Triggered Window?
==========================================
The :SYSTEM.EVENT_WINDOW system variable contains the name of the
last window for which a window interaction trigger fired. You can use this
system variable to perform different actions for different windows in your
window interaction triggers.
What are the Built-ins Used for Manipulating Windows?
================================================
Built-in Description
Find_window Returns the internal window ID(of datatype
WINDOW) of a window with the given name.
Get_window_property Returns the current value of the specified
window property for the given window.
Hide_window Hides the window
Move_window Moves the window to the location specified by
the given coordinates.
Resize_window Changes the window to the specified width and
height.
Set_window_property Sets the specified window property for the given
window to a specified value.
Show_window Makes the window visible at the current or
specified display position.
ID_Null Returns a BOOLEAN value that indicates whether the
object ID is available.
Additional documentation and examples can be found in the Forms Online Help.
What is the Relationship Between Windows and Blocks?
=====================================================
Form builder processes many events based on blocks (and items), which can be
completely independent of windows (and canvases). Keep in mind the following
characteristics of windows and blocks:
Connection between windows and blocks:
-- A window can contain multiple canvases and multiple items can be located
on a canvas.
-- A block can contain multiple items and an item is located on one and only
one canvas (except for null canvas items).
-- A window can contain multiple blocks and the items in the block can be
located on several windows.
NOTE: In general, put blocks in separate windows. If blocks are closely
related (through a foreign key relationship), put them in the same window.
Window Activation and Block Navigation:
You can use the when-window-activated trigger to activate another window
automatically (we will see how we can do that later in this bulletin).
Transaction Management:
During commit processing, forms processes all base table blocks in sequential
order. Therefore, transaction management is block based rather than
window based. However, the user expects to interact with a form in a
window based way.
How to Manipulate Windows Properties Programmatically?
======================================================
You can use the window-interaction triggers and the built-ins for windows
to manipulate your windows (and the MDI application window on Microsoft
windows) at runtime.
How to manipulate the MDI Application Window at Form Startup?
=============================================================
The when-new-form-instance trigger below implements the following
functionality:
-- Maximizing the MDI application window.
-- Setting the window title of the MDI application window.
NOTE: The Forms MDI Window is only available for forms installed on MS Windows
and for web forms starting with Developer 6.0.
When-New-Form-Instance trigger at the Form Level
BEGIN
SET_WINDOW_PROPERTY(FORMS_MDI_WINDOW, WINDOW_STATE, MAXIMIZE);
SET_WINDOW_PROPERTY(FORMS_MDI_WINDOW,TITLE, 'ANY_TITLE');
END;
You can also maximize the MDI window application with the WINDOW_STATE
command line parameter:
f45run32 module=emp userid=scott/tiger@DB window_state=maximize
f50run32 module=emp userid=scott/tiger@DB window_state=maximize
ifrun60 module=emp userid=scott/tiger@DB window_state=maximize
NOTE: For web forms, place the as a parameter withing the serverArgs line in
the forms html. This is the line where the form module is specified.
How to locate the cursor window?
================================
The cursor may be located in an inactive window. In this case, you can use
the following GET_CURSOR_WINDOW function to find this window:
FUNCTION GET_CURSOR_WINDOW RETURN VARCHAR2 IS
BEGIN
RETURN (GET_VIEW_PROPERTY(GET_ITEM_PROPERTY(NAME_IN('SYSTEM.CURSOR_ITEM'),
ITEM_CANVAS),WINDOW1));
END;
How to Show Multiple Windows?
==============================
When using several windows, you should consider how to position them with
respect to each other and how to indicate the context in which a certain
window is displayed.
The following examples show a form based on dept for department table and
emp for employee table. The department block and employee block are located
in separate windows.
When-New-Form-Instance Trigger at the Form Level:
DECLARE
v_first_windowx number;
v_first_windowy number;
BEGIN
default_value('0', 'global.first_windowx');
default_value('0', 'global.first_windowy');
v_first_windowx := :global.first_windowx;
v_first_windowy := :global.first_windowy;
set_window_property('window1', position, v_first_windowx,
v_first_windowy);
--this is to locate window 2 in the right side of window1
set_window_property('window2', position, v_first_windowx + 300,
v_first_windowy );
show_window('window1');
END;
How to cascade windows with context?
=====================================
Create when-new-block-instance trigger on e.g. emp block
BEGIN
SET_WINDOW_PROPERTY('WINDOW2', TITLE, 'EMPLOYEE INFORMATION');
END;
How to Close Windows?
======================
Use the Close Menu Item on the system-menu box to provide the user with
a means for closing windows. Because there is no default behavior in forms
when a user chooses the Close Menu item, you must define a When-window-closed
trigger.
The following example shows a form based on dept and emp. The dept block
and emp block are located in separate windows.
When-Window-Closed Trigger at the Form Level:
BEGIN
IF :SYSTEM.EVENT_WINDOW= 'WINDOW1'
THEN
DO_KEY('exit_form');
ELSIF :SYSTEM.EVENT_WINDOW='WINDOW2'
THEN
HIDE_WINDOW('WINDOW2');
END IF;
END;
12) Known bugs with windows triggers
========================================
bug # abstract
944798 When-Window-Activated trigger does not fire returning from
called form; Fixed in Forms 6i
926729 When-Window-Activated trigger does not fire in Character mode
(Synchronize!!!); Fixed in Forms 6i
1089583 When-Window-Activated trigger not firing. Fixed in Forms 6i
750724 Trigger When-Window-Activated fires only once; fixed in 4.5.7.2.0
615132 Runtime: GPF raised by when-Window-Activated, When-Window-Closed,
etc.; Workaround: Set the maximum length of CONTROL.MSG to <= 32767
Fixed in Forms 6i
Cheers,
Monica -
Open form - close form problem
Hi. Using JDeveloper 10.1.3.3., ADF BC.
Simple, yet not so simple problem: I have two forms, Main and Detail (JFrame). Main form has menu item which I use to open Detail form:
try {
FormDetail frmDetail = new FormDetail();
frmDetail.setBindingContext(panelBinding.getBindingContext());
// center jframe, visible = true
showNewForm(frmDetail);
} catch (Exception ex) {
ex.printStackTrace();
} finally {
I want to create new instance every time I show Detail form. But I have problem closing detail form. Here is Detail constructor:
public FormDetail() {
addWindowListener(new WindowAdapter() {
public void windowClosing(WindowEvent e) {
dispose();
Here are actions:
1) start Main form
2) open Detail form
3) close Detail form
4) try to open Detail form - oracle.jbo.JboException 35001.
I've read about this error, but I don't know how to avoid it.
I cannot accept that I always have to use setVisible(true) and setVisible(false) on all my forms. There has to be a way to dispose of detail forms, and re-create them. Can someone please help?
Also, read article on Re: ADF-JClient bug
No solution thereI have looked at it before. I am not working with MDI forms, so I cannot apply this.
I found this article which could solve my problem, but I don't know how is "thedude" creating that Abstract class he was talking about...
Link: Re: how to release panelbinding correctly?
As I understood, I should release panel binding before I can release the form...
Default behavior of detail form's window listener is Exit(0). I want to reinstantiate form every time I open it. -
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. -
Problem when form is dynamically added in a tab page
Following is the requirement:
=> I placed a button on a tabPage of tabControl.
=> On click of a button,
1. I created a Control object.
2. I created a Form object.
3. Initialize the Form Object.
4. Initialize the Control object and add it under the Form Object.
5. Initialize the TextBox object and add it under Control. (Keep some multiline text in the textBox and make it Multiline)
6. Set form.TopLevel = False
7. form.Show
8. form.Parent = TabPage.
=> When i run the above application/form, the focusing works wierdly in the textBox. I am not able to guess what the issue is.
Any help will be appriciated. :)Following is the requirement:
=> I placed a button on a tabPage of tabControl.
=> On click of a button,
1. I created a Control object.
2. I created a Form object.
3. Initialize the Form Object.
4. Initialize the Control object and add it under the Form Object.
5. Initialize the TextBox object and add it under Control. (Keep some multiline text in the textBox and make it Multiline)
6. Set form.TopLevel = False
7. form.Show
8. form.Parent = TabPage.
=> When i run the above application/form, the focusing works wierdly in the textBox. I am not able to guess what the issue is.
Any help will be appriciated. :)
I don't know what initializing a control object and adding it under a formm object means. Or what initializing a textbox and adding it under control means.
Rather than setting a Forms parent as a tabpage somehow set the Form so toplevel = false and add the Form to a tab pages controls.
Even this is a poor way to do business. There's also such a thing as
MDI Forms. Although if you want controls on a Form then why not use controls with it? What would be a reason for creating separate Forms to place inside of tabpages? It sounds not well thought out design wise.
La vida loca -
Applicaiton form hangs when trying to make C# form visible from menu event
I have a MDI windows app, running as an addon on Verion 2007A
The applicaion is written in C# ( VS 2005)
I am a newbee to C# ( VS too ) as well.
All I want is to display the MDI container form when a menu is clicked. But the windows form hangs forever, and does not show.
if I try to show the form within Main method then no issues! The problem happens only off the SBO menu event .
I cannot have the form loaded all the time. so I need the services of the SBO menu click, so a user can open it whenever he wants.
Note: I can open any other form off the menu click, but that , provided they are not MDI containers and they are opened with ShowDialog(); If I use Show(); then again hangs.
I tried opening the MDI form in Main method, ( wich of course works) and hide it when not needed. I could hide the form, but when I issued a command myForm.visible = true; through the SBO menu event, again hangs!
my applicaion Main function is as follows. The class AA_SBO_MAIN holds the SBO application events.
static void Main()
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Classes.AA_SBO_MAIN oSBOMain = null;
oSBOMain = new Classes.AA_SBO_MAIN();
Application.Run();
the menu event simply does
frmMain fm = new frmMain();
fm.Visible = true;Hi
I try doing these few steps and it seems to work! The code is in Visual Basic though!
Declare the form variable
Private mMDI As New frmMDI
In your menu click event enter a code like this
If mMDI Is Nothing Then mMDI = New frmMDI
mMDI.Visible = True
On your startup function do something like this
Public Sub New()
mMDI.Show() : mMDI.Visible = False
End Sub
And more important ... in the form class comment all the code inside the Dispose method
and finally do the following
Private Sub frmMDI_Closed(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.Closed
Me.Hide()
End Sub
it seems to work for me . Hope it helps you too!
Maybe you are looking for
-
Adobe Camera Raw 6.7 Installation Failure
From Adobe Bridge CS5, I enter Help, then Updates. Adobe Application Manager informs me that I can update Adobe Camera Raw to 6.7. I click to install, the software is downloaded tha I get an Installation Failure message. When I click on 'Customer Sup
-
How to ignore a variable defined in a query when the query gets executed
Hi SAP guru, I am creating a query, which has a user input variable, say A, and a replacement path variable, say B, Bu2019s value is determined by A and the whole purpose of A is letting user entering an initial value and A must be ignored when the q
-
How to set up Query Logging in OBIEE 11g 11.1.1.6
Hi all, I couldn't find the option for setting up the query logging for testing and debugging purpose. Could anyone plz help me in this ... Regards, Arun
-
Unterschiedliche Texte bei Bildern
Wie kann ich unter Diashows unterschiedliche Texte zu denn einzelnen Bildern schreiben? Bei mir haben immer alle Bilder denn gleichen Text.
-
Server load balancing onto itself
hi I have a customer with 4710 that load balances inbound traffic onto 2 servers. this works There is also a requirement for the servers that are load balnced to [what seems to me ] to load balance onto themselves and for other server on the same vla