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

    I have a REPORT WITH 10 SUBREPORTS, I have 2 Parameters in the main report and links the subreports to these parameters. My code looks like this: Imports System.Data.SqlClient Imports CrystalDecisions.CrystalReports.Engine Imports CrystalDecisions.Shared Imports System.Configuration...
  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

    I have made a cr with a few sections with subreports and I get the data from an SQL database with manually made commands in the report wizard. In this report I get dialog-boxes up to be able to enter variables to the commands at run-time. And if I load the report with this code it works great...
  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

    I have a method where I am making a trial period. When the date has exceded its trialperiod the program will not close. The code looks like this: Public Sub DemoRestrict() If My.Settings.dteStartDate = Nothing Then My.Settings.dteStartDate = Now End If If...
  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

    I try to copy data from rows in my db and then add them with another ID. but somehow I think I have made a mess out of it. Public Sub Ordreupdate() Dim dtbl As New DataTable Dim dt As New DataTable dtbl = Kalkyle1DataSet.Tables("Ordre") dt = dtbl.Clone...
  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

    I have included 2 pdf files in my Project. I have set their property to embedded resource. and copy to output directory to: copy allways. I list them up in a listbox using the code: Public Sub FillList() Dim folderInfo As New IO.DirectoryInfo(My.Application.Info.DirectoryPath)...
  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

    I have a method who gets data from one table, put the data into variables before it it returned into the same table with changed ID etc. My problem is that it adds the first row without any problems, but when it is supposed to add row number 2 the error says tha the row allready exists in the...
  20. J

    Save/Update problem

    I have a method which gets a row from 1 table puts it into a clonetable. In the clone table I change the values in 2 of the columns, then I use import row to put them back into the original table as a new row. But when I try to save/update it I get the folowing errormessage: My Code looks...
Back
Top