Programming Forums
User Name Password Register
 

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

 
 
Thread Tools Display Modes
Prev Previous Post in Thread   Next Post in Thread Next
Old Apr 19th, 2007, 10:03 AM   #1
randum77
Programmer
 
randum77's Avatar
 
Join Date: Jun 2006
Location: Fayettehell, NC
Posts: 56
Rep Power: 3 randum77 is on a distinguished road
Dynamic form from text file.

Ok, new one here. I've been trying to build a form from a text file. What I am trying to do specifically is when a form loads, it attaches to a txt file, reads it line by line, and build a radio button form based on it. This way, if we want to change the look of the form we can just update the txt file, rather then have to re compile the entire app.

What I've done so far is create the ioStreamReader and attached to the file. I was able to list the entire contents to a text box just to make sure the iostream was reading how I wanted it too. Now, i want it to read each line of the document, read to the first ", " and use that text as the app name, and everything after the comma as the path. For each line, i need a bullet w/ app name.

I was going to use a substring but i don't think it would do what I want, it would show the ", " and it's not dynamic enough. Also, i'm having a hard time brainstorming on the method to get the Radio button and lable to be generated at the procedure level. I've never done it before and am kind of lost. I know i'll also need to do an X and Y coordinate and increment it as well.

Well, any help is appreciated. I'll do some searches google and see what it shows.
__________________
_Marshall_

"America has bred a society that is innocent and incapable of accepting responsibility, but yet, is able to place blame on others without guilt."
randum77 is offline   Reply With Quote
 

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
converting string to float beginnerCCC C 22 Oct 2nd, 2006 11:59 PM
OnlineTextEditor.Com! Sane Show Off Your Open Source Projects 43 Jun 16th, 2006 8:55 AM
How to detect cursor location and insert text??? syntax-error C# 3 Jun 30th, 2005 1:42 AM
After execution - Error cannot locate /Skin File? wchar Visual Basic 1 Mar 5th, 2005 9:04 PM
airport Log program using 3D linked List : problem reading from file gemini_shooter C++ 0 Mar 2nd, 2005 4:12 PM




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 6:04 AM.

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