Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Oct 20th, 2006, 7:41 PM   #1
PhilBon
Hobbyist Programmer
 
PhilBon's Avatar
 
Join Date: Nov 2005
Posts: 172
Rep Power: 4 PhilBon is on a distinguished road
Send a message via AIM to PhilBon Send a message via MSN to PhilBon
Input Dialog Box

So right now I'm feeling really stupid based on the fact that I can't remember the syntax for an input dialog box. I'm running Visual Studios 2005 .Net 2.0 and cant remember how to get input from the user. If you could help me out, that'd be great.
PhilBon is offline   Reply With Quote
Old Oct 20th, 2006, 7:49 PM   #2
Booooze
Expert Programmer
 
Booooze's Avatar
 
Join Date: Mar 2006
Location: Igloo
Posts: 710
Rep Power: 3 Booooze is on a distinguished road
Send a message via MSN to Booooze
http://www.developerfusion.co.uk/show/6/1/

Google is your friend. Remember you can always just put a text box on a form and make your own ways to get input from the user.
Booooze is offline   Reply With Quote
Old Oct 20th, 2006, 7:59 PM   #3
PhilBon
Hobbyist Programmer
 
PhilBon's Avatar
 
Join Date: Nov 2005
Posts: 172
Rep Power: 4 PhilBon is on a distinguished road
Send a message via AIM to PhilBon Send a message via MSN to PhilBon
Sorry, Should have added that I'm using it on the onload, so when the program is first coming up this will be displayed. So the form wouldn't have been loaded yet.
PhilBon is offline   Reply With Quote
Old Oct 21st, 2006, 4:48 AM   #4
lectricpharaoh
SEXY SHOELESS GOD OF WAR!
 
lectricpharaoh's Avatar
 
Join Date: Jun 2005
Location: Wet west coast of Canada
Posts: 1,197
Rep Power: 5 lectricpharaoh will become famous soon enough
Quote:
Originally Posted by PhilBon View Post
Sorry, Should have added that I'm using it on the onload, so when the program is first coming up this will be displayed. So the form wouldn't have been loaded yet.
Well, you can always add a second form to your project, and this form would be your input dialog. You'd instantiate it, then call either the ShowDialog() or Show() method of this form (depending on whether you want modal or not). However, I expect that's not what you want, though it does give you optimal functionality (you can customize this form to your heart's content, since a form is just a window- usually a dialog one).

Anyways, next time, try the docs. The InputBox() function is in there. If you don't have the local docs installed, try MSDN. A quick search (I typed in 'inputbox' and hit enter) yields this page.
__________________
And once again, Probability proves itself willing to sneak into a back alley and service Drama as would a copper-piece harlot.
- Vaarsuvius, Order of the Stick
lectricpharaoh is offline   Reply With Quote
Old Oct 21st, 2006, 12:59 PM   #5
Booooze
Expert Programmer
 
Booooze's Avatar
 
Join Date: Mar 2006
Location: Igloo
Posts: 710
Rep Power: 3 Booooze is on a distinguished road
Send a message via MSN to Booooze
There is a function that executes before the main form is shown. You could throw the input box in there and it would show up before the form loads. I don't use VB.NET but in VB6 I think it was the initialize function.
Booooze is offline   Reply With Quote
Old Oct 29th, 2006, 10:57 PM   #6
XanFox
Newbie
 
XanFox's Avatar
 
Join Date: Oct 2006
Location: Australia - Gold Coast
Posts: 8
Rep Power: 0 XanFox is on a distinguished road
Maybe you could make a startup module... like when you do a splash screen
__________________
Everything works out in the End...so if its not all worked out...your not at the end!
XanFox is offline   Reply With Quote
Old Oct 30th, 2006, 3:26 AM   #7
Iftikhar
Programmer
 
Iftikhar's Avatar
 
Join Date: Oct 2006
Location: London
Posts: 40
Rep Power: 0 Iftikhar is on a distinguished road
Send a message via MSN to Iftikhar
You have to create your own input dialog box in .NET. IN VB six there in inputDialog function for that
__________________
Iftikhar Ahmed Khan
For doing an experiment on programmer's mood please visit http://uxisfyp1.brunel.ac.uk/cspgiak
Iftikhar is offline   Reply With Quote
Old Oct 30th, 2006, 3:56 AM   #8
XanFox
Newbie
 
XanFox's Avatar
 
Join Date: Oct 2006
Location: Australia - Gold Coast
Posts: 8
Rep Power: 0 XanFox is on a distinguished road
yes but you can call it in the startup and get the info you need before the main screen/interface appears
__________________
Everything works out in the End...so if its not all worked out...your not at the end!
XanFox is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
question about filename in common dialog Kilo Visual Basic 4 Nov 28th, 2005 4:42 AM
How to to do this using Win32 API? csharp C++ 4 Nov 1st, 2005 6:22 AM
dialog wierdness Rezin8r Bash / Shell Scripting 1 May 19th, 2005 4:46 PM
Unable to move dialog after creating milksama C++ 1 Mar 11th, 2005 2:10 PM




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 10:25 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC