Click here to Skip to main content
15,892,059 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Only FW4 possible After new install Pin
AspDotNetDev21-May-11 12:43
protectorAspDotNetDev21-May-11 12:43 
AnswerRe: Only FW4 possible After new install Pin
AspDotNetDev21-May-11 12:40
protectorAspDotNetDev21-May-11 12:40 
QuestionAlign Long String in DataGridView Cell to Show String End Pin
Andraw Tang19-May-11 8:35
Andraw Tang19-May-11 8:35 
AnswerRe: Align Long String in DataGridView Cell to Show String End Pin
Dave Kreskowiak19-May-11 9:02
mveDave Kreskowiak19-May-11 9:02 
GeneralRe: Align Long String in DataGridView Cell to Show String End Pin
Andraw Tang19-May-11 10:15
Andraw Tang19-May-11 10:15 
AnswerRe: Align Long String in DataGridView Cell to Show String End Pin
Luc Pattyn19-May-11 9:12
sitebuilderLuc Pattyn19-May-11 9:12 
GeneralRe: Align Long String in DataGridView Cell to Show String End Pin
Andraw Tang19-May-11 10:35
Andraw Tang19-May-11 10:35 
Questionparsing .frm file for control names and nested level Pin
john john mackey17-May-11 9:27
john john mackey17-May-11 9:27 
Hi,
i searched around the Net and Code Project for some existing parser, but so far unsuccessful.

What I want to do is parse a Visual Basic .FRM (form) file and extract the control names defined within. I also want to determine if there are nested controls within.

If possible, convert the listing and nested information into some format that can be easily worked with by other tools - like XML or some identifiable tree structure.

For example (MyForm.frm):
Begin Control1Lib.Cntrl1 MyCntrl1
   Height   = 555
   Left     = 0
   ...
   Begin Control2Lib.Cntrl2 MyNestedCntrl2
      Height  = 375
      ...
      BeginProperty Font {aldfladlf-lsl-ladsjlfj}
         ...
      EndProperty
   End
End

Then the parser could tell me I have two controls (MyCntrl1, MyNestedCntrl2) and SHOW that MyNestedCntrl2 is nested inside MyCntrl1.
Examples:
Level   ControlName
1.0     MyCntrl1
1.1     MyNestedCntrl2
2.0     MyCntrl2
2.1     Nested2_1
2.2     Nested2_2
3.0     MyCntrl3
3.1     Nested3_1
3.1.1   Nested3_1_1
3.1.1.1 Nested3_1_1_1
...

XML example:
<MyCntrl1>
<MyNestedCntrl2>
</MyNestedCntrl2>
</MyCntrl1>
<MyCntrl3>
<Nested3_1>
<Nested3_1_1>
<Nested3_1_1_1>
</Nested3_1_1_1>
</Nested3_1_1>
</Nested3_1>
</MyCntrl3>


I am sure this is somewhere out on the Net where I can download, so can you point me to the place to research?

Thank you much!
JJ
AnswerRe: parsing .frm file for control names and nested level Pin
Dave Kreskowiak17-May-11 10:11
mveDave Kreskowiak17-May-11 10:11 
GeneralRe: parsing .frm file for control names and nested level Pin
john john mackey17-May-11 10:32
john john mackey17-May-11 10:32 
GeneralRe: parsing .frm file for control names and nested level Pin
Dave Kreskowiak18-May-11 2:52
mveDave Kreskowiak18-May-11 2:52 
Questionlogin into website Pin
DanYELL17-May-11 5:12
DanYELL17-May-11 5:12 
AnswerRe: login into website Pin
Dave Kreskowiak17-May-11 6:54
mveDave Kreskowiak17-May-11 6:54 
GeneralRe: login into website Pin
DanYELL17-May-11 11:18
DanYELL17-May-11 11:18 
GeneralRe: login into website Pin
Dave Kreskowiak18-May-11 2:49
mveDave Kreskowiak18-May-11 2:49 
AnswerRe: login into website Pin
Dalek Dave17-May-11 12:30
professionalDalek Dave17-May-11 12:30 
QuestionDot-Matrix Printer Resolution Problem Pin
ismail2016-May-11 20:59
ismail2016-May-11 20:59 
AnswerRe: Dot-Matrix Printer Resolution Problem Pin
Abhinav S16-May-11 22:23
Abhinav S16-May-11 22:23 
Answercross-post alert Pin
Luc Pattyn16-May-11 22:57
sitebuilderLuc Pattyn16-May-11 22:57 
QuestionVB6 Help me! Pin
amoo201116-May-11 7:01
amoo201116-May-11 7:01 
AnswerRe: VB6 Help me! Pin
Dave Kreskowiak16-May-11 7:21
mveDave Kreskowiak16-May-11 7:21 
GeneralRe: VB6 Help me! Pin
Thomas Krojer16-May-11 21:19
Thomas Krojer16-May-11 21:19 
AnswerRe: VB6 Help me! Pin
Dalek Dave17-May-11 12:24
professionalDalek Dave17-May-11 12:24 
Questioncreate a wizard query Pin
kouku16-May-11 3:19
kouku16-May-11 3:19 
AnswerRe: create a wizard query Pin
Dave Kreskowiak16-May-11 4:12
mveDave Kreskowiak16-May-11 4:12 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.