Page 1 of 2 12 LastLast
Results 1 to 15 of 19
  1. #1
    Blubb1337's Avatar
    Join Date
    Sep 2009
    Gender
    male
    Location
    Germany
    Posts
    5,915
    Reputation
    161
    Thanks
    3,108

    [Solved]Settings

    Ow screw this :/ idk what's wrong...


    Code:
         Private Sub ComboBox1_TextChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles ComboBox1.TextChanged
            If ComboBox1.Text = "Blue" Then
                RibbonControl1.Office2007ColorTable = DevComponents.DotNetBar.Rendering.eOffice2007ColorScheme.Blue
                My.Settings.style = "Blue"
                My.Settings.Save()
                My.Settings.Reload()
    
            ElseIf ComboBox1.Text = "Black" Then
                RibbonControl1.Office2007ColorTable = DevComponents.DotNetBar.Rendering.eOffice2007ColorScheme.Black
                My.Settings.style = "Black"
                My.Settings.Save()
                My.Settings.Reload()
    
    
            ElseIf ComboBox1.Text = "Silver" Then
                RibbonControl1.Office2007ColorTable = DevComponents.DotNetBar.Rendering.eOffice2007ColorScheme.Silver
                My.Settings.style = "Silver"
                My.Settings.Save()
                My.Settings.Reload()
            End If
    So it actually does change .style to "Silver", however just until I close the program. So...it does change my.settings but it does not save =/



  2. #2
    Invidus's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Posts
    2,167
    Reputation
    23
    Thanks
    650
    My Mood
    Bored
    Did you actually enter a string setting in your application properties?

  3. #3
    Blubb1337's Avatar
    Join Date
    Sep 2009
    Gender
    male
    Location
    Germany
    Posts
    5,915
    Reputation
    161
    Thanks
    3,108
    yes i did as i said...it does change...but it doesn't save..



  4. #4
    Invidus's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Posts
    2,167
    Reputation
    23
    Thanks
    650
    My Mood
    Bored
    Lol you have a lot of problems don't you..

  5. #5
    Blubb1337's Avatar
    Join Date
    Sep 2009
    Gender
    male
    Location
    Germany
    Posts
    5,915
    Reputation
    161
    Thanks
    3,108
    All those weird problems whose seem illlogical -_-



  6. #6
    Invidus's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Posts
    2,167
    Reputation
    23
    Thanks
    650
    My Mood
    Bored
    Lol exactly

  7. #7
    Blubb1337's Avatar
    Join Date
    Sep 2009
    Gender
    male
    Location
    Germany
    Posts
    5,915
    Reputation
    161
    Thanks
    3,108
    ok =/ hopefully you find something...



  8. #8
    Blubb1337's Avatar
    Join Date
    Sep 2009
    Gender
    male
    Location
    Germany
    Posts
    5,915
    Reputation
    161
    Thanks
    3,108
    Code:
      Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
    
            RibbonControl1.Office2007ColorTable = My.Settings.style
        End Sub
    Code:
    Private Sub ComboBox1_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles ComboBox1.SelectedIndexChanged
            If ComboBox1.Text = "Blue" Then
                RibbonControl1.Office2007ColorTable = DevComponents.DotNetBar.Rendering.eOffice2007ColorScheme.Blue
                My.Settings.style = DevComponents.DotNetBar.Rendering.eOffice2007ColorScheme.Blue
            End If
    
            If ComboBox1.Text = "Black" Then
                RibbonControl1.Office2007ColorTable = DevComponents.DotNetBar.Rendering.eOffice2007ColorScheme.Black
                My.Settings.style = DevComponents.DotNetBar.Rendering.eOffice2007ColorScheme.Black
            End If
    
            If ComboBox1.Text = "Silver" Then
                RibbonControl1.Office2007ColorTable = DevComponents.DotNetBar.Rendering.eOffice2007ColorScheme.Silver
                My.Settings.style = DevComponents.DotNetBar.Rendering.eOffice2007ColorScheme.Silver
            End If
    
            My.Settings.Save()
            My.Settings.Reload()
    
        End Sub
    Neither works. It simply does not save.



  9. #9
    Bluthera's Avatar
    Join Date
    Dec 2009
    Gender
    female
    Location
    Shibuya, Tokyo
    Posts
    2,375
    Reputation
    13
    Thanks
    373
    My Mood
    Tired
    gah.. VB is really annoying sometimes. even when codes are perfect.
    [IMG]https://i564.photobucke*****m/albums/ss89/JRendell21/Graphics/Flow-Signature.jpg[/IMG]

  10. #10
    NextGen1's Avatar
    Join Date
    Dec 2009
    Gender
    male
    Location
    Not sure really.
    Posts
    6,312
    Reputation
    382
    Thanks
    3,019
    My Mood
    Amazed
    Use form load to check the state of the combo-box instead of the settings


    If Combo-Box1.SelectedItem = "Black" then
    yada yada
    Else if ComboBox1.selecteditem = "Silver"
    Yadayada
    Else if
    You get the idea
    end if



    Last edited by NextGen1; 02-28-2010 at 08:57 AM.


     


     


     



    The Most complete application MPGH will ever offer - 68%




  11. #11
    mnpeepno2's Avatar
    Join Date
    Dec 2009
    Gender
    male
    Location
    In a barren wasteland
    Posts
    905
    Reputation
    10
    Thanks
    81
    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
    If my.settings.style = blue then
    RibbonControl1.Office2007ColorTable = RibbonControl1.Office2007ColorTable.Blue
    ElseIf my.settings.style = black then
    RibbonControl1.Office2007ColorTable = RibbonControl1.Office2007ColorTable.Black
    ElseIf my.settings.style = Silver then
    RibbonControl1.Office2007ColorTable = RibbonControl1.Office2007ColorTable.Silver
    End If
    End Sub


    -----------------------------------------------

    My site: here
    My Blog: here
    My member's area: here
    Minecraft Sever Forum: here


    Minecraft Servers:

    Public:



    Private:



  12. #12
    Blubb1337's Avatar
    Join Date
    Sep 2009
    Gender
    male
    Location
    Germany
    Posts
    5,915
    Reputation
    161
    Thanks
    3,108
    it does not save...even nextgen couldn't fix it >_<



  13. #13
    mnpeepno2's Avatar
    Join Date
    Dec 2009
    Gender
    male
    Location
    In a barren wasteland
    Posts
    905
    Reputation
    10
    Thanks
    81
    my way is how i make it work, if you want a foolproof way, then PM me


    -----------------------------------------------

    My site: here
    My Blog: here
    My member's area: here
    Minecraft Sever Forum: here


    Minecraft Servers:

    Public:



    Private:



  14. #14
    Blubb1337's Avatar
    Join Date
    Sep 2009
    Gender
    male
    Location
    Germany
    Posts
    5,915
    Reputation
    161
    Thanks
    3,108
    thing is...form1 does NOT matter at all. it simply does NOT save...

    100% if sentences of comoboBox...does work without if's...
    Last edited by Blubb1337; 02-28-2010 at 12:20 PM.



  15. #15
    NextGen1's Avatar
    Join Date
    Dec 2009
    Gender
    male
    Location
    Not sure really.
    Posts
    6,312
    Reputation
    382
    Thanks
    3,019
    My Mood
    Amazed
    Yea, Internet Crashed, But I team viewed, nothing is working, It's so strange.....


     


     


     



    The Most complete application MPGH will ever offer - 68%




Page 1 of 2 12 LastLast

Similar Threads

  1. [Solved]Set Time Chat mensage
    By FILIPE1 in forum Call of Duty Modern Warfare 2 GSC Modding Help/Discussion
    Replies: 3
    Last Post: 10-06-2010, 10:59 AM
  2. [Solved]Set volume?
    By Zoom in forum Visual Basic Programming
    Replies: 6
    Last Post: 06-13-2010, 08:14 PM
  3. [Help]Saving Settings of a form[solved]
    By poneboy00 in forum Visual Basic Programming
    Replies: 9
    Last Post: 03-20-2010, 09:18 AM
  4. [Help]Settings[Solved]
    By ppl2pass in forum Visual Basic Programming
    Replies: 6
    Last Post: 03-15-2010, 07:36 PM
  5. [Help]HideForm as Setting[Solved]
    By zmansquared in forum Visual Basic Programming
    Replies: 5
    Last Post: 03-08-2010, 10:54 PM