473,513 Members | 2,492 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

how to load MDI form?

1 New Member
hi

plz help me out with this question. i have created a login form in vb.net 2003 when the user gives the user name and the password, the main MDI form should be loaded. how can i do this?
Nov 27 '07 #1
4 1199
mzmishra
390 Recognized Expert Contributor
Just create an instance of the form and show it;
Nov 27 '07 #2
debasisdas
8,127 Recognized Expert Expert
Create an instance of the main form and use the show mwtthod to display that
once the login is successful .
Nov 27 '07 #3
kpoonam
3 New Member
hi try this..................


Expand|Select|Wrap|Line Numbers
  1. Dim c As String
  2.             s = "select pass from emplogin where username='" & cmblogin.Text & "'"
  3.             com = New OleDbCommand(s, con)
  4.             con.Open()
  5.             dr = com.ExecuteReader
  6.             While dr.Read
  7.                 c = dr(0)
  8.             End While
  9.             con.Close()
  10.             If txtpass.Text = c Then
  11.                 Me.Close()
  12.                 Dim f As New frmmdi
  13.                 f.Activate()
  14.                 f.mnulogin.Visible = False
  15.                 f.mnumaster.Enabled = True
  16.                 f.mnutranscation.Enabled = True
  17.                 f.mnufinance.Enabled = True
  18.                 f.mnureports.Enabled = True
  19.             Else
  20.                 MsgBox("Invalid Password")
  21.             End If
Nov 27 '07 #4
praveenrajb01
2 New Member
Hi,

just type like this

dim Mdi as new MDIform
Mdi.show


here MDi is name of the reference (you can give any name
MdIform is your MDI form
Nov 27 '07 #5

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

Similar topics

6
17047
by: Matthew Wells | last post by:
I am trying to load a form (load Me) without the form becoming visible. If I try me.hide or me.visible = false, they load the form and the form blinks before becoming invisible. Is there a way to...
9
21628
by: John Kirksey | last post by:
I have a page that uses an in-place editable DataGrid that supports sorting and paging. EnableViewState is turned ON. At the top of the page are several search fields that allow the user to filter...
0
2500
by: Frank 'Olorin' Rizzi | last post by:
Hello everyone. This is quite convoluted, but I'll try to make it simple. I have a couple of bottom-line questions (I guess): 1~ what happens between the Page_Load routine in the code behind...
6
6640
by: Tom | last post by:
Is there ANY easy way to close a MDI Child form in the middle of it's load? For instance, during the Load event I find a need to close the form (for whatever reason - maybe the user isn't ready for...
3
2714
by: Dennis | last post by:
I have the following code for showing a form: dim frm as new myForm frm.ShowDialog (The Form Load Event is fired then I hide the form using Me.Hide when the X in the UR corner is clicked). ...
2
2007
by: **Developer** | last post by:
I have a Form (FV&C) containing a userconrtrol (CF&E) I do a ShowDialog for the form and the form's Load calls a method of the UserControl. The first time I do this the usercontrol appears on...
6
2141
by: tony | last post by:
Hello! When exactly is it important or advisable to use this form load event handler compare to using the C-tor. For example here I create an event handler called dataBoundGridForm that is...
2
2929
by: Franky | last post by:
Threre is a Form containing a usercontrol In the form's Load event it references a usercontrol property, say, zz The first showdialog(formx) causes 1 usercontrol_load event 2 form_load event...
10
15302
by: sara | last post by:
Hi - I have been struggling with solution ideas for this now for almost 2 weeks, and have not been able to figure this out. I have a user who creates a Purchase Order (tblPOData). In some...
9
18003
by: RvGrah | last post by:
I'm completely new to using background threading, though I have downloaded and run through several samples and understood how they worked. My question is: I have an app whose primary form...
0
7384
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,...
0
7539
jinu1996
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...
1
7101
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...
0
7525
tracyyun
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...
0
5686
agi2029
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,...
1
5089
isladogs
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...
0
4746
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...
0
3222
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
802
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.