Search:

Type: Posts; User: Signalman

Page 1 of 8 1 2 3 4

Search: Search took 0.10 seconds.

  1. Replies
    5
    Views
    250

    Re: When enter is not Enter

    That's what it generated when i selected the Enter function.

    How do I detect when the enter is pressed in a text box ?
  2. Replies
    5
    Views
    250

    When enter is not Enter

    I currently have a form with a text box on it. within the form I have a trigger on Enter being pressed. An example is :-


    Private Sub TextBox1_Enter()
    MsgBox ("enter")
    End Sub


    however...
  3. Re: return information from form to calling macro

    Thanks, That's what I thought, but how do I pass a variable back to the calling macro, when it has been triggered by a keyup event on the form ?
  4. return information from form to calling macro

    I currently have a VBA macro that calls a Form with


    UserForm2.Show

    in userform2 there is a text box (and button) which data can be entered. The user can press either enter, the 'ok' button...
  5. Replies
    10
    Views
    574

    VS 2010 Re: Seperating Code

    Having carried out more tests, the ToolstripMenuitem will generate a cross thread error if it is accessed other than on the UI thread.

    As suggested by JMC :-

    You can't invoke the...
  6. Replies
    10
    Views
    574

    VS 2010 Re: Seperating Code

    However when i try to convert the first item in my code , which is a menu strip item, it generates an error as there is no invoke member.

    Trying this in my simplified code also gives the same...
  7. Replies
    10
    Views
    574

    VS 2010 Re: Seperating Code

    Ok, I have been carrying out some tests, and i may have taken the comments in your origional post to litteraly.
    when you said


    This gave me the impression that you could only call invoke if you...
  8. Replies
    10
    Views
    574

    VS 2010 Re: Seperating Code

    Certainly not, and the thread is most useful. However when trying this, i have encountered a couple of issues.

    The first being that I am still using VS2010. It generates errors if you dont...
  9. Replies
    10
    Views
    574

    VS 2010 Seperating Code

    I have some old code that I am currently converting / updating, which contains threads.
    I will simplyfy it.

    I have (numerous) functions that i call in it so that the code can run on multiple...
  10. Replies
    3
    Views
    276

    Re: Threads -vba background task

    Thanks, Is there no way to define a new thread and start the task under the new thread like in vb.net

    It's the same application that the macro is running under that I want to continue to using
  11. Replies
    3
    Views
    276

    Threads -vba background task

    Is it possible to run a VBA macro as a background task and as such will not lock up the UI or prevent other tasks from being carried out ?
  12. Replies
    1
    Views
    192

    VS 2010 Invoke & Threading

    Currently I have an application that is multi threaded. As such when the non UI thread wnats to access a control on the UI, it needs to invoke.

    To do this I have the following code for each...
  13. VS 2019 Re: Forms, Data sources and not running on the UI

    can someone talk me thro LINE BY LINE what the code does and the FLOW it takes, as i suspect that on some lines the code continues to process the next line before the current one is executed.

    ...
  14. VS 2019 Re: Forms, Data sources and not running on the UI

    Thanks, i understand the principal and reason, what I don't understand is how to code it. It looks like you add async & wait into the code, but what this actual statement does in isolation is what...
  15. VS 2019 Re: Forms, Data sources and not running on the UI

    I understand that you have to use async and wait so that the code will be executed and not get a blocked GUI. What I need to know is how to code this and understand what effect the commands have on...
  16. VS 2019 Re: Forms, Data sources and not running on the UI

    Now I am new to all this, so forgive me if your explanation does make sense to me.
    What happens when the Line of code that contains async is executed as likewise the line containing await. ?
  17. VS 2019 Re: Forms, Data sources and not running on the UI

    The example Karen has provide is most interesting (thankyou Karen), albeit I understand what it should be doing, but not the code.

    in the form, it has the following



    Public Class Form1
    ...
  18. Replies
    7
    Views
    391

    VS 2019 Re: Update of SQL Database for Data Table

    Looks like the way i was coding it was having undesired effect on the datagrid view.

    In the example above, is there any advantage of using a binding source (as I can't see one)
  19. Replies
    7
    Views
    391

    VS 2019 Re: Update of SQL Database for Data Table

    That's really helpful. One thing that I don't understand is what adding the binding source should do.

    What it appears to do is make the data grid look more like a MS Access table, when additional...
  20. Replies
    7
    Views
    391

    VS 2019 Update of SQL Database for Data Table

    I currently have the code below that when executed, reads the contents fo a SQL database and displays it in a data table. This can be the edited.
    Once edited, the save button is clicked, with the...
  21. VS 2019 Forms, Data sources and not running on the UI

    I currently have a programme that has a SQL database which contains a table called 'ControlRecords', which when the option is selected from the main form, loads a new form, which contains a data...
  22. VS 2010 Re: Windows 7 - Windows 10 conversion - Slow running

    I also tested the above code (running on the UI in VS2019) and when running on windows 10, the same sluggish result was obtained

    i have then amended the code so it does not run on the UI

    ...
  23. Thread: Platform x64

    by Signalman
    Replies
    6
    Views
    372

    VS 2010 Platform x64

    Having created a new project, i have just come to compile it, and within the Platform option of the configuration, there is no x64 option. This is despite the advanced compile options showing the...
  24. VS 2010 Re: Windows 7 - Windows 10 conversion - Slow running

    Yes, code would not normally be written like this, as having long running tasks on the UI is not good practice.

    It was written to test the timings, and it has served its purpose

    Sadly no one...
  25. VS 2010 Re: Windows 7 - Windows 10 conversion - Slow running

    Ok, I have carried out a test with the following (very simple code)



    Private Sub Button1_Click(sender As System.Object, e As System.EventArgs) Handles Button1.Click

    Dim...
  26. Replies
    3
    Views
    324

    Re: Windows 10 - Excel

    Thanks, I should have said that office/ excel has also been upgraded from office 2010 to office 2019 as well

    However i have removed
    .windowstate and .usercontrol

    And it works ok again.
  27. VS 2010 Re: Windows 7 - Windows 10 conversion - Slow running

    Both versions of windows are running Visual studio 2010, so would you still expect a large difference in performance ?
  28. Replies
    3
    Views
    324

    [RESOLVED] Windows 10 - Excel

    I have just run a programme under widows 10 (previously ran under windows 7) which opens an excel file and reads the data, then closes the excel file. When this ran under windows 7, it did this in...
  29. VS 2010 Windows 7 - Windows 10 conversion - Slow running

    I have currently transferred form windows 7 to windows 10 (clean installation) with VS2010. I have a very complex programme that is now running considerably slower under windows 10. all the config...
  30. Replies
    1
    Views
    385

    Office 2019 licence

    Ok, not strictly VB, but I am sure that there are plenty of people who can assist.

    Looking at office 2019, it suggests that there are two ways of licensing the product,
    The first being via a...
  31. Replies
    1
    Views
    308

    Display folderes - Too Small

    Ok, I have the following code, that works ok, with the last line displaying the folder structure, allowing one to be selected.


    Set myOlApp = Outlook.Application
    Set iNameSpace =...
  32. Re: Basic quesions regarding databound controls

    Is there any reason why the lessons won't display on an iPAd, it just gives a link to David Day Leagal associate ?
  33. Replies
    3
    Views
    715

    Re: Create OutlookFolder

    Ok i think i have got it to work, by chance. - for reference for others.

    replacing the

    Set itm = ns.GetDefaultFolder(olFolderInbox)
    with

    Set itm = ns.folders("mailbox name")
  34. Replies
    3
    Views
    715

    Create OutlookFolder

    Ok, this may not be strictly VB.net however I am hoping someone can help

    In VBA - outlook I am trying to create a folder directly under the high level account name (not the in box or Drafts etc....
  35. Replies
    5
    Views
    453

    vs2010 OR vs2019 Community

    Now I am looking at upgarding a pc to Windows 10, which means that I will relaod all the sofrware, (alwase liek a clean install rather than upgrade). For someone who only uses VS on an adhoc basis,...
  36. Replies
    19
    Views
    1,197

    VS 2010 Re: Make self-destruction app

    Its quite simple really, programme 1 creates programme 2, which has the command to delete programme 1. Programme 1 runs proramme 2 only evidence is programme 2, but you cant see what programme 1 did...
  37. Replies
    19
    Views
    1,197

    VS 2010 Re: Make self-destruction app

    The obvious usage would be to create some sort of virus, or perform some sort of action on the PC and by deleting the app, you remove the evidence of what caused the issue /damage.
  38. Replies
    7
    Views
    603

    VS 2010 Re: DataTable Search

    JMC and Shaggy Hiker, many thanks for the info, this is really useful.
    I will do some testing.
  39. Replies
    7
    Views
    603

    VS 2010 Re: DataTable Search

    I actually mean quicker in run time, the tables are quite large and have to be looked up each time for many 1000's of records.

    I was hoping that there would be an equivalent of doing a SQL search...
  40. Replies
    7
    Views
    603

    VS 2010 DataTable Search

    Currently I have a data table that I want to use as a 'look up' table. To search for an item do I have to look through every item (for next loop or equivalent) sequentially in the table until I...
Results 1 to 40 of 315
Page 1 of 8 1 2 3 4



Click Here to Expand Forum to Full Width