dcsimg

Search:

Type: Posts; User: riov

Page 1 of 3 1 2 3

Search: Search took 0.06 seconds.

  1. Replies
    4
    Views
    345

    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...
  2. Replies
    4
    Views
    345

    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 :
  3. Replies
    4
    Views
    345

    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...
  4. 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.
    ...
  5. 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...
  6. Replies
    2
    Views
    324

    VS 2017 Re: Set locale for FileDialog

    Unfortunately, it does not help.
  7. Replies
    2
    Views
    324

    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...
  8. Replies
    44
    Views
    14,274

    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...
  9. Replies
    44
    Views
    14,274

    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...
  10. Replies
    44
    Views
    14,274

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

    Is it possible to hide/remove Help button in Vista style dialog?
  11. Replies
    9
    Views
    1,566

    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...
  12. Replies
    9
    Views
    1,566

    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...
  13. Replies
    9
    Views
    1,566

    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,...
  14. Replies
    7
    Views
    560

    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...
  15. Replies
    7
    Views
    560

    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.
  16. Replies
    7
    Views
    560

    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...
  17. Thread: List references

    by riov
    Replies
    2
    Views
    588

    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...
  18. Thread: List references

    by riov
    Replies
    2
    Views
    588

    VS 2013 List references

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

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

    Anyone? Any help?
  20. Replies
    1
    Views
    703

    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....
  21. Replies
    15
    Views
    1,534

    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...
  22. Replies
    15
    Views
    1,534

    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...
  23. Replies
    15
    Views
    1,534

    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...
  24. Replies
    15
    Views
    1,534

    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")
    ...
  25. Replies
    15
    Views
    1,534

    VS 2012 Re: ReadAllBytes & threading

    It does not help. UI freezes as before.
  26. Replies
    15
    Views
    1,534

    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))
  27. Replies
    10
    Views
    1,461

    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.
  28. Replies
    10
    Views
    1,461

    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.
  29. Replies
    10
    Views
    1,461

    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...
  30. 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.
  31. 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.
  32. 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 &=.
  33. 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),...
  34. 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...
  35. 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 =...
  36. VS 2012 [RESOLVED] ListView.Items & List(Of ListViewItem) has the same reference

    I have two issues, one major and one minor. Major issue is that I cannot edit List in BackgroundWorker if that list is used in the following expression: ListView.Items.AddRange(List.ToArray).
    Minor...
  37. Replies
    5
    Views
    1,064

    VS 2012 Re: ToolStrip button + long click down event

    I am 99.99% sure my mouse button is ok :) If you set CheckOnClick = True you would see that buttons behave and visually look differently.
    My guess would be, maybe it is some system-wide setting, but...
  38. Replies
    5
    Views
    1,064

    VS 2012 Re: ToolStrip button + long click down event

    Strange. I have no code in my form. I have just created this ToolStrip with 2 buttons.

    You can recreate my form with this code:
    <Global.Microsoft.VisualBasic.CompilerServices.DesignerGenerated()>...
  39. Replies
    5
    Views
    1,064

    VS 2012 ToolStrip button + long click down event

    Today by an accident I have found out about one interesting "feature" of ToolStrip. If you hold down mouse button for some time, button gets into pseudo-selected state. How is it "feature" called and...
  40. Replies
    1
    Views
    783

    VS 2012 CreateParams is being called multiple times

    Why is CreateParams class is called multiple times when form is first time loading?
    Why is it triggered when Restore is clicked?


    Inherits Form

    Protected Overrides ReadOnly Property...
Results 1 to 40 of 112
Page 1 of 3 1 2 3



Featured


Click Here to Expand Forum to Full Width