Search Results - VBForums

Search:

Type: Posts; User: i00

Page 1 of 13 1 2 3 4

Search: Search took 0.04 seconds.

  1. Replies
    15
    Views
    284

    Re: There is already an open DataReader???

    Hey sorry ... been busy ... I just ended up using a 2nd connection ...

    Thanks,
    Kris
  2. VS 2013 Unhandled errors working in debug but not in runtime???

    I am handling the UnhandledException and FirstChanceException events, but my app doesn't pickup the unhandled errors unless it is running in VS....

    I found somewhere to put this at the startup of...
  3. Replies
    15
    Views
    284

    There is already an open DataReader???

    I have the following (this is stripped testcase):

    Using Scon As New System.Data.SqlClient.SqlConnection("Data Source=MYPC\INSTANCE;Initial Catalog=DB;Integrated...
  4. Replies
    1
    Views
    123

    Sub property binding not working in XP??

    Binding a sub Property eg:

    Dim ctl = DirectCast(e.Item.GetCorrespondingNewControl(PersonContactsRowItem1), PersonContactsRowItem)
    Dim BoundItem =...
  5. Replies
    2
    Views
    196

    _Scroll not being called??

    Ok... I have a control with AutoScroll and want a way to work out when the control area has been scrolled regardless of how it was scrolled ...
    Q1: How is it best to do this?

    The reason I ask is...
  6. Re: Make control that only supports controls being placed within a certain subcontrol

    Ok ..think i found some stuff ... will post back if I solve it
  7. [RESOLVED] Make control that only supports controls being placed within a certain subcontrol

    Hi ... I am making a control that has a panel within it ... and require the designer to allow controls to only to be placed within the panel control.

    How can I do this?
    Thanks,
    Kris
  8. VS 2013 Re: WinForms Binding to sub property and binding sub controls in a data repeater?

    The only way I can work out of doing it is manually binding on the DrawItem event :(... would be nice to do it on the ItemCloned event ... but the e.DataRepeaterItem.ItemIndex is always 0 when that...
  9. VS 2013 Re: WinForms Binding to sub property and binding sub controls in a data repeater?

    I have attached a test case project here so that you can see what I mean:

    118811

    Thanks,
    Kris
  10. VS 2013 WinForms Binding to sub property and binding sub controls in a data repeater?

    This is WinForms BTW:

    ... just say I have an object that is like this:

    Public class Address
    Public Property UnitNo as integer
    Public Property HouseNo as integer
    Public Property...
  11. Replies
    2
    Views
    170

    VS 2012 Re: Playing 2 or more audio resources at once?

    NAudio is open source and can do this ... it's open source in c#... it can play from memory streams.

    Edit:

    If you download the full source there NAudioDemo project (although in C#) has an...
  12. VS 2012 Re: [RESOLVED] Getting Average RGB Color Value of Entire Screen

    Sweet ... cutting it into chunks is faster! ...

    Interpolation Method: Color [A=255, R=214, G=219, B=233] 4453.9713ms
    LockBits Multiple Interop Method: Color [A=255, R=217, G=220, B=223]...
  13. VS 2012 Re: [RESOLVED] Getting Average RGB Color Value of Entire Screen

    Just stoped and hooked into home ... you are correct ...

    Interpolation Method: Color [A=255, R=214, G=219, B=233] 4467.9798ms
    LockBits Multiple Interop Method: Color [A=255, R=218, G=221, B=224]...
  14. VS 2012 Re: [RESOLVED] Getting Average RGB Color Value of Entire Screen

    Will check it in a few hours ... on the road atm

    ... hrm ... faster processing for smaller parts ... I would have thought that processing the whole thing would be faster if you have the memory to...
  15. VS 2012 Re: [RESOLVED] Getting Average RGB Color Value of Entire Screen

    Well it's still ALOT faster than your method ... as I discussed, and like I said when I originally posted, LockBits would be my preferred method, but the other way may be easier for n00bs.

    Kris
  16. VS 2012 Re: [RESOLVED] Getting Average RGB Color Value of Entire Screen

    Did you read the whole post with the edits? ... all but the last would have been there judging by the time of your post.
    I Modified my answer and my method is still faster as creating a color object...
  17. VS 2012 Re: Getting Average RGB Color Value of Entire Screen

    Well your method crashed for me...

    118723

    EDIT: This thing can't seem to attach images correctly without making them look like c*** ... anyway error is:


    An unhandled exception of type...
  18. VS 2012 Re: Getting Average RGB Color Value of Entire Screen

    As I stated ...

    Also for everyone's info I wrote this quick comparison:

    Using b As New Bitmap(Screen.PrimaryScreen.Bounds.Width, Screen.PrimaryScreen.Bounds.Height)
    Using g...
  19. Replies
    2
    Views
    269

    VS 2013 Re: [RESOLVED] Leakey wpf

    I know this is an old post ... but it is not that I don't trust the garbage collector ... it is that the objects were not getting disposed of ... so even when the gc collects there was still a lot of...
  20. Re: How can I control the mouse pointer Manual handle EnumChildWindows

    OK ... there are a few things you need to do here ...

    get the location of the mouse cursor (check MousePosition)
    and find the window handle at that location (check the WindowFromPoint API)

    Kris
  21. VS 2013 Problem with DataRepeater Null values with Linq2SQL

    OK ... sorry for this basically duplicate post ... but I accidently market the other one as resolved before I realised that my changes didn't fix the issue ...

    Basically I have a DataRepeater...
  22. VS 2013 Re: Problem with clearing null values on DataRepeater

    Whops ... marked as resolved prematurely ...
  23. VS 2013 [RESOLVED] Problem with clearing null values on DataRepeater

    I am using linq to sql and binding the objects to the single control (PersonDatesRowItem1) inside a DataRepeater...

    Public Sub SetPerson(PersonID)
    PersonDatesRowItem1.DataBindings.Clear()
    ...
  24. VS 2012 Re: Getting Average RGB Color Value of Entire Screen

    Ok ... if you want to do this quickly you could:

    Create a new bitmap that is smaller (1x1) ... turn InterpolationMode to high and draw the large screen shot on the smaller bitmap using drawImage...
  25. Thread: DPI issue

    by i00
    Replies
    1
    Views
    175

    VS 2013 Re: DPI issue

    *shameful bump
  26. Thread: DPI issue

    by i00
    Replies
    1
    Views
    175

    VS 2013 DPI issue

    Hi ... If the user is not using the standard windows dpi in my windows forms application and I then go:

    Dim Blur As New System.Windows.Media.Effects.BlurEffect()

    The app will then switch to 96...
  27. Replies
    6
    Views
    290

    VS 2013 Re: Add event handler to Object

    *shameless bump
  28. Replies
    5
    Views
    203

    VS 2013 Re: Convert this to VB.net???

    Thanks TnTinMn ...

    It's a large project so I used your "BitConverter.ToInt16(BitConverter.GetBytes(SomethingElse), 0)" method...
    This way I don't risk breaking something else.

    Thanks again,...
  29. Replies
    5
    Views
    203

    VS 2013 [RESOLVED] Convert this to VB.net???

    This is in c sharp:

    Something = (short)SomethingElse;

    SomethingElse in this case is a Uinteger with a value of 49467

    ... How do I convert it to VB.Net as when I do this using cshort it will...
  30. Replies
    6
    Views
    290

    VS 2013 Re: Add event handler to Object

    I have don that:


    Dim ComObject = Trycast(Control.UnderlyingComObject, Test)
    '----------
    <ComImport(), _
    Guid("BAA05248-AA87-4C45-A0CC-DD3677AF2790")>
    Public...
  31. Replies
    6
    Views
    290

    VS 2013 Re: Add event handler to Object

    Nope doesn't work ... set up the interface with the same event in it and when trying to cast to the interface get:


    InvalidCastException: Unable to cast COM object of type 'System.__ComObject' to...
  32. Replies
    6
    Views
    290

    VS 2013 Add event handler to Object

    How can I add an event handler to an object that I know the structure of, but visual studio does not .... it is a System.__ComObject

    You can use AddHandler for known object structures ... but if I...
  33. Replies
    2
    Views
    165

    VS 2013 Why is this leakey??

    This is an test-case, extracted from a larger project....

    Basically it appears to memory leak (about 4 MB each time it executes - Button1_Click() + 2 GDI objects)

    Public Shared Sub Test(URL As...
  34. Replies
    13
    Views
    366

    VS 2013 Re: KeyDown not working correctly???

    DELETED *ID10T error
  35. Replies
    13
    Views
    366

    VS 2013 Re: KeyDown not working correctly???

    So:
    (e.KeyData And Keys.F) = Keys.F
    is incorrect??? because I have always done that elsewhere and it has always worked with simpler enums (i.e. values of 1,2,4,8,16 etc)

    .. and yes I know that I...
  36. Replies
    22
    Views
    469

    VS 2013 Re: save program state from ram

    These read and write with a similar method to the one discussed here:
    http://www.codeproject.com/Articles/670373/Csharp-Read-Write-another-Process-Memory

    Kris
  37. Replies
    15
    Views
    326

    Re: The easiest way to not use parallel array ?

    Agree completely ... didn't know what the circumstance was.

    Kris
  38. Replies
    15
    Views
    326

    Re: The easiest way to not use parallel array ?

    Either use a dictionary(of PictureBox, salaries) (as jmcilhinney suggested) or, depending on how this is going to be used, create an object that holds both and store it in some kind of iEnumerable...
  39. Replies
    13
    Views
    366

    VS 2013 KeyDown not working correctly???

    Hi I am trying to make Ctrl+F do a search (and I have used this kind of thing elsewhere too) ... so I have something like this:

    Private Sub Me_KeyDown(sender As Object, e As KeyEventArgs)...
  40. Replies
    2
    Views
    269

    VS 2013 [RESOLVED] Leakey wpf

    I have an issue where I am using WPF to apply a System.Windows.Media.Effects.Effect to a System.Drawing.Bitmap using the following:

    Partial Public Class ImageFilter

    Public Sub...
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Featured


Click Here to Expand Forum to Full Width

Survey posted by VBForums.