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

Help with Visual Studio & opening windows with buttons

Hello,

I am new to Visual Studio and VB and am stumbling along but have hit a roadblock. I am attempting to build a very basic database application that needs to 1) allow input & manipulation of data into a table via a small interface and 2) output data to a report and allow for printing. My goal is to help with uniform ordering for the kitchen staff at the restaurant at which I work.

Thusfar I have created Uniform_Order_App.vb, which builds successfully and functions properly (i.e., allows input, stores data in the table properly, and saves new entries). This Uniform_Order_App form contains several fields and a button. This button is from whence my problems stem! I have also created UniformReport.rdlc (which I suppose will show me the data I have input in the layout I have specified). I have also created a windows form and dropped a ReportViewer into it. I have named this form ReportViewerX.vb and have left it unchanged from the defaults set up by Visual Studio. The code for that form is here:
Expand|Select|Wrap|Line Numbers
  1. Public Class ReportViewerX
  2.  
  3.     Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
  4.         'TODO: This line of code loads data into the '_uniform_order_backwards_compatable_DataSet.Order_Sheet_1' table. You can move, or remove it, as needed.
  5.         Me.Order_Sheet_1TableAdapter.Fill(Me._uniform_order_backwards_compatable_DataSet.Order_Sheet_1)
  6.  
  7.         Me.ReportViewer1.RefreshReport()
  8.     End Sub
  9. End Class
  10.  
The aforementioned button,Button1, is supposed to open the ReportViewerX form, but it fails to do so. I don't particularly care if the Report opens in the same window as the interface or in a new window.

I have tried using the following code

Expand|Select|Wrap|Line Numbers
  1. Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
  2.  
  3.         Dim ReportViewerX As New Form
  4.         Me.ActivateMdiChild(WindowsApplication1.ReportViewerX)
  5.  
  6.  
  7.     End Sub
  8.  
as suggested by one of the posts that I read, but nothing happens when I click the button. I have tried a few other things (which ones, I must admit I have forgotten).

Am I on the right track, or am I way off base? Any help would be greatly appreciated. I am in no real hurry and am willing to try whatever suggestions you may have.


Thank you in advance!
Apr 3 '07 #1
1 1365
I forgot to mention that it is Visual Studio 2005 that I am using...

Thanks again!

JFM
Apr 3 '07 #2

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

Similar topics

1
by: Jason Hickey | last post by:
Has there been a change in the way the UI designer handles winform inheritance in the 2003 version of visual studio. Consider the following (try it if you are using 2003 Everything seems to work...
4
by: Steve | last post by:
1) How can I perform backward search in editor of Visual Studio .NET? In VC++ 6.0 it was enough just to hold Shift button. This combination doesn't work anymore in Visual Studio .NET? 2) Each...
16
by: Jon Davis | last post by:
We ordered new systems with fast hardware and great specs, but Visual Studio takes longer to build a project than on the old workstation. Msbuild is faster, csc.exe is faster, file copy is faster....
16
Frinavale
by: Frinavale | last post by:
The following article is directed at people who are experiencing an HTTP/1.1 500 Internal Server Error while using Visual Studio 2003. The error message typically sounds something like: The web...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.