ExamNotes.net  -  IT certification portal

ForumsCertResearchTop sitesNewslettersFree email
HomeRegister
Exams Notes
Practice exams
Exam games
Questions by email
Online training
Training videos
College degrees
Boot camps
Book store
Links directory
Tell a friend
For webmasters

CompTIA Exam Vouchers
Save money on CompTIA exams
Question of the day
Sign up to receive
interactive practice questions
for MCSE, CompTIA
Cisco and other exams
TestKing
Get MCSE, MCSD, CCNA, CCNP,A+, N+ and many more

* ExamSheets *
Guide for Success!
Actual Questions & Answers
MCSE, MCSD, A+ ,CCNA, CCNP
Oracle 8i, Oracle 9i

Online practice tests

Certification sites

Online university

Online college

Online education

Distance learning

Software forum

Server administration forum

Programming resources






This is interesting: Free IT Magazines | Databases help forum



Microsoft (MCSE, MCSD, MOUS, MCAD) > MCSD > Message Box & Strings

Show a Printable Version
Email This Page to Someone!
Receive updates to this thread




MCSD exam notes



Author Message Box & Strings
TW2001
Senior Member




Registered: Mar 2001
Location:
Country: USA
State:
Certifications: A+,MCP
Working on: BS CompSci

Total Posts: 1413
Message Box & Strings

Hello everyone.I have a proably simple q for you guys.

Here is a message box of mine:

MsgBox totalMsg, vbOKOnly, Space$(100)

How can I increase the size vertically? Where do I add the Msgbox title now? If I tack it on the I get an error.


How do people feel about intializing variables with a Loadform method? Is it a good practice?

Any help would be appreciated.

Report this post to a moderator

Old Post 03-16-02 04:46 PM
TW2001 is offline Click Here to See the Profile for TW2001 Click here to Send TW2001 a Private Message Add TW2001 to your buddy list Find more posts by TW2001 Reply w/Quote Edit/Delete Message IP: Logged
cassie
Senior Member




Registered: Jun 2001
Location:
Country: United Kingdom
State:
Certifications: MCSD, MCSE, MCDBA
Working on: MCSE Win2K

Total Posts: 131

Hi TW2001,

First of all, I assume that your "Space$(100)" in the title is to make the message box longer. You can do something similar to increase the size of it vertically, using Chr(13) (enter). Don't know a more elegant way.

You can easily add a title by concatenating it with your "Space$(100).

So you could try something like:

MsgBox totalmsg & Chr(13) & Chr(13) & Chr(13) & Chr(13) & Chr(13) & Chr(13), vbOKOnly, "mytitle" & Space$(100)

Cassie

__________________
www.ExamsAreEasy.com
?????????????????????????
You don't need questions,
you need answers!
?????????????????????????

Report this post to a moderator

Old Post 03-17-02 08:14 AM
cassie is offline Click Here to See the Profile for cassie Click here to Send cassie a Private Message Visit cassie's homepage! Add cassie to your buddy list Find more posts by cassie Reply w/Quote Edit/Delete Message IP: Logged
TW2001
Senior Member




Registered: Mar 2001
Location:
Country: USA
State:
Certifications: A+,MCP
Working on: BS CompSci

Total Posts: 1413

Thanks Cassie.That was what I needed to know.

Report this post to a moderator

Old Post 03-18-02 01:26 AM
TW2001 is offline Click Here to See the Profile for TW2001 Click here to Send TW2001 a Private Message Add TW2001 to your buddy list Find more posts by TW2001 Reply w/Quote Edit/Delete Message IP: Logged
AndyC
XML Spastic
M




Registered: Dec 2000
Location:
Country: England
State:
Certifications: See Signature
Working on: CCIE Lab (Voice)

Total Posts: 577

I couldn't find that anywhere in my book......Hmm, need to get another one I think!

__________________
Andy C
CCNP, CCVP, CCDA, CQS (WLANSE, WLANFE, Unity Support, IPT Design, IPT Express , IPCC Express, IP Communications Express, CallManager Express), JNCIS-M #1027, JNCIS-FWV #311, F5CSE, CCSE NG, MCSE NT4/2K, MCSE:Messaging, ITIL, A+

Report this post to a moderator

