well i want to create a simple GUI . i have a three command buttons naming
( start , start from line , Quit ) and i have a text file( words.txt) of 5014 lines.
now i want that when i click start . program should pick up the very first line of the text file and prompts the content of whole first line as a window ( or message box ) .. keeps it there for almost 10 seconds and then refreashes that very window with the next line of text file and keeps on doing it till 5014th line or user clicks "Quit"
and incase at start up user clicks " start from line "
it prompt for a line number from user and at input . repeat the previous procedure starting from this line number ( which user have just given ) and keeps running just like before
well basically text file contains vocabulary . and this very program is sorta help to learn that vocabulary while user is using computer .
i hope i ll be making lil sense ..
regards and waiting for reply ..
Last edited by Dastard; Jan 15th, 2006 at 12:27 PM.
well, that may be very tedious. my suggestion will be to load the text file into an string array (line by line) and then display them accordingly (from LBound of Array to UBound of Array).
Use a seperate window instead of MsgBox because then the user wont be able to click the "Quit" button. use a timer event to load/unload the Display form for the defined time.
my suggestion will be to load the text file into an string array (line by line) and then display them accordingly (from LBound of Array to UBound of Array). Use a seperate window instead of MsgBox because then the user wont be able to click the "Quit" button. use a timer event to load/unload the Display form for the defined time.
I see some isn't lazy about writing code and taking shortcuts
Its awesome martinliss . thats what exactly i had in my mind . thanks a lot guru .. i m still wondering how is it working when all the buttons have same name .. excellent use of resources .. well just need to ask two lil things . . first . it doesnt immediately quit when i click quit button .. it sorta "stops responding" and second is this programming using much my pc resources i feel like that it is acctually caz i don have much virtual memory in my computer ..
Thanks a lot . its working fine .. just tell me how can i change the font of text which is being displayed in pop up window there ... its quite small . besides that .. thread is resolved ...
By "pop up window" do you mean the InputBox message? If so, I've attached a form that looks like an inputbox that you can modify however you want.
I see that you attempted to indicate that the thread was resolved. Thanks, but the way to do that however is to pull down the Thread Tools menu and click the Mark Thread Resolved button.