Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > .NET Languages
You last visited: Today at 09:20

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[Frage] VB My.Settings

Discussion on [Frage] VB My.Settings within the .NET Languages forum part of the Coders Den category.

Reply
 
Old   #1
 
germanhacker's Avatar
 
elite*gold: 0
Join Date: May 2010
Posts: 84
Received Thanks: 13
Question [Frage] VB My.Settings

Hallo Epvpers,

Ich bin gerade am coden eines Injectors, aber bekomme einen letzten Fehler nicht weg. Wenn ich den Injector schließe, soll er alle Einstellungen speichern. Das klappt auch gut, aber wenn ich ihn starte zeigt er bei meiner Listbox ein leeres Item an.

Um es verständlicher zu machen ein Screen:




Und immer wenn ich den Injector neu starte, kommt ein leeres item hinzu.

Hier mal ein Ausschnitt meines Codes:


Code:
    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        Try
            For Each item As String In My.Settings.listbox1_settings
                listbox1.Items.Add(item)
            Next
        Catch ex As Exception
        End Try
    End Sub
Code:
    Private Sub Form1_Closing(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.FormClosing
        For Each item As String In listbox1.Items
            My.Settings.listbox1_settings.Add(item)
        Next
        My.Settings.Save()
        My.Settings.Reload()
    End Sub
Vielleicht hatte jemand mal das selbe Problem oder kennt eine andere Möglichkeit, die items aus der listbox in my.settings zu speichern, ohne das bei jedem start ein leeres item hinzu kommt.

€dit:

Noch ein Screen von meinen Einstellungen:



€dit2:

Nach langem Suchen hab ich den Fehler selbst gefunden.^^
Er war hier versteckt:

[code]
<?xml version="1.0" encoding="utf-16"?>
<ArrayOfString xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3
<string></string>
.org/2001/XMLSchema" />

Da hat er immer ein leeres item hinzugefügt.^^

Mfg


Close pls
germanhacker is offline  
Reply


Similar Threads Similar Threads
settings
11/29/2010 - Last Chaos - 0 Replies
könnte mir jemand ein aktuellen inhalt der settings datei des net trainers geben thx ^^
Settings
11/07/2009 - C9 - Continent of the Ninth - 0 Replies
Hi all can someone just tell me how can i set the game to Low please
ZID Settings
07/06/2009 - Grand Chase - 27 Replies
Check here: ZID SETTINGS
MLE and Zid settings?
07/01/2009 - Grand Chase Philippines - 12 Replies
sino po my working setting sa MLE o kaya Zid? pede po pa post? Note: sa mga magbibigay na naman ng palaisipan o clue, wag ng magreply...
Cant make the PCHack settings the same and MLE settings.
05/19/2009 - Grand Chase Philippines - 1 Replies
I can make the PCHack use Debug registers in the CodeFinders tab, and cant make it use Hardware breakpoints in the assembler tab, and I am using Vista but I think it has nothing to do with it since I have no errors...I just cant change the settings.



All times are GMT +2. The time now is 09:20.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2024 elitepvpers All Rights Reserved.