Search results for query: *

  • Users: johmolan
  • Content: Threads
  • Order by date
  1. J

    Refuses to load data from sql database

    I have a windows form application where I use an internal database mdf-file. I have then altered the runtimeConnectionstring to be able to choose what database to load the data from. I have made a copy of the local database into the sql-server and checked my connection and it works. Even if I...
  2. J

    problems with getting data from database to report

    ...As New ConnectionInfo Dim CrTables As Tables Dim CrTable As Table cryRpt.Load("Reports/CrystalReport5.rpt") '*************************************************************** Dim conn = New SqlClient.SqlConnection conn = New...
  3. J

    issue with Crystal Report

    I have made a crystal report with subreports, In my subreports I have added commands like: SELECT * FROM Orders where orderID = {?orderID} When I run the report in viewer the report prompts for the orderID with a dialogbox. But I have several subreports that requires the same orderID it prompt...
  4. J

    troubles with subreport in Crystal report

    ...Next 'Set the viewer to the report object to be previewed. CrystalReportViewer1.ReportSource = crReportDocument '*************************************************************************** End Sub End Class But when I try to load my big report...
  5. J

    Issue with crystal report

    I have made a crystal report, to be able to display data from several tables in the same report I have made a few subreports. But when I display the report some of the subreports grow beyond the next report, why doesn't the next report moove further down and start after the first subreport is...
  6. J

    Need help with print

    I use VS2008 where I have a program where I have about 20 tabpages with datagridviews and textboxes. But when it comes to printing my form my programming skills is not good enough. Here is how one of my forms looks like: I want to print out the data I have in my datagridviews with the...
  7. J

    How to lock a textbox to a cell?

    Hi, I have a windowsform in visual studio 2008, I connect to a ms sql-server On my form I have a datagridview who I use to enter data etc and save them to the database. I then have textboxes who shows the sum of the columns etc in the table abd save that value back to the database. but for...
  8. J

    Form refuses to close

    ...= Nothing Then My.Settings.blnEnabled = blnEnabled End If My.Application.SaveMySettingsOnExit = True '******************************************************************************* MsgBox("blnEnabled = " & My.Settings.blnEnabled)...
  9. J

    Publishing question

    I have a windows application Is it possible to publish this in a way that it does not have to be installed, Like if I just double-click the .exe file then the form appears and run instantly?
  10. J

    Problem updating to a related table in the database

    I have an Access relation database with a few tables. Customer, order, process1, process11, process130 etc. Customer Primary key is CID Order tabel har Primary Key OrderID and Forreign Key CID All the Processtables has ID as PrimaryKey and OrderID as Forreign Keys. The relations are set to 1...
  11. J

    Database does not appear after installation

    I have made an application in vb.net, this application uses an access database. When I publish the application I have included database. But when I install the application on a computer it does not install the database, So when I start the application it finds no data becausen the database is...
  12. J

    Save method

    I use the binding navigatorsaveitem to save my data back to the database, but the way I am doing it today seems to take an awful lot of time. Ex: Private sub .....SaveItem_Click(Etc Etc Etc)Handles ....Click Me.Validate() Me.Process1BindingSource.EndEdit() Me.Process2BindingSource.EndEdit()...
  13. J

    change error message visual studio

    If I forget to enter a value in a cell in my gridview a loooong error who says thar that the indata format is wrong. anyone who know where in visual studio I can make this error a bit more understandable for others?
  14. J

    Problems copy from table and adding to table

    ...Next For Each copyRows1 In copyRows dt.ImportRow(copyRows1) Next 'DataGridView1.DataSource = dt '********************************************************************* Dim conn = New SqlClient.SqlConnection conn = New...
  15. J

    passing several textbox.text between forms

    I use the code Dim Selvk As New Selvkost2 Selvk.PassedText = TextBox29.Text Selvk.Show() in mainform and the code Private _passedText As String Public Property [PassedText]() As String Get Return _passedText End Get Set(ByVal...
  16. J

    Problem with scrolling

    I use the binding navigator in my application, but when the resolution of the display gets to small and I have to use the scrollbars, then I get a problem. The scrollbars automatically scrolls down below the navigator bar instead of showing it when the window loads. I figured it out using...
  17. J

    Include files in project

    ...Dim arrFilesInFolder() As IO.FileInfo Dim fileInFolder As IO.FileInfo arrFilesInFolder = folderInfo.GetFiles("*.pdf") For Each fileInFolder In arrFilesInFolder ListBox1.Items.Add(fileInFolder.Name) Next End Sub When I build the...
  18. J

    path inside project

    I have a directory listbox, I try to set the path to a directory inside the project. how do I do that?
  19. J

    multiple rows in add row

    ...Next For Each copyRows1 In copyRows dt.ImportRow(copyRows1) Next DataGridView1.DataSource = dt '********************************************************************* Dim conn = New SqlClient.SqlConnection conn = New...
  20. J

    Save/Update problem

    ...copyRows dt.ImportRow(copyRows1) Next DataGridView1.DataSource = dt MsgBox("Forsøker å Endre data") '********************************************************************* Dim conn = New SqlClient.SqlConnection conn = New...
Back
Top