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

show hidden modal forms

2
how do i bring a hidden modal form on top while preserving the values entered in the fields?
Aug 29 '07 #1
3 1952
zorder for forms:

Expand|Select|Wrap|Line Numbers
  1. modalhiddenform.zorder
should bring it to the top.

the other issue with fields changing? has no bearing on the zorder. unless you coded it that way. show some code - maybe others will be able to fill in.
Aug 29 '07 #2
Killer42
8,435 Expert 8TB
Isn't it impossible for a modal form to be hidden? Or for a hidden form to be modal?
Aug 30 '07 #3
93RT6R
2
I have 2 forms, Form1 is a modal form. On click of a button i want to open Form2
Form1 code
With Form2
.CalledfromForm1 = True
Me.Hide
.Show
.ZOrder
End With


On close of Form2 i want to show the hidden modal form with all the values entered in the textboxes intact...
Form2 code
Private Sub cmdClose_Click()
If CalledFromForm1 = True Then
CalledFromForm1 = False
Form1.Show
End If
End Sub

This doesnt seem to be working!! the form opens but the values in the textboxes are lost. Do you know if there is any property i have to set or something? ZOrder doesnt seem to work either!!!


zorder for forms:

Expand|Select|Wrap|Line Numbers
  1. modalhiddenform.zorder
should bring it to the top.

the other issue with fields changing? has no bearing on the zorder. unless you coded it that way. show some code - maybe others will be able to fill in.
Sep 3 '07 #4

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

Similar topics

3
by: dp | last post by:
I am new to VB.NET and I have a simple question. How do I show a form from a command button click event? The code I have below is not working. I am trying to show the form frmAgent. What am I...
13
by: genetic.error | last post by:
I'm moving from Vb6 to VB.Net. I have a feeling this has come up before... The VS.Net MSDN file seems to state that the following should work: Form1.Show Form1.Visible = True Form1.Hide...
9
by: sergio | last post by:
Hi all, I have created the following script that will show/hide a menu based on checkboxes. It works fine in Opera but not on IE6! Does anybody knows a workaround this problem? Thanks for your...
5
by: Eugene Turin | last post by:
Hi people. I have a question - how to show existnig form? I create two forms: Form1 and Form2 in designer. I place a button on Form1 and I want to call a Form2 (better in modal mode!). It's...
1
by: MSDousti | last post by:
Hi all, I have written a program, which uses some threads. I call thread t from the main thread, and then after some work t must show a modal window.(e.g. a messagebox) but because t is not the...
8
by: Stephen Rice | last post by:
Hi, I have a periodic problem which I am having a real time trying to sort. Background: An MDI VB app with a DB on SQL 2000. I have wrapped all the DB access into an object which spawns a...
36
by: OldBirdman | last post by:
I want a form that is Modal, PopUp, and Dialog, but that is hidden most of the time so that the fields are available to the code of my other forms. Modal means that only the form can have control,...
2
by: hapnendad | last post by:
I am using a selection_change event on a worksheet to launch a userform that will populate the cell when a selection is made from a drop down list box on the form. Selection_change shows form if cell...
2
by: diogenes | last post by:
I have created many shortcut/popup (aka context, or right-click) menus for my application - instead of toolbars or standard drop-down menus. Within my custom menu, I am using...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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:
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...
0
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,...

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.