Results 1 to 5 of 5

Thread: Learning VB.NEt

  1. #1

    Thread Starter
    New Member
    Join Date
    Aug 2012
    Posts
    3

    Learning VB.NEt

    Hi all,

    I'm pretty new to the programming scene. Did a little in high school and nothing spectacular (HTML). I'm self-learning VB and using Visual Studio Express and I'm looking for a better explanation of a Dialog than my book is giving me in regards to VB. Things like dialog box functions in particular.

    Any help?

  2. #2
    eXtreme Programmer .paul.'s Avatar
    Join Date
    May 2007
    Location
    Chelmsford UK
    Posts
    26,422

    Re: Learning VB.NEt


  3. #3

    Thread Starter
    New Member
    Join Date
    Aug 2012
    Posts
    3

    Re: Learning VB.NEt

    Thanks! Very helpful!

  4. #4

    Thread Starter
    New Member
    Join Date
    Aug 2012
    Posts
    3

    Re: Learning VB.NEt

    Thanks! Very helpful!

  5. #5
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: Learning VB.NEt

    In implementation, a dialogue is just a form like any other. In concept, a dialogue is a form that is displayed for a short period of time and either it tells you something, i.e. it displays some data/information, or you tell it something, i.e. you enter or select some data in some control(s), or both. That's where the term "dialogue" comes from: the conversation between the user and the form.

    Dialogues can be modal or modeless. A modal dialogue is one that prevents the user accessing the calling form until the dialogue is dismissed. In .NET you can display a form by calling its Show or ShowDialog method, with ShowDialog providing modal behaviour. ShowDialog will return a DialogResult value that is generally used to determine which Button the user clicked to dismiss it. You control that by setting the DialogResult property of the form to dismiss it or the DialogResult properties of the Buttons in the designer.

    To create a true modeless dialogue, you must specify an owner when displaying a form. If you just call Show then the form will be displayed and that's it. If you call Show and pass another form as an argument (usually Me to indicate that the current form is the owner) then the dialogue will always remain in front of the owner without preventing access to it. It will also be minimised, restored and closed when its own is. An example of a modeless dialogue is a Find & Replace window in VB Express and many other applications.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

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