Search:

Type: Posts; User: riov

Page 1 of 3 1 2 3

Search: Search took 0.03 seconds.

  1. Replies
    24
    Views
    8,650

    Re: Vote: To be able to debug static variables

    At least in one of my PCs that is really the case. I will check my other setups a little bit later. However, issue still remains for console apps.
  2. Replies
    24
    Views
    8,650

    Re: Vote: To be able to debug static variables

    I have tried it on VS 16.2.0 and VS 16.5.5. I have different PCs, which have different OS.
  3. Replies
    24
    Views
    8,650

    Re: Vote: To be able to debug static variables

    Not in my case:
    https://snipboard.io/EVix7A.jpg
  4. Replies
    24
    Views
    8,650

    Re: Vote: To be able to debug static variables

    OK, I have installed the latest version of VS and I have tried it again. It is not working.


    Sub Test()
    Static foo As Integer = 5

    Stop
    Console.WriteLine(foo)
    End Sub
  5. Replies
    24
    Views
    8,650

    Vote: To be able to debug static variables

    There is an old bug that does not allow you to debug static variables in VS. Can I please ask you to vote on this issue so that it gets fixed? Link.
  6. Replies
    4
    Views
    1,131

    VS 2017 Re: Binary literal formating

    Yes, Pretty listing option is turned off in my VS. I was not aware that it and Format Document do the same thing.

    On the further investigation it looks like there is no way to disable this...
  7. Replies
    4
    Views
    1,131

    VS 2017 Re: Binary literal formating

    ' Before
    Select Case value And &B00111111
    Case &B00000100 :
    Case &B00010000 :
    Case &B00100001 :
    End Select

    ' After
    Select Case value And &B111111
    Case &B100 :
  8. Replies
    4
    Views
    1,131

    VS 2017 Binary literal formating

    When I use a Format Document feature (Ctrl+K, Ctrl+D), my binary literal gets reformatted so that all the leading zeros are removed. For example, &B0001 becomes &B1. How can this be avoided so that...
  9. Replies
    9
    Views
    6,409

    VS 2017 Re: ListView with many SubItems is extremely slow

    You do not know what I am trying to use it for. To put is simply, it will be used to visually recognize patterns in data sets. I see absolutely nothing wrong with having many columns in this case.
    ...
  10. Replies
    9
    Views
    6,409

    VS 2017 ListView with many SubItems is extremely slow

    I am facing a issue that ListView becomes extremely laggy when I add many SubItems. For example, when I try to do a horizontal scroll, it takes about 1 second to update/repaint and that is not...
  11. Replies
    2
    Views
    569

    VS 2017 Re: Set locale for FileDialog

    Unfortunately, it does not help.
  12. Replies
    2
    Views
    569

    VS 2017 Set locale for FileDialog

    Is there any way to force FileDialog's locale? Setting thread's culture has no effect.


    Dim t As New Thread(Sub()
    Using o = New OpenFileDialog
    o.ShowDialog
    End Using...
  13. Replies
    51
    Views
    45,953

    Re: [vb6]Common Dialog Class (Yet Another One)

    Unfortunately, under further investigation it looks like it is impossible to hide that Help button. The reason is that it has no hwnd as it is drawn by DirectUIHWND. I can get a list of its...
  14. Replies
    51
    Views
    45,953

    Re: [vb6]Common Dialog Class (Yet Another One)

    Yes, I can find that button, it is called "&Help". Given that IModalWindow::Show is a blocking call, it would be complicated to use ShowWindow API to hide it. I was hoping to use IFileDialogCustomize...
  15. Replies
    51
    Views
    45,953

    Re: [vb6]Common Dialog Class (Yet Another One)

    Is it possible to hide/remove Help button in Vista style dialog?
  16. Replies
    9
    Views
    4,005

    VS 2017 Re: Unhandled exceptions

    I believe using MyApplication.UnhandledException as the single global unhandled exception handler would yield unexpected results.
    For example, this exception will not be caught when placed in...
  17. Replies
    9
    Views
    4,005

    VS 2017 Re: Unhandled exceptions

    Thank you for such an extensive answer.
    1. I must say there is quite a lot of contradiction on this matter. For example, here it is suggested to use the first two events, here - all three events and...
  18. Replies
    9
    Views
    4,005

    VS 2017 Unhandled exceptions

    As far as I know, there are 3 events that are fired when unhandled exceptions happen within Windows Forms application: Windows.Forms.Application.ThreadException,...
  19. Replies
    7
    Views
    837

    VS 2015 Re: Substituting structures for classes

    I know how to build a basic structure and basic class, I also know that structure won't work with my given example as it is not a reference type, hence adding values to the list won't be possible...
  20. Replies
    7
    Views
    837

    VS 2015 Re: Substituting structures for classes

    I don't see how namespaces solves my issues.
    I am trying to make the above code to work without errors and I have listed two requirements.
  21. Replies
    7
    Views
    837

    VS 2015 Substituting structures for classes

    I want to create a bit more complicated class, but I am not sure how to do this. Here is an example of what I want:

    Dim foo As StructSubstitute

    Class StructSubstitute
    ReadOnly Property Main...
  22. Thread: List references

    by riov
    Replies
    2
    Views
    771

    VS 2013 Re: List references

    It lists some, but not everyone. For example, I don't get "Adobe Photoshop CC 2014 Object Library" and some others that I am looking for. I have tried changing InprocServer32 to InprocServer64, but...
  23. Thread: List references

    by riov
    Replies
    2
    Views
    771

    VS 2013 List references

    How can I get a list of all COM references that I see in Reference Manager?
    NET 4.5.
  24. Replies
    1
    Views
    834

    MsOf13 Re: Reading Shell's output (64-bit)

    Anyone? Any help?
  25. Replies
    1
    Views
    834

    MsOf13 Reading Shell's output (64-bit)

    Can anyone provide a working example how to read Shell's StdOut under VBA7 (64-bit) using CreateProcess and ReadFile APIs? There are many working examples how to do it in 32-bit mode (e.g....
  26. Replies
    15
    Views
    2,013

    VS 2012 Re: ReadAllBytes & threading

    My current project is made of 4k+ lines of code. I really don't want to paste it here.
    And my sample project is made of 2 Subs (BackgroundWorker1_DoWork & Button1_Click), all the rest is commented...
  27. Replies
    15
    Views
    2,013

    VS 2012 Re: ReadAllBytes & threading

    Here is a video: http://screencast.com/t/R8L5fLvetfVa. As you can see after pressing Button1 UI freezes, then it becomes responsive.

    But here is the thing, if I remove those two buttons (#2 and...
  28. Replies
    15
    Views
    2,013

    VS 2012 Re: ReadAllBytes & threading

    As I said in my previous post, BGW class is not helping in this case.

    I dare to disagree that Task.Run is sync. This code is not freezing UI:

    Task.Run(Sub()
    Do...
  29. Replies
    15
    Views
    2,013

    VS 2012 Re: ReadAllBytes & threading

    Private Sub BackgroundWorker1_DoWork(sender As Object, e As System.ComponentModel.DoWorkEventArgs) Handles BackgroundWorker1.DoWork
    Dim ba As Byte()
    ba = File.ReadAllBytes("C:\1GB_file")
    ...
  30. Replies
    15
    Views
    2,013

    VS 2012 Re: ReadAllBytes & threading

    It does not help. UI freezes as before.
  31. Replies
    15
    Views
    2,013

    VS 2012 ReadAllBytes & threading

    How to read huge file into memory and not freeze UI? Speed is important.

    Threading does not seem to help:

    Task.Run(Sub() ba = File.ReadAllBytes(fp))
  32. Replies
    10
    Views
    1,800

    VS 2012 Re: Reduce executable size

    Mystery solved. VS by default adds icon to every new project. Its size is 10.1 Kb. If I remove icon, I get exe which size is 14.3 Kb. That's good enough for me.
  33. Replies
    10
    Views
    1,800

    VS 2012 Re: Reduce executable size

    Sure. No problems with that.

    One question remains unanswered, why there is exe that is more than 2x smaller and is not empty. In that case overhead is about 10 Kb, and I want to achieve that.
  34. Replies
    10
    Views
    1,800

    VS 2012 Reduce executable size

    I got curious why empty project (WFA with an empty Form; only two references in the project; Release mode) generates exe which is 24,6 KB big? I have found by accident exe file which size is only...
  35. VS 2012 Re: ListView.Items & List(Of ListViewItem) has the same reference

    ident, spot on, thank you!

    techgnome, nope, I am trying to modify List, I don't care about UI and I don't want to alter anything on it during DoWork.
  36. VS 2012 Re: ListView.Items & List(Of ListViewItem) has the same reference

    So, can anyone suggest anything?
    Even if I choose to go with Control.Invoke, I can only think of a way that would invoke control on each update (that means 10k+ times) and that does not sound great.
  37. VS 2012 Re: ListView.Items & List(Of ListViewItem) has the same reference

    I wasn't originally passing List, but then I found this example.

    Yes, you are right, += needs to be changed to &=.
  38. VS 2012 Re: ListView.Items & List(Of ListViewItem) has the same reference

    Not sure how can I explain my goal simpler.
    1) I read some data from many files into List(Of ListViewItem), when completed
    2) I update ListView using AddRange (I don't need to update it on the go),...
  39. VS 2012 Re: ListView.Items & List(Of ListViewItem) has the same reference

    And I don't want to - that's the point. I want to edit List, I don't want to edit control, but VB does not give me such an option.

    I am trying to edit List here:
    For Each item As ListViewItem In...
  40. VS 2012 Re: ListView.Items & List(Of ListViewItem) has the same reference

    kebo,
    It is quite interesting that MS calls it a feature. Btw, moving code to Form1_Shown does not change anything. I can put for example this and get no error: Dim a, b, c As Integer : a = 5 : c =...
Results 1 to 40 of 117
Page 1 of 3 1 2 3



Click Here to Expand Forum to Full Width