Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Windows Forms / WinForm General / March 2006

Tip: Looking for answers? Try searching our database.

One form calling another form

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
esperanza - 01 Mar 2006 18:22 GMT
Hello dotnet expert,

this method never exit.

It call frm.show without exiting the sub.

Any Idea ??

Thanks in advance !

Private Sub TimerReminder_Tick(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles TimerReminder.Tick

If chkReminder.Checked = True Then

dsReminder.Clear()

dsReminder =
objAppointments.loadAppointmentsToBeReminder(System.DateTime.Today.ToString(
))

Dim SelRow As Integer

Dim SelCol As Integer

Try

For SelRow = dsReminder.Tables("Appointments").Rows.Count() - 1 To 0 Step -1

Dim frm As frmAlarm = New frmAlarm

frm.lblClient.Text =
dsReminder.Tables.Item(0).Rows(SelRow).Item("Client").ToString()

frm.lblDoctor.Text =
dsReminder.Tables.Item(0).Rows(SelRow).Item("Doctor").ToString()

frm.lblTel.Text =
dsReminder.Tables.Item(0).Rows(SelRow).Item("Tel").ToString()

frm.lblDate.Text =
dsReminder.Tables.Item(0).Rows(SelRow).Item("Dates").ToString()

frm.lblDescription.Text =
dsReminder.Tables.Item(0).Rows(SelRow).Item("Description").ToString()

frm.Show()

If SelRow = 0 Then

Exit Sub

End If

Next

Catch ex As Exception

MessageBox.Show(ex.Message)

End Try

End If

End Sub
Brian - 02 Mar 2006 16:59 GMT
What happens in frmAlarm_Load?  The calling thread will block until
_Load returns.

BugSentry needs beta testers!
<a href="http://www.bugsentry.com">www.bugsentry.com</a>

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.