473,405 Members | 2,261 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,405 software developers and data experts.

Working With Forms in vb.net

Hi guies

I am a biginner in vb.net but i have worked in vb 6.0.

I am facing problem in displaying and closing form.

In my project I have
(1) one base Module basMain, also startup of my application.
(2) frmBackground
(3) frmLogin
(4) frmMain

I want to do the following :

Application will start from basMain & basMain will Display
frmBackground.
From frmBackground I want to show frmLogin. and if VAlid Username &
password then I want to close frmBackground & frmLogin and want to
Display frmMain & application should be continue & working.

I have tried in vb 6.0 style but i am getting problem my application
ends.

Pl. help me out.

Thank you.
-Miku
Nov 20 '05 #1
2 1211
Cor
Hi Miku,

I see all old VB6 people who in this group use the method as you tell.

I do just make a form1 as a main form and do everything from it

As sample the code below the form 2 is something more code than needed, but
this looks nice.

But I am almost sure that you will get today samples with an
applicationstart in a startmodule also, because for that are almost always
about 4 the basicly the same solutions provided.

I hope this gives you than an alternative idea?

Cor

\\\\form1
Private Sub Form1_Load(ByVal sender _
As Object, ByVal e As System.EventArgs) _
Handles MyBase.Load
Dim frm As New Form2
frm.ShowDialog()
frm.Dispose()
End Sub
///
\\splash screen form2
ByVal e As System.EventArgs) Handles MyBase.Load
Label1.Text = "High I Am Here"
timer1.Enabled = True
timer1.Interval = 25
Me.Opacity = 0
Me.Text = "Splash"
End Sub
Private Sub Timer1_Tick(ByVal sender As System.Object, _
ByVal e As System.EventArgs) Handles timer1.Tick
Me.Opacity += 0.01
If Me.Opacity = 1 Then
Me.Close()
End If
End Sub
////

I am a biginner in vb.net but i have worked in vb 6.0.

I am facing problem in displaying and closing form.

In my project I have
(1) one base Module basMain, also startup of my application.
(2) frmBackground
(3) frmLogin
(4) frmMain

I want to do the following :

Application will start from basMain & basMain will Display
frmBackground.
From frmBackground I want to show frmLogin. and if VAlid Username &
password then I want to close frmBackground & frmLogin and want to
Display frmMain & application should be continue & working.

I have tried in vb 6.0 style but i am getting problem my application
ends.

Pl. help me out.

Thank you.
-Miku

Nov 20 '05 #2
* mi*************@yahoo.com (Miku) scripsit:
I am a biginner in vb.net but i have worked in vb 6.0.

I am facing problem in displaying and closing form.

In my project I have
(1) one base Module basMain, also startup of my application.
(2) frmBackground
(3) frmLogin
(4) frmMain

I want to do the following :

Application will start from basMain & basMain will Display
frmBackground.
From frmBackground I want to show frmLogin. and if VAlid Username &
password then I want to close frmBackground & frmLogin and want to
Display frmMain & application should be continue & working.

I have tried in vb 6.0 style but i am getting problem my application
ends.


"Post your code."

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
Nov 20 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Mikael Östberg | last post by:
Hello all! I have been working on a project for some time now and yesterday, my debugger stopped working. It is a class library which I run from a Win32 test app, so no IIS involved at this...
13
by: Lee | last post by:
Hello All, First of all I would like to say thank you for all of the help I have received here. I have been teaching myself Access for about 4 years now and I've always been able to find a...
2
by: Gary | last post by:
I am trying to use the "System.Windows.Forms.SendKeys" class for triggering the Ctrl+P key. Syntax: System.Windows.Forms.SendKeys.Send("^(P)"); This is not working ..what could be the...
5
by: Brian | last post by:
Hello all.. Am working on an Air Hockey game... have an table loaded into a picture box. The borders of the table are slightly slanted. Am using hit testing lines with GDI+ to manipulate the...
5
by: Jeff Johnson | last post by:
I'm using forms authentication to protect a subfolder within my site. I've got it working fine except for two issues: (1) When I do a RedirectFromLogin page I have to put a cookie path ("/"...
6
by: Gary | last post by:
Hi, I am trying to use the "System.Windows.Forms.SendKeys" class for triggering the Ctrl+P key. Syntax: System.Windows.Forms.SendKeys.Send("^(P)") This is not working ..what could be the...
36
by: AussieRules | last post by:
Hi, I want to use the user color scheme to set the color of my forms. I now I have to use the. System.Drawing.SystemColors, but which color is the color of a form background as used in other...
1
by: harinathch | last post by:
Hi, Iam working with myapplication.exe.config file in my vb.net windows application.Its working fine in my development environment. When i test this application in some other machine using exe and...
4
by: Michael | last post by:
Hi Everyone, I'm hoping someone out there can give me some guidance. I'm currenlty using VS2005 and the other day the Form Wizzard stopped working. What I mean, is that the wizzard no longer...
0
jas16183
by: jas16183 | last post by:
Hi Guys, need some help here, Im working on a project in vb.net, the problem im facing is that my tableadapter.update(dataset.datatable) is not functioning, the datatable has a relation with...
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...
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...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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,...
0
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
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
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,...

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.