dcsimg

Search:

Type: Posts; User: riov

Page 1 of 3 1 2 3

Search: Search took 0.08 seconds.

  1. 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...
  2. Replies
    2
    Views
    283

    VS 2017 Re: Set locale for FileDialog

    Unfortunately, it does not help.
  3. Replies
    2
    Views
    283

    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...
  4. Replies
    41
    Views
    10,632

    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...
  5. Replies
    41
    Views
    10,632

    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...
  6. Replies
    41
    Views
    10,632

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

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

    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...
  8. Replies
    9
    Views
    1,253

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

    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,...
  10. Replies
    7
    Views
    491

    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...
  11. Replies
    7
    Views
    491

    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.
  12. Replies
    7
    Views
    491

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

    by riov
    Replies
    2
    Views
    559

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

    by riov
    Replies
    2
    Views
    559

    VS 2013 List references

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

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

    Anyone? Any help?
  16. Replies
    1
    Views
    676

    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....
  17. Replies
    15
    Views
    1,441

    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...
  18. Replies
    15
    Views
    1,441

    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...
  19. Replies
    15
    Views
    1,441

    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...
  20. Replies
    15
    Views
    1,441

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

    VS 2012 Re: ReadAllBytes & threading

    It does not help. UI freezes as before.
  22. Replies
    15
    Views
    1,441

    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))
  23. Replies
    10
    Views
    1,395

    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.
  24. Replies
    10
    Views
    1,395

    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.
  25. Replies
    10
    Views
    1,395

    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...
  26. 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.
  27. 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.
  28. 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 &=.
  29. 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),...
  30. 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...
  31. 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 =...
  32. 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...
  33. Replies
    5
    Views
    1,015

    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...
  34. Replies
    5
    Views
    1,015

    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()>...
  35. Replies
    5
    Views
    1,015

    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...
  36. Replies
    1
    Views
    731

    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...
  37. Replies
    5
    Views
    1,688

    VS 2012 Re: WebBrowser: AllowDrop

    What is obvious to you is not necessarily obvious to all the rest. Do you understand it or do I need to explain it further?
  38. Replies
    5
    Views
    1,688

    VS 2012 Re: WebBrowser: AllowDrop

    Please don't waste anybody's time with your unhelpful responses ;)
  39. Replies
    5
    Views
    1,688

    VS 2012 WebBrowser: AllowDrop

    I want to make it possible to drag and drop file to my entire Form, including WebBrowser. Unfortunately, it does not have AllowDrop option (not be be confused with AllowWebBrowserDrop).
    Is there any...
  40. Replies
    6
    Views
    577

    VS 2012 Re: Extensions within Namespaces

    Yes. My ultimate goal is to build my own StringBuilder.
Results 1 to 40 of 108
Page 1 of 3 1 2 3



Featured


Click Here to Expand Forum to Full Width