Search Results - VBForums

Search:

Type: Posts; User: i00

Page 1 of 13 1 2 3 4

Search: Search took 0.04 seconds.

  1. Re: Inefficient redraw on multiple child control move?

    I had actually already tried the 2nd one (and I thought LockWindowUpdate did the same thing to the window??) before posting here... same thing... :(

    Kris
  2. Replies
    5
    Views
    159

    VS 2013 Re: SetWindowsHookEx(WH_KEYBOARD) Possible??

    The issue is not with the communication I haven't even got that far yet ...
    I first need to be able to capture the WH_KEYBOARD hook NOT the _LL one as, even if I was doing the message bit I would...
  3. Replies
    5
    Views
    159

    VS 2013 Re: SetWindowsHookEx(WH_KEYBOARD) Possible??

    It isn't suitable as the order of processing goes WH_KEYBOARD_LL > WM_INPUT > WH_KEYBOARD > ...

    Now you have to work out the device with WM_INPUT ... so if you want to drop the keys based on the...
  4. Replies
    5
    Views
    159

    VS 2013 SetWindowsHookEx(WH_KEYBOARD) Possible??

    I am trying to basically capture all input from a input device (card reader that is a keyboard like input) and redirect it to my program... basically like this suggests.

    The problem is the article...
  5. Replies
    1
    Views
    121

    VS 2013 Re: Range equivalent for Linq2SQL?

    Whops .. had a blonde moment ... just after I posted this I thought I could just check that the mod value < duration :P *hits self on head
    ...
  6. Replies
    1
    Views
    121

    VS 2013 [RESOLVED] Range equivalent for Linq2SQL?

    Was just wondering if there is a way to do something like this in Linq2SQL:

    .Where(function(y) Enumerable.Range(0, y.CalendarItem.Duration).Any(Function(z)...
  7. Re: Inefficient redraw on multiple child control move?

    Private Sub Panel1_Paint(ByVal sender As System.Object, ByVal e As System.Windows.Forms.PaintEventArgs) Handles Panel1.Paint
    Debug.Print(Now.ToShortTimeString & " - Panel1_Paint()")
    End Sub
    ...
  8. Re: Inefficient redraw on multiple child control move?

    Nope :( ... shame
  9. Inefficient redraw on multiple child control move?

    Ok... if I have a panel with (for example) 3 controls on them (non transparent bg) ... and I move them all within the one sub eg:

    for each control in panel.controls.oftype(of control)
    ...
  10. Replies
    2
    Views
    156

    Possible to perform fake binding?

    Ok... this may seem a little strange ... but I am wondering if there is a way to bind to something that doesn't really exist...

    Normally you bind to properties of controls ... but what if I want...
  11. VS 2013 Re: SmtpClient to check email settings?

    I ended up doing that already ... and made it support SSL optional .. thanks :)

    Kris
  12. VS 2013 Re: Custom property binding not working???

    Ok... worked it out ... you cannot bind a enum to an int :( ... so I created another property that reflects the enum value in an integer

    Kris
  13. VS 2013 Re: Custom property binding not working???

    Yes changing the underlying item updates the combobox.. but I really want it to work both ways ... so when the user changes the value in my combo box it automatically updates the underlying item.
    ...
  14. VS 2013 Re: SmtpClient to check email settings?

    Am sure you could with just using the AUTH command ... I just wanted to know if there was any built in method to do this.

    It appears that there is not...
    Thanks anyway,
    Kris
  15. VS 2013 Re: Custom property binding not working???

    The binding is supposed to change the underlying property:

    cboServerType.DataBindings.Add("EnumValue", value, "ServerType", False, DataSourceUpdateMode.OnPropertyChanged)


    Doing this is...
  16. VS 2013 Re: SmtpClient to check email settings?

    I just want to test the authentication ... and do not want to actually have to send an email to do it...

    Kris
  17. VS 2013 Re: Custom property binding not working???

    The binding should work both ways... but I really only care about the control updating the underlying item in this case...

    It works for everything else on the form ... like textboxes, checkboxes...
  18. VS 2013 [RESOLVED] Custom property binding not working???

    I have created a property in a control that inherits ComboBox:

    <System.ComponentModel.Bindable(True)>
    ...
  19. VS 2013 [RESOLVED] SmtpClient to check email settings?

    I know how to use the SmtpClient to send email... but is there any way to test the SMTP settings without sending mail (doesn't have to be using the SmtpClient, but want to know if there is an easy...
  20. Replies
    1
    Views
    104

    VS 2013 Nullable object must have a value? (LINQ)

    I have the following function:

    Public Overrides Function TimeChartPeriodResized_GetItemsToDelete(DBML As Database.DBML, ChartID As String, NewDateFrom As Date, NewDateTo As Date?) As...
  21. Replies
    4
    Views
    184

    Re: Set AutoScrollBars SmallChange?

    Can't believe that I didn't think of trying that! ...
    Thanks
  22. Replies
    4
    Views
    184

    Re: Set AutoScrollBars SmallChange?

    It should be irrelevant since it is a core part of ANY container control ... but it is a panel if you must know.

    Kris
  23. Replies
    4
    Views
    184

    [RESOLVED] Set AutoScrollBars SmallChange?

    If I have something that has .AutoScroll set to true, is there anyway to change the .SmallChange of it as you can with a ScrollBar control?

    Thanks,
    Kris
  24. Replies
    1
    Views
    130

    VS 2013 Custom control autoscroll issues?

    Ok ... I have a control that is inherited from panel ... it has NO controls on it, and it never will ... the control is custom painted and mouse events handled etc to control it...

    The autoscroll...
  25. Replies
    1
    Views
    109

    Re: Issue printing from within VB.Net

    It would be good to know how are you printing....

    Kris
  26. VS 2010 Re: Whats the VB.net equiavalent to Print statement?

    You need to draw on your form ... the layman way to do it would be something like:
    Using g= me.creategraphics()
    using sb as new solidbrush(me.forecolor)
    g.Drawstring("Test text.",...
  27. VS 2013 Binding SelectedValue in a combobox to L2SQL not working??

    Ok ... I have a combobox setup as a DropDownList
    When I bind it using:

    cboSpeciality.DataBindings.Add("SelectedValue", PersonProvider, "SpecialityID", True,...
  28. VS 2013 Re: TextChanged not being called when binding is setting the data??

    Didn't think this should matter... but BoundItem.Type is L2SQL field, DropDownStyle is just default DropDown.

    Kris
  29. VS 2013 TextChanged not being called when binding is setting the data??

    I have a combobox and it is databound:

    cboDetailsType.DataBindings.Add("Text", BoundItem, "Type")

    When this happens it loads text into the combobox ... but when this happens the TextChanged...
  30. Replies
    9
    Views
    323

    VS 2013 Re: Linq to perform datediff?

    Is it basically a drop-in replacement if I decide to switch?

    Kris
  31. Re: Need help printing 2d arrays to a text file

    Without looking @ your code ... to save an array to a file:

    My.Computer.FileSystem.WriteAllText(filename, Join(MyArray, vbCrLf), False)

    ... but since your array seems to contains...
  32. Replies
    9
    Views
    323

    VS 2013 Re: Linq to perform datediff?

    Hrm ... it is a big project and don't really want to use entity framework in some places and L2SQL in others :(... so this is not possible with just linq2sql ...?

    Kris
  33. VS 2008 Re: Cannot process aspx pages with HttpRuntime.ProcessRequest??

    *Been a while ... but I have run into this again ... another bump :(
  34. Replies
    9
    Views
    323

    VS 2013 Re: Linq to perform datediff?

    .Net version 4 .. as I need xp compatibility :( ... also I am really using Linq2SQL NOT the EF ... is this easy to change if needed and the same compatibility?

    Thanks,
    Kris
  35. Replies
    9
    Views
    323

    VS 2013 Re: Linq to perform datediff?

    *Shameful bump!
  36. Replies
    9
    Views
    323

    VS 2013 Linq to perform datediff?

    Ok... since datediff and date.subtract() don't seem to be compatible with linq I searched online and found several articles that suggested using the EntityFunctions class...

    When I do this I get...
  37. Replies
    1
    Views
    160

    VS 2013 Re: Issue with deleting in linq?

    I just found this post:

    http://stackoverflow.com/questions/6493737/how-do-i-check-whether-a-linq-to-sql-object-is-already-attached-to-a-datacontext

    That checks it ... is this the best method?
    ...
  38. Replies
    1
    Views
    160

    VS 2013 Issue with deleting in linq?

    If I add an entry to something bound with linq then delete it before having committed anything I get the following error:


    System.InvalidOperationException (System.Data.Linq.dll) - Additional...
  39. VS 2010 Re: Deleting Items In A List In A For...Next Block

    You can also use your existing code with:

    For Each bmp In TempList.ToArray()

    Performance may be a little slower, you generally will not notice the difference ... but I use this all of the time...
  40. Replies
    10
    Views
    404

    Re: Set textbox height according to amount of text

    The form could be set to autoscroll ... I have made such a control before (beginning of 2011 to be precise):

    Namespace Controls

    Public Class AutoGrowTextBox
    Inherits TextBox

    ...
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.