Results 1 to 9 of 9

Thread: form dialog

Hybrid View

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Mar 2000
    Location
    Manchester
    Posts
    446

    Question

    Me.caption = "what ever the files are"

    Can anyone tell me how to popup a dialog that will do the above in a dialog ?

    Regards

  2. #2
    Frenzied Member
    Join Date
    Mar 2000
    Posts
    1,089
    Code:
    MsgBox "Your Text Here"
    is that what you mean?

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Mar 2000
    Location
    Manchester
    Posts
    446

    Thumbs down dialog

    No not really, i'm contiuosly copying separate files so it would need updated each time

  4. #4
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    You have to design your own dialog then, either as a simple form with borderstyle changed to something limiting, or by designing an activeX that operates a form on your command.
    Use
    writing software in C++ is like driving rivets into steel beam with a toothpick.
    writing haskell makes your life easier:
    reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
    To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.

  5. #5

    Thread Starter
    Hyperactive Member
    Join Date
    Mar 2000
    Location
    Manchester
    Posts
    446

    dialog

    Whats the fragment code to do this please..?

  6. #6
    Fanatic Member
    Join Date
    Mar 2000
    Location
    That posh bit of England known as Buckinghamshire
    Posts
    658

    Talking Well Well Well.

    If it isn't gsc1ugs. Back to copying questions again.

    Make a new form, called for example "frmDialog". Set the borderstyle = 4 (fixed toolwindow)

    Basically this is just a poxy little dialog box now. I don't know how you are copying your files, but this should give you a general idea.

    Code:
    frmDialog.Show
    For Each FileBeingCopied
      frmDialog.Caption = FileBeingCopied.Name
      DoEvents
      copy (FileBeingCopied)
    Next
    Unload frmDialog
    [Edited by Iain17 on 05-05-2000 at 03:19 PM]
    Iain, thats with an i by the way!

  7. #7

    Thread Starter
    Hyperactive Member
    Join Date
    Mar 2000
    Location
    Manchester
    Posts
    446

    Unhappy dailog

    Bit simpler please VB a new thang too me

  8. #8

    Thread Starter
    Hyperactive Member
    Join Date
    Mar 2000
    Location
    Manchester
    Posts
    446

    Red face dialog

    It s the centre of the dialog i wnat to change not the caption..

  9. #9
    Fanatic Member
    Join Date
    Mar 2000
    Location
    That posh bit of England known as Buckinghamshire
    Posts
    658
    Right well make Form like i said in my last post and place a label in the middle. Call it lblMessage for now.

    Code:
    'show the dialog form
    frmDialog.Show
    
    'this is the loop where you are copying files.
    For Each FileBeingCopied
      'show the name of the file being copied on the
      'frmDialog label.
      frmDialog.lblMessage.Caption = FileBeingCopied.Name
      DoEvents
      'how ever you copy your file.
      copy (FileBeingCopied)
    Next
    
    'unload the dialog Form
    Unload frmDialog
    Iain, thats with an i by the way!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width