I have a list form and a detail form .
Before, I open the List form, use form.showDialog (),then I click List Item
and open the Detail Form by form.show().
now , user need when the list form show, auto open the first Item Detail .
I add detail form.show() in list form.form_load event , but problem.
some idea?? help me 3 4024
yzi,
Can you show a piece of code there are thousands of possibilities to show
forms
Cor
"yzi" <yz*@discussion s.microsoft.com >
.... I have a list form and a detail form .
Before, I open the List form, use form.showDialog (),then I click List Item and open the Detail Form by form.show().
now , user need when the list form show, auto open the first Item Detail .
I add detail form.show() in list form.form_load event , but problem.
some idea?? help me
like this
'' Module1.vb
.........
Public Sub main()
Dim frm As New Form1
frm.ShowDialog( )
End Sub
.........
'' Form1.vb
..........
Private Sub Form1_Load(ByVa l sender As System.Object, ByVal e As
System.EventArg s) Handles MyBase.Load
Dim frm As New Form2
frm.Show()
End Sub
............
Form2.vb
...............
...............
I need Form1 and Form2 all working.
"Cor Ligthert" wrote: yzi,
Can you show a piece of code there are thousands of possibilities to show forms
Cor
"yzi" <yz*@discussion s.microsoft.com > ....I have a list form and a detail form .
Before, I open the List form, use form.showDialog (),then I click List Item and open the Detail Form by form.show().
now , user need when the list form show, auto open the first Item Detail .
I add detail form.show() in list form.form_load event , but problem.
some idea?? help me
Yzi,
When you delete this part
\\\\ '' Module1.vb ........ Public Sub main()
Dim frm As New Form1 frm.ShowDialog( ) End Sub ........
///
And set in the solution properties the startup back to form1.
Than they both are active,
And although I find it not the best way to go, you can to learn create in
form2
Public frm1 as form
And in form1 '' Form1.vb
private frm2 as Form2 Private Sub Form1_Load(ByVa l sender As System.Object, ByVal e As System.EventArg s) Handles MyBase.Load
frm2 = New Form2
frm2.Frm1 = me frm2.Show()
End Sub ...........
You can than even communicatie between the two
In form1 is form2 than frm2
In form2 is form1 than frm1
I hope this helps?
Cor This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Legendary Pansy |
last post by:
Hello, I'm trying to accomplish the impossible by trying to do something equivalent of this example found here
http://www.c-sharpcorner.com/Code/2003/Dec/DialogTutorial.as
Starting with "Listing 2 - Changing the constructor of the modeless dialog to accept the parent object:" line and go onwards is what I'm trying to do
Basically, there is...
|
by: KenR |
last post by:
When I create a form (Dim f as New Form1) and try to
display it using the f.Show method, the form shows, but no
controls do. I have a textbox and a progressbar on the
form.
It displays fine using f.ShowDialog, but I need the form
to be modeless.
|
by: jy836 |
last post by:
I'm trying to load a form from the Sub Main procedure in a module (I set Sub
Main as the startup object). I have this line in the declarations section:
Public MnFrm As New MainForm
In the Sub Main procedure, I have this line:
MnFrm.Show()
But when I run the program, the form displays itself for a short second or
|
by: ed |
last post by:
Hi I can't seem to make the Me.Show() work
My code is
dim dlgresult as dialogresul
dlgresult=me.show(
The message is : "expression does not produce a value
|
by: proit_123 |
last post by:
I am working on a windows forms application and have the following
requirement.
· I need to display a modeless dialog from the main form.
o This allows user to continue to work with the application.
o For the sake of example, the user could launch the modeless dialog
from Form A and navigate to a Form B in the main window.
· When the...
| |
by: proit_123 |
last post by:
I am working on a windows forms application and have the following
requirement.
I have two projects in my application Project A and Project B. And
Project A has the reference of Project B. I need to display a modeless
dialog from the main form which is in Project A and the modeless dialog
to be raised is in Project B. After closing the...
|
by: PGP |
last post by:
Sorry i asked the same question yesterday but did a bad job on describing
the issue so here is a better description.
This is in .NET Compact Framework.
I have a form which creates modeless forms using code like
Form frm = new Form1() ;
frm.Show() ;
|
by: Ralstoj |
last post by:
Hi
I am programing in Autocad with VB
Autodesk have not given users access to new note function in Autocad CIVIL3d API. I am trying to work round this by creating notes using the sendkey command in Vb. I can get the add note dialog box to come up ok but it does not have focus as I believe it is a modeless dialog box as it gets focus when...
|
by: sree1981 |
last post by:
Hello sir,
I am developing an application in vb.net. It involves the creation of a modeless form. We need to interact with the aplication window when the form is open. TopMost property sets to True gives the form on top of application. But the form is open and top on other applications also. How to set the modeless form to be open and on top of...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
| |
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |