Need some expertise

Dumbo

Member
Joined
Nov 1, 2005
Messages
6
Programming Experience
1-3
Hi

I have got this piece of code from VB6 and I am trying to convert this into vb.net, but dont know what excatly this code is doing. Can anyone explain to me.

Begin Dialog UserDialog 490,160,"Frequency Rate" ' %GRID:10,6,1,1
Text(10, 44, 140, 16, "FR Period", .lblCurrentPeriod)
DropListBox(175, 16, 300, 120, arrDepartment(), .cboDepartment)
DropListBox(175, 40, 300, 92, arrCurrentPeriod(), .cboCurrentPeriod)
Text(10, 20, 140, 12, "Department", .lblDepartment)
Text(10, 68, 180, 12, "Length of Moving Period", .lblMovingPeriod)
TextBox(175, 65, 50, 20, .lMovingPeriod)
Text(10, 92, 150, 12, "Number of Iterations", .lblIterations)
TextBox(175, 92, 50, 20, .lIterations)
OKButton(155, 130, 90, 22)
CancelButton(275, 130, 90, 22)
End Dialog


Thanks
Cheers.
 
Hey,

The code is defining a Dialog Box called "UserDialog" to display to the user with Labels, 2 ComboBox's a TextBox and Ok/Cancel buttons. In vba this would later be called as a form like...

Dim dlg As UserDialog
Dialog dlg

In vb.net you would probably replace this code by creating a new form in the forms designers, with all the same attributes give it some properties and a dialog result, then whenever you want to show it:-

VB.NET:
dim UserDialog as New MYVBNetDialog
if UserDialog.ShowDialog(Me) = DialogResult.OK then
.......
 
Last edited:
Back
Top