











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
|
|  |
| 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
|
|
03-16-02 04:46 PM
|
|
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
|
|
03-17-02 08:14 AM
|
|
TW2001
Senior Member

Registered: Mar 2001 Location: Country: USA State: Certifications: A+,MCP Working on: BS CompSci
Total Posts: 1413
|
|
|
03-18-02 01:26 AM
|
|
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
|
|
03-18-02 12:21 PM
|
|
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
|
|
03-18-02 04:42 PM
|
|
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
|
|
03-18-02 04:55 PM
|
|
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
|
|
03-18-02 06:39 PM
|
|
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
|
|
|
03-19-02 01:47 AM
|
|
|
Click here for list of MCSD
study guides and order yours now!
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
|