473,383 Members | 1,742 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,383 software developers and data experts.

MDI Application

12
Hi..

In an MDI Application, how to check whether a particular form is active or hidden??

Thnks & Rgds,
Rahna
Sep 14 '06 #1
1 1223
sashi
1,754 Expert 1GB
Hi there,

I assume you are talking about MDI child, kindly refer to below code segment, hope it helps you to get started with.

Expand|Select|Wrap|Line Numbers
  1. Option Explicit
  2. 'Array of the Child Form
  3. 'I used a child form with the name frmRe
  4. '     port
  5. Public Reports(0 To 5) As frmReport
  6. 'The Cap is a String Variable I use to S
  7. '     et
  8. 'the Caption of the Form
  9.  
  10.  
  11. Public Sub NewReport(Cap As String,)
  12.     'Creates an instances of the frmReport C
  13.     '     hild
  14.     Set Reports(0) = New frmReport
  15.     'Sets the Caption
  16.     Reports(0).Caption = Cap
  17.     'Shows the Form
  18.     Reports(0).Show
  19. End Sub
  20.  
  21.  
  22. Private Sub Command1_Click()
  23.     Dim Cap as String
  24.     Cap = "New Members Report"
  25.     call NewReport(Cap)
  26. End Sub
  27. 'If you Child Form(s) has a Text Box nam
  28. '     ed Text1 then you
  29. 'can print to it
  30. 'From anywhere in you program with this 
  31. '     code
  32. Reports(0).Test1.Text = "Hi "
  33. Reports(0).Text1.Text = Reports(0).Text1.Text & "There!!"
  34. 'You get the Idea
  35.  
Hi..

In an MDI Application, how to check whether a particular form is active or hidden??

Thnks & Rgds,
Rahna
Sep 14 '06 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

9
by: J. Baute | last post by:
I'm caching data in the Application object to speed up certain pages on a website The main reason is that the retrieval of this data takes quite a while (a few seconds) and fetching the same data...
3
by: Amit Dedhia | last post by:
Hi I am developing a Dot net application (involving image processing) on a uni processor. It works well on my machine. I then take all my code on a multi processor, build and run the application...
6
by: orekin | last post by:
Hi There I have been trying to come to grips with Application.Run(), Application.Exit() and the Message Pump and I would really appreciate some feedback on the following questions .. There are...
20
by: Peter Oliphant | last post by:
How does one launch multiple forms in an application? Using Photoshop as an example, this application seems to be composed of many 'disjoint' forms. Yet, they all seem somewhat 'active' in...
4
by: Dave | last post by:
I have a global.asax file with Application_Start defined and create some static data there and in another module used in the asp.net application and I realize that static data is shared amongst...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.