User Profile

Collapse

Profile Sidebar

Collapse
djmauro
djmauro
Last Activity: Oct 2 '07, 08:42 PM
Joined: Sep 27 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Code:
    Private Sub Command1_Click()
    x = Rnd() * 11000
    y = Rnd() * 11000
    Form2.Left = x * Rnd()
    Form2.Top = y * Rnd()
    secStop = Timer + 0.1
    Do
    Form2.Show
        Loop Until Timer > secStop
    End Sub
    cant edit last post :/
    so made a little cleanup in the code.
    tho i can find a way to implement
    Code:
    Dim tfrm As New Form2
        tfrm.Show
    if i replace...
    See more | Go to post

    Leave a comment:


  • with this code it does open new form good for notebook app.

    but now that other code where id like it to open it automatically, every time different location (command button triggers it).
    code worked with form2.show (it just moved form2), but when i use
    Dim tfrm As New Form2
    tfrm.Show
    it opens new each time i CLICK on button but it doesent do it automatically and it wont open in different locatio neach...
    See more | Go to post

    Leave a comment:


  • Set frm = New Form2 Call Load(frm)
    it shows error on this line. And hilights Cell lstatement (syntax error, expected end of statement)
    Code:
    Private Sub Command1_Click()
    Do
    x = Rnd() * 11000
    y = Rnd() * 11000
    Form2.Left = x * Rnd()
    Form2.Top = y * Rnd()
    Dim frm As Form2
      Set frm = New Form2 Call Load(frm)
      Call frm.Show(vbModeless)
    secStop = Timer + 0.1
    Do
    ...
    See more | Go to post

    Leave a comment:


  • Well almost :)
    actually i have two forms, form1 and form2
    i would like to open form2 when i click on command button.
    thats easy.
    BUT if i click again command button, i want it to open form2 again, without closing previously opened form2 window aka id like to open form2 "n" times.
    or is there a way to create another window when i click command button?

    Actually id like to make simple notebook....
    See more | Go to post

    Leave a comment:


  • up noone knows how do do it?
    See more | Go to post

    Leave a comment:


  • sry for posting alone but forgot again that im using visual basic 6
    See more | Go to post

    Leave a comment:


  • oh and i forgot to add that it could also wrk like this:
    i have 2 executables, one is main application and other is just a bare "notesheet" , just like 2 forms, but:
    1)how do i link 2nd .exe with first one, i can use shel lcommand but then i need to recompile every time folder name or path changes or is there a way to link exe if those are in the same folder no matter where that folder is, important is only that these 2 files...
    See more | Go to post

    Leave a comment:


  • Open form inside form without closing previous form

    as title says.
    I cant find a way to do this.
    if i use form1.show and click on a button. it opens that form, but as soon as i click again it just reopens it and closes previously opened form.
    So is there a way to avoid it?
    im using 2 forms, main and secondary, i need to open secondary form as many times as needed (without making tons of new sub forms for that).

    Idea is: i have main form with a button. i click...
    See more | Go to post
No activity results to display
Show More
Working...