VB.NET

Moderators: seancampbell
Number of threads: 4020
Number of posts: 10026

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
InputBoxes, Pretty Simple! Posted by James98765 on 14 Jul 2007 at 9:07 PM
I am working with an inputbox and I want a MsgBox to display if the user clicks OK without entering text into the textbox but I don't want the InputBox to close or save any information. Can anybody help me with this? Thanks alot!
James
James98765
jamesparsons@cox.net
http://www.programmersheaven.com/c/Settings/messageboard.htm
Report
Re: InputBoxes, Pretty Simple! Posted by HackmanC on 20 Jul 2007 at 1:03 AM
Make your own InputBox Form.
Its easier, customizable, etc.
InputBox is a function in "Microsoft.VisualBasic.Interaction"; you dont have direct access to the handle of the window.
Unless ...
you want to deal with Windows API (OpenProcess), Process Class (Same), Threads (Because your main thread is stoped by the InputBox Modal Form), Procedure Address (Change the code to run when the Ok Button is pressed), etc.
Or you need to sneak into another (already binary) application which uses the InputBox function.
------
: I am working with an inputbox and I want a MsgBox to display if the
: user clicks OK without entering text into the textbox but I don't
: want the InputBox to close or save any information. Can anybody help
: me with this? Thanks alot!
: James
: James98765
: jamesparsons@cox.net
: http://www.programmersheaven.com/c/Settings/messageboard.htm

Good luck!
Hackman



 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.