Search results for query: *

  1. S

    [Crystal Reports] Change database location

    Hi, How can I change the database location in my report? I tried this: Dim rpt As New CrystalReport1 For Each crTable As Table In rpt.Database.Tables crTable.Location = Directory.GetCurrentDirectory & "\database.mdb" Next But I couldn't use that because my Visual Studio doesn't...
  2. S

    Code gets executed but won't show

    I solved this problem I executed Switch(False) when I loaded the form, that's why it wouldn't work, I me = stupid :)
  3. S

    Code gets executed but won't show

    Hi, I have this weird problem, and I don't have a clue how to solve it. I have an mdi Form that loads the childs via a menu, it works fine for all the forms except one. There it won't do one step, whatever I do. If I look into it by doing everything step by step, I see the code being executed...
  4. S

    [Crystal Reports] Adding fields of linked table

    Ok, I'll try it out, thanks
  5. S

    [Crystal Reports] Adding fields of linked table

    Hi My Tables: tblPerson ID Name Story OtherStuff .... tblHobbyPerson ID PersonID HobbyID tblHobby ID HobbyName First of all, these are fictive tables to illustrate what I want Lets suggest that a person can chose between a few hobbies The hobbies of that person are stored in tblHobbyPerson...
  6. S

    Update from datatable

    It is initialized I declared it as a global parameter for that class Private da As OleDbDataAdapter And it works fine in the Sub New, but won't work in Sub Wijzig Even when I declare a new OleDbDataAdapter in Sub Wijzig, it still won't work Any ideas?
  7. S

    Update from datatable

    Hiya, I want to update from a datatable I have, but when I use the code below, I will get an error Object reference not set to an instance of an object Anyone has an idea? This I use for loading the data Public Sub New() Dim i As Integer Try categorie = New bsCategorie...
  8. S

    Disable MDIchildren moving outside MDIparent client area

    Hi, Is there a way that you cannot move the MDIchildren outside the MDIparent's client area (visible area)?
  9. S

    How to prevent people to maximize window

    I tried those things, but they didn't work well btw TPM: I was trying to not get my windowstate maximized Now I've set my Maximumsize to the same size as my original formsize
  10. S

    How to prevent people to maximize window

    Hiya, I was wondering if there was a solution for this problem. I can disable the maximize button, but if i double click on the "blue bar" (or however it is called :)) it still get maximized
  11. S

    Detecting if a form is open

    I tried that code out, but it still would not work But I found a solution: Dim frm As New frmCategorie Dim form As Form Dim blnFound As Boolean = False 'Is the form already opened? For Each form In Me.MdiChildren If form.Name = "frmCategorie" Then...
  12. S

    Detecting if a form is open

    Solved the problem I use this code: Dim n As frmTest 'Is the form open If Not (n Is Nothing OrElse n.IsDisposed) Then With n 'Do stuff .Activate() End With Else n = New frmAbout With n .MdiParent = Me 'Do stuff .Show() End With End If
  13. S

    Detecting if a form is open

    Using that, it will open a new form, but I would like to combine it with the code posted above. Is that possible? This is what it should do: I use the same form for showing and adding items. When it shows items, textboxes are filled in But when I want to add items, I want to use the same...
  14. S

    Detecting if a form is open

    I do have one more question How can I call up objects that are on that form? (like textboxes, labels, ...)
  15. S

    Detecting if a form is open

    Thanks, it works perfectly
  16. S

    Detecting if a form is open

    Hi I am making a program with a MDI form and a menu In the menu you can open a form but with different options (one to add data, one to just view data) How can I detect if the form is still open so it won't be opened for a second time? Thanks
Back
Top