News  [SoftwareSite

Latest News
Older News
RSS Feed
 
Complete Projects
Useful Classes
Top Downloads
Message Board
AllAPI.net
 
Send Comments
Software License
Mentalis.org Buttons
Donate
 
Forums -> Miscellaneous Forum
 
IniReader Class Question

Reply

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

by Evil [omerbulut a at t msn d dot o dot t com]
posted on 2006/01/04
Reply

I'd like to know the answer to.

by srdjan
posted on 2006/02/20
Reply

Try setting filename to "./application.ini"

worked in my case

 

Copyright © 2002-2007, The Mentalis.org Team. All rights reserved.
This site is located at http://www.mentalis.org/
Send comments to the webmaster.