Old Post 03-18-02 12:21 PM
AndyC is offline Click Here to See the Profile for AndyC Click here to Send AndyC a Private Message Visit AndyC's homepage! Add AndyC to your buddy list Find more posts by AndyC Reply w/Quote Edit/Delete Message IP: Logged
RichardJW
Temporarily banned until the cure if found
M




Registered: Feb 2002
Location:
Country: United Kingdom
State:
Certifications: None
Working on: None

Total Posts: 1318

Space$(100) is for compatibility with older VB code. Use Space(100).

If you desire a lot of control you could create a custom message box with a standard form. Load it modally and then unload it out of memory when the desired action has been performed.

quote:
How do people feel about intializing variables with a Loadform method? Is it a good practice?


There is no LoadForm method in VB 6.0 but if you mean initialising variables in the Form_Load event then that practice is fine and standard. There are certain caveats with the Initialise event though usually you can initialise safely there as well.

If you mean using an API method, you will have no more flexibility than if you used the built in VB library.

Report this post to a moderator

Old Post 03-18-02 04:42 PM
RichardJW is offline Click Here to See the Profile for RichardJW Click here to Send RichardJW a Private Message Add RichardJW to your buddy list Find more posts by RichardJW Reply w/Quote Edit/Delete Message IP: Logged
AndyC
XML Spastic
M




Registered: Dec 2000
Location:
Country: England
State:
Certifications: See Signature
Working on: CCIE Lab (Voice)

Total Posts: 577

Wahey!...this is the type of post I like to see - cheers Richard!

__________________
Andy C
CCNP, CCVP, CCDA, CQS (WLANSE, WLANFE, Unity Support, IPT Design, IPT Express , IPCC Express, IP Communications Express, CallManager Express), JNCIS-M #1027, JNCIS-FWV #311, F5CSE, CCSE NG, MCSE NT4/2K, MCSE:Messaging, ITIL, A+

Report this post to a moderator

Old Post 03-18-02 04:55 PM
AndyC is offline Click Here to See the Profile for AndyC Click here to Send AndyC a Private Message Visit AndyC's homepage! Add AndyC to your buddy list Find more posts by AndyC Reply w/Quote Edit/Delete Message IP: Logged
TW2001
Senior Member




Registered: Mar 2001
Location:
Country: USA
State:
Certifications: A+,MCP
Working on: BS CompSci

Total Posts: 1413

Great!
Thanks Richard.

I meant Form_load (sorry about that sloppiness).Im still learining to use internal librarys so the functionality of an API is little over my head right now.

The standard Form idea for the MsgBox is an excellent one.

Thanks, Outputting summary display etc..will go a lot smoother that way.

Cheers!

Report this post to a moderator

Old Post 03-18-02 06:39 PM
TW2001 is offline Click Here to See the Profile for TW2001 Click here to Send TW2001 a Private Message Add TW2001 to your buddy list Find more posts by TW2001 Reply w/Quote Edit/Delete Message IP: Logged
hard_coder
Senior Member




Registered: Apr 2001
Location: Dallas
Country: USA
State:
Certifications: MCSD, MCDBA, MCSA, MCT
Working on: Dot Nettin' it - MCAD, MCSD .Net

Total Posts: 188
Wink

Modal - nuff said

Report this post to a moderator

Old Post 03-19-02 01:47 AM
hard_coder is offline Click Here to See the Profile for hard_coder Click here to Send hard_coder a Private Message Add hard_coder to your buddy list Find more posts by hard_coder    Send an AIM message to hard_coder Send a message to hard_coder Reply w/Quote Edit/Delete Message IP: Logged
All times are GMT.
Post new thread   Post reply

Click here for list of MCSD study guides and order yours now!



Forum Jump:
 
Forum Rules:
Who Can Read The Forum? Any registered user or guest.
Who Can Post New Topics? Any registered user.
Who Can Post Replies? Any registered user.
Changes: Messages can be edited by their author.
Posts: HTML code is OFF. Smilies are ON. vB code is ON. [IMG] code is ON.
 

ExamNotes forum archive


Powered by: vBulletin 2.2.8
Copyright ©2000, Jelsoft Enterprises Limited.

  Free Braindumps | mcse braindumps