by Joe Delphi [delphi561 at earthlink dot net] posted on 2005/06/09 | 
              
                 | 
             
           
        
        
        
        Hi, 
 
     I have compiled the IniReader class into my VB.NET project.  Everything compiles OK, but when I run the program, it does not create the .ini file.   My code is below, what am I doing wrong?  I thought that the object constructor (the New statement) created the .ini file automatically. 
 
--------------------------- 
 
Sub SaveFormPosition2() 
        Dim FormSettings As Org.Mentalis.Files.IniReader 
        Dim sUser As String = "User1" 
 
        FormSettings = New Org.Mentalis.Files.IniReader("FormSettings.ini") 
        FormSettings.Write(sUser, Me.Name & "_Left", Me.Left) 
        FormSettings.Write(sUser, Me.Name & "_Top", Me.Top) 
        FormSettings.Write(sUser, Me.Name & "_Height", Me.Height) 
        FormSettings.Write(sUser, Me.Name & "_Width", Me.Width) 
 
 
    End Sub  |