Search Results - VBForums

Search:

Type: Posts; User: i00

Page 1 of 13 1 2 3 4

Search: Search took 0.03 seconds.

  1. Replies
    6
    Views
    207

    Re: Get ellipse string??

    If you read my original post



    ...you would have known that this is not what I want ... I have sorted it now though.

    Kris
  2. Replies
    6
    Views
    207

    Re: Get ellipse string??

    Yea ... I know how to do it ... would be easy enough with measurestring ... just thought there would be some inbuilt method ... that's all

    Kris
  3. Replies
    6
    Views
    207

    [RESOLVED] Get ellipse string??

    I know how to draw ellipsed text with text with the textrender and gdi plus ... but how can I get an ellipse string???

    Eg:

    GetElipsedText("Hello there this is a test", 250, font)

    will...
  4. Replies
    8
    Views
    198

    Re: How to do this in Linq?

    Won't be an issue ... used:
    PersonLocations.Any(Function(y) y.Name = x.Name OrElse y.Name.IndexOf(x.Name & "\") = 0)
    Kris
  5. Replies
    8
    Views
    198

    Re: How to do this in Linq?

    Yep works fine ... except starts with doesn't seem to be able to be converted to l2sql so I used IndexOf(x)=0 instead

    Kris
  6. Replies
    8
    Views
    198

    Re: How to do this in Linq?

    Well ... this is simplified ... but basically I have a table with locations such as

    IsLocation | Location
    FALSE | "Australia\SiteX\Wing1\Room3"
    TRUE | "Australia\SiteX"
    TRUE |...
  7. Sticky: VS 2012 Re: Tech IQ: How Well Do You Know Visual Basic.NET 2012?

    I think this is a poor question ... .text or .caption is just a property ... so you could have a control with both... I have actually done this with a toolstrip text box that I made (as the built in...
  8. Replies
    8
    Views
    198

    Re: How to do this in Linq?

    Yes it's the former - the path is data from a field in the db.. :( ... would have thought there would be a way ... oh well ... will just have to play with it...

    Kris
  9. Replies
    8
    Views
    198

    [RESOLVED] How to do this in Linq?

    Ok... if I have a string such as:

    "c:\documents\medical\Mr Smith\123.doc"

    is it possible to loop through this in linq such that the iterations will be:


    1 c:\documents\medical\Mr...
  10. VS 2010 Re: Populating the controls on a page of a TabControl

    I know that this is a little stale ... but um .. why not do something like:

    Private Sub TabControl1_Selected(sender As Object, e As TabControlEventArgs) Handles TabControl1.Selected
    If...
  11. Replies
    20
    Views
    386

    VS 2013 Re: Need help to encrypt a string

    Winforms ... see the selected control?

    Kris
  12. Re: Fixing program crashes that do not throw an exception

    Not reading all the posts on here ... but if you can distribute the pdb files with your exe it will actually show you the call stack (with line numbers) when you goto the details of the error so you...
  13. Replies
    1
    Views
    163

    VS 2013 Re: Binding not working on one control

    Ok.. strange.. I changed the property name from id and it started working????
  14. Replies
    1
    Views
    163

    VS 2013 Binding not working on one control

    I am having an issue with binding ... basically I have a property ID:

    Dim mc_ID As String
    <System.ComponentModel.Bindable(True)>
    Public Property ID As String
    Get
    ...
  15. Upload a file in chunks to SQL servers file system??

    i have seen LOTS of articles about putting files into the file system with SQL server ... but they all seem to use the ADODB.Stream and NOT do it in chunks...

    OK, I thought, I would simply upload...
  16. Re: LINQ to select an object that has a list object with any of another list within i

    Thanks
  17. [RESOLVED] LINQ to select an object that has a list object with any of another list within it?

    Ok ... how would I do this in LINQ:

    Item1.x = {a, b, c, d, e}
    Item2.x = {a, c}
    Item3.x = {b}
    Item4.x = {d, e}

    AllItems={Item1, Item2, Item3}
    Filter={a, b}
  18. Replies
    5
    Views
    210

    VS 2013 Re: HotkeyPrefix, when to show?

    Good find ... knew it would be simple :) ... I tried to give u karma ... but it says I need to spread it round first :(..

    Kris
  19. Replies
    8
    Views
    209

    VS 2013 Re: Linq2SQL not executing correctly??

    Hrm ... it looks like you kind of can ... just found this:
    Dim something = Database.ExecuteQuery(Of Person)("SELECT * FROM person", "" )
    ... but it seems a little different :( ... if I try to seek...
  20. Replies
    5
    Views
    210

    VS 2013 Re: HotkeyPrefix, when to show?

    I did think of that before i posted ... but there is one issue with that (well the managed equivilent - My.Computer.Keyboard.AltKeyDown)... if you tap Alt the key will only be down for a split...
  21. Replies
    8
    Views
    209

    VS 2013 Re: Linq2SQL not executing correctly??

    OK ... is there a way to manually feed a query and specify it is of type Database.PersonProgNotes and have it use the query i gave it instead, and have it work as-if i called it the same way as i...
  22. Replies
    8
    Views
    209

    VS 2013 Re: Linq2SQL not executing correctly??

    The message box was just a test ... it does the same regardless ... it runs the whole thing because it is ALOT slower ... in fact ... so much that this seems much better speed wise:



    'GENERIC...
  23. Replies
    8
    Views
    209

    VS 2013 Linq2SQL not executing correctly??

    Ok ... If i have 2 lists such that:

    TEST CASE ONLY:
    Dim List1 = {1, 2, 3}
    Dim List2 = {1, 2, 3}
    Dim Test = List1.Where(Function(x) True OrElse (List2.Where(Function(y) MsgBox(x) =...
  24. Replies
    5
    Views
    210

    VS 2013 [RESOLVED] HotkeyPrefix, when to show?

    OK ... I am custom drawing a control and my question is I am going to need to set:

    StringFormat.HotkeyPrefix

    I have noticed that the paint event is automatically fired when pressing Alt so it...
  25. VS 2013 Re: Basic but not working ... Inherits ToolStripButton ... set default props??

    OK ... I am sure that the toolstrip control designer is the culprit I don't think it takes note of what I have set
    ... if I create and add it through code ... it works no probs :( ...

    Kris
  26. VS 2013 Re: Basic but not working ... Inherits ToolStripButton ... set default props??

    Whops ... sorry I do have mybase.New() called before-hand ... just must have taken it out by mistake when I stripped the code for posting!

    ... any more ideas?

    Kris
  27. Replies
    13
    Views
    374

    VS 2010 Re: Can someone explain to me why this works?

    ... sorry but HOW will that always be true??

    Basically you set visible to either true or false ... CheckBox1.Checked = True ... will equal true when checked ...
    therefore...
  28. Replies
    2
    Views
    150

    VS 2010 Re: Save pictures from a video

    I probably wouldn't advise using windows media player ... I have done it with direct show...
    Here is my code:

    Module modVidSnapShot
    Private Sub ConfigSampleGrabber(ByVal sampGrabber As...
  29. Thread: Multi Threading

    by i00
    Replies
    9
    Views
    270

    VS 2010 Re: Multi Threading

    I had an interesting thing happening the other day with threads and my app ... why is your app crashing what is the error??

    I found that opening a thread on my system creates about 5 User Objects...
  30. VS 2013 Basic but not working ... Inherits ToolStripButton ... set default props??

    Ok ... basically on MOST of the values I am trying to set in my inherited control of ToolStripButton the values I set seem to not be setting ... the default value gets marked ... but the property is...
  31. Replies
    3
    Views
    130

    Re: Performing one action on all forms?

    You state that you want to leave certain forms....

    I would suggest creating an interface like such to allow you to flag forms to not be closed:

    Public Interface iCloseFormStopper
    ...
  32. VS 2013 Re: Unhandled errors working in debug but not in runtime???

    Also I have problems running my exe as a service if I have the application framework enabled ... it runs both as an application and as a service.

    Kris
  33. Replies
    1
    Views
    105

    VS 2013 Custom sort binding list?

    Is it possible to custom sort a binding list by whatever I want?

    I want to sort by a nested property (not using the binding sources sort string thing, as it doesn't support these), and I don't...
  34. VS 2013 Re: Unhandled errors working in debug but not in runtime???

    Yes, command line arguments
  35. VS 2013 Re: Unhandled errors working in debug but not in runtime???

    I don't like that if I select using the framework it wants me to select a form for startup ... I want to phase commands etc first.

    Kris
  36. Replies
    9
    Views
    365

    VS 2013 Re: Why the crash??

    Hrm ... it seems that it is the creation of threads ... creating excessive user objects and not cleaning them up ... until the thread that opened them was closed?????

    Changed it to Task Parallel...
  37. Thread: Forms zorder

    by i00
    Replies
    2
    Views
    190

    VS 2013 Forms zorder

    Just wondering how I can get the zorder of all open forms in my app in relation to each other... I could use Application.OpenForms ... but this seems to return them in the order they were opened ......
  38. Replies
    9
    Views
    365

    VS 2013 Re: Why the crash??

    Ok ... just found out it is my user objects...

    What are these and what kind of thing would I not cleaning up correctly to hit 10,000 of them?

    EDIT: Also I just found out that if I get it to...
  39. Replies
    9
    Views
    365

    VS 2013 Re: Why the crash??

    They are all unique as they are person pictures... I have about 200 items in the list, but the image is only 48x48 and I unload them from memory so that the last X are loaded (X=a max of items on...
  40. Replies
    9
    Views
    365

    VS 2013 Re: Why the crash??

    I changed the post, and I was doing this to load images from a db when scrolling a listview ... when the items are drawn it thread-loads the photos the first time that they come into view, otherwise...
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.