What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Skype & Technology » Tech Talk » Visual Basic 2008 - Reloading/Refreshing Same form

Visual Basic 2008 - Reloading/Refreshing Same form
Author: Message:
BV
New Member
*

BV

Posts: 1
Joined: Feb 2013
RE: Visual Basic 2008 - Reloading/Refreshing Same form
Hi in case your still interested in finding the solution for this.

This is what worked for me.

I needed to refresh the data that the form has, but the microsoft refresh button is not doing the trick, so here is what i did:

I created a sub procedure called "loadReport", which must happen at form load, and on click event of refresh button.

Here is how my code looks like:

Private Sub loadReport()
        Try
            'TODO: This line of code loads data into the 'myDataSet.Events' table. You can move, or remove it, as needed.
            Me.EventsTableAdapter.Fill(Me.myDataSet.Events)
            'TODO: This line of code loads data into the 'myDataSet.eventtable' table. You can move, or remove it, as needed.
            Me.eventtableTableAdapter.Fill(Me.myDataSet.eventtable)
            ' Me.EventsTableAdapter.Fill(Me.myDataSet.Events)
            Me.ReportViewer1.RefreshReport()
        Catch ex As Exception
            MsgBox(ex.Message)
        End Try
    End Sub

Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
'       Call the sub procedure on form load
        loadReport()
    End Sub

Private Sub btnRefresh_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnRefresh.Click
        'Call the sub procedure on refresh button
        loadReport()
    End Sub;)
02-08-2013 08:59 AM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Visual Basic 2008 - Reloading/Refreshing Same form - by Quantum on 12-14-2008 at 06:31 PM
RE: Visual Basic 2008 - Reloading/Refreshing Same form - by Stigmata on 12-14-2008 at 07:33 PM
RE: Visual Basic 2008 - Reloading/Refreshing Same form - by Quantum on 12-14-2008 at 08:27 PM
RE: Visual Basic 2008 - Reloading/Refreshing Same form - by vaccination on 12-14-2008 at 08:44 PM
RE: Visual Basic 2008 - Reloading/Refreshing Same form - by Quantum on 12-14-2008 at 08:50 PM
RE: Visual Basic 2008 - Reloading/Refreshing Same form - by Stigmata on 12-14-2008 at 08:54 PM
RE: Visual Basic 2008 - Reloading/Refreshing Same form - by vaccination on 12-14-2008 at 09:06 PM
RE: Visual Basic 2008 - Reloading/Refreshing Same form - by Quantum on 12-14-2008 at 09:59 PM
RE: Visual Basic 2008 - Reloading/Refreshing Same form - by Stigmata on 12-14-2008 at 10:01 PM
RE: Visual Basic 2008 - Reloading/Refreshing Same form - by Quantum on 12-14-2008 at 10:17 PM
RE: Visual Basic 2008 - Reloading/Refreshing Same form - by Stigmata on 12-14-2008 at 10:20 PM
RE: Visual Basic 2008 - Reloading/Refreshing Same form - by Quantum on 12-14-2008 at 10:21 PM
RE: Visual Basic 2008 - Reloading/Refreshing Same form - by Stigmata on 12-14-2008 at 10:26 PM
RE: Visual Basic 2008 - Reloading/Refreshing Same form - by Quantum on 12-14-2008 at 10:30 PM
RE: Visual Basic 2008 - Reloading/Refreshing Same form - by vaccination on 12-15-2008 at 10:06 AM
RE: Visual Basic 2008 - Reloading/Refreshing Same form - by Quantum on 12-15-2008 at 05:56 PM
RE: Visual Basic 2008 - Reloading/Refreshing Same form - by Ezra on 12-15-2008 at 07:14 PM
RE: Visual Basic 2008 - Reloading/Refreshing Same form - by pillowmurder on 01-10-2009 at 03:43 AM
RE: RE: Visual Basic 2008 - Reloading/Refreshing Same form - by andrewdodd13 on 01-10-2009 at 11:48 AM
RE: Visual Basic 2008 - Reloading/Refreshing Same form - by BV on 02-08-2013 at 08:59 AM


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On