Search Results - VBForums

Search:

Type: Posts; User: JA12

Search: Search took 0.01 seconds.

  1. Replies
    16
    Views
    249

    Re: App.Config and adding new values

    The collection editor gives the error "" when you click on the Add button. So you obviously have to tell it which editor to use.

    112737

    And no, this definitely has to be done at Run time, and...
  2. Replies
    16
    Views
    249

    Re: App.Config and adding new values

    I've given up trying to add "New" settings to the config file, I'm now going down the route of having a single Setting "Folders" and this is a StringCollection.

    This works pretty well as I just...
  3. Replies
    9
    Views
    181

    Re: Error creating window handle

    That new form business just make things worse. Nothing was loaded, all the forms load then vanish leaving an empty MDI container. The way I had it was better, even with the dirty workaround.
  4. Replies
    16
    Views
    249

    Re: App.Config and adding new values

    OK, thanks for that. I'm a VB6 programmer, converting to VB.NET and I'm used to INI files but I'm trying to do this properly.

    If I don't get this working soon, I'm going back to using an INI...
  5. Replies
    16
    Views
    249

    Re: App.Config and adding new values

    OK, the config file it seems to be using is the


    {app name}.exe.config

    in the debug folder


    <?xml version="1.0" encoding="utf-8" ?>
    <configuration>
  6. Thread: Mdi

    by JA12
    Replies
    4
    Views
    104

    VS 2012 Re: Mdi

    Private Sub ExportToolStripButton_Click(sender As Object, e As EventArgs) Handles ExportToolStripButton.Click
    LoadFormAndRefresh(frmMain)
    End Sub

    Public Sub...
  7. Replies
    16
    Views
    249

    Re: App.Config and adding new values

    There is no such file as {app name}.user.config anywhere in the C:\ drive. There are several .config files, but they are all under the

    C:\Users\usr\Documents\Visual Studio...
  8. Thread: Mdi

    by JA12
    Replies
    4
    Views
    104

    VS 2012 Re: Mdi

    Private Sub frmMain_Load(sender As Object, e As EventArgs) Handles MyBase.Load
    Try
    If Not modGlobals.gblLogin.LoginSucceeded Then Me.Close()
    modGlobals.gCurrentForm...
  9. Replies
    16
    Views
    249

    Re: App.Config and adding new values

    Because these are dynamic settings, the user can edit and add to them as required.

    Where can I find the user config file, because none of the config files in the project structure are being...
  10. Replies
    16
    Views
    249

    Re: App.Config and adding new values

    OK, I've tested it, but although the code doesn't error, it also doesn't appear to do anything at all.

    The new Setting is not in any of the .config files change, the Project Settings or in...
  11. Replies
    16
    Views
    249

    Re: App.Config and adding new values

    It's not really the existing settings I'm having a problem with, it's the Adding of new ones...

    I'm currently testing adapted code from your example


    Dim config As...
  12. Thread: Mdi

    by JA12
    Replies
    4
    Views
    104

    VS 2012 Mdi

    I have another "MDI" problem.

    This is the sequence of instructions.

    1) Load MDI form
    2) Load Login form
    3) Log in, enable the MDI functionality only available after login
    4) Load initial...
  13. Replies
    9
    Views
    181

    Re: Error creating window handle

    I couldn't find an InnerException, but the following (very dirty) bit of code works...


    Try
    frmAdmin.Show()
    Catch ex As Exception
    frmAdmin.Show()
    ...
  14. Replies
    16
    Views
    249

    Re: App.Config and adding new values

    They are all User-scoped settings as they are pretty much all modifiable at runtime.

    I'm beginning to think that I'm going to have to XML edit the User App.config file, and let the User know that...
  15. Replies
    16
    Views
    249

    App.Config and adding new values

    I've got to the stage where I can manipulate most of the User Settings in my Appl.Config.

    Right now I'm having a problem with adding New settings.

    I tried


    My.Settings("Setting ") = "New...
  16. Re: [RESOLVED] Managing ListView Columns (with Checkboxes)

    GetItemChecked: Yes I found that, once you told me about the SetItemChecked...
  17. Re: Managing ListView Columns (with Checkboxes)

    Thanks for that, that worked.

    Not obvious, but I'm glad it's there!
  18. Re: Managing ListView Columns (with Checkboxes)

    I couldn't check if the item (string) is checked or not, nor could I change the Checked value when the control was a CheckedListBox


    For Each itm in CheckedListBox1.Items

    itm is a String so it...
  19. [RESOLVED] Managing ListView Columns (with Checkboxes)

    I started off using a CheckedListBox, but that didn't allow me to control the check boxes as I wished to. I read that a ListView with the CheckBox property set to True would give me more control, so...
  20. Replies
    9
    Views
    181

    Re: Error creating window handle

    These are the Exception details for the error

    Exception Details:
    HResult: -2147467259
    Message: Error creating window handle.
    String: System.ComponentModel.Win32Exception (0x80004005): Error...
  21. Replies
    9
    Views
    181

    Error creating window handle

    I'm having a problem with "Showing" one particular form.

    I have a dozen forms all are children of an MDI form.

    One particular form always fails on the first "Show" with the error "Error...
  22. Re: Trouble with As New VBArray(Of String)(1, 100)

    OK, not exactly what I wanted, but this works:


    Dim aFolders As Array
    aFolders = Array.CreateInstance(GetType(String), 100)

    ...
  23. Re: Trouble with As New VBArray(Of String)(1, 100)

    I've found the answer, the Class VBArray, wonderful as it is, only does integer arrays. The (Of T) bit does nothing.

    So, I'm now trying the Array.CreateInstance, but that doesn't dimension the...
  24. [RESOLVED] Trouble with As New VBArray(Of String)(1, 100)

    Now, this is the first time I've tried this workaround, and I was sort of assuming that the (Of String) would define the array as an array of Strings.

    But, when I "Watch" the resulting array, the...
  25. VS 2012 Re: Disabled buttons that should be Enabled in Child form

    Thanks for that, the panel was the problem. That thought did come to me overnight, but I hadn't thought of it immediately because the MaskedTextBox, which is also bound to the same panel was not...
  26. VS 2012 [RESOLVED] Disabled buttons that should be Enabled in Child form

    I'm having a problem with all the buttons in a "Child" form. They are all Disabled (see image).

    Only one (the middle one) is Enabled = False, I've even gone to the extent of overriding the Design...
  27. Replies
    0
    Views
    69

    VS 2012 Problem with MDI StatusBar

    I have this MDI form with a StatusBar.

    It has two elements:


    ToolStripStatusLabel
    ToolStripStatusLabel1

    "ToolStripStatusLabel" remains static and I never try to change it, but...
  28. Replies
    2
    Views
    110

    Re: Problem with Directory.GetFiles

    Brilliant!

    I copied the code from an example and didn't pay full attention to what the code was doing...


    .[Select](Function(nm) Path.GetFileName(nm))

    This bit strips the path information...
  29. Replies
    2
    Views
    110

    [RESOLVED] Problem with Directory.GetFiles

    Visual Studio Express 2012
    VB.NET

    Everything I've read about Directory.GetFiles says that it returns the full path of the files it finds in a folder. My code is only returning the filename.ext.
    ...
  30. Replies
    2
    Views
    3,212

    Re: Inno Setup - Install file in user's profile

    Yes, there are LOTS of examples of Pascal Script, but there is nothing I can find that shows how to call the function.

    I've tried

    #define OutputFolder {Code:FunctionName}
    #define OutputFolder...
Results 1 to 30 of 30



Featured


Click Here to Expand Forum to Full Width

Survey posted by VBForums.