Search Results - VBForums

Search:

Type: Posts; User: i00

Page 1 of 13 1 2 3 4

Search: Search took 0.04 seconds.

  1. Replies
    1
    Views
    109

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

    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...
  3. 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...
  4. Replies
    10
    Views
    299

    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

    ...
  5. Replies
    1
    Views
    110

    Re: How to get image through path from textbox

    Dim image As PdfImage = PdfImage.FromFile(TextBox1.Text)

    Kris
  6. Replies
    10
    Views
    296

    Re: Desktop application program

    If this is in a school (as stated) other security (eg. domain policies) should be in place (and bios passworded) to prevent this.

    Kris
  7. Replies
    17
    Views
    360

    Re: [RESOLVED] Interesting Dictionary Bug

    Some also allow decompiling directly to other languages (such as VB.Net), and these generally work better than using reference source then using online code converters.

    Kris
  8. Replies
    7
    Views
    284

    Re: VB code - Microsoft Visual Basic 2010 Express

    Well I would suggest filling the items from code since you have a list of data that you want to select ... not placing them statically on a form ...

    I will use an list of a custom class in this...
  9. Replies
    3
    Views
    161

    VS 2013 Re: Problem with Link2SQL

    Whops ... thanks, that did it :)

    Kris
  10. Re: I can't discover how to 'Cast' a Form.

    Why pass in a number? ... wouldn't you be better using an enum or by passing the type of form you want to open?

    Kris
  11. Re: [RESOLVED] I have a problem with a TableLayoutPanel's percentages.

    As others have suggested, don't use the TLP ...

    The issue i believe is if you have for e.g. 10 columns and the width of your control is 99 you may expect the cells to be:...
  12. VS 2013 Re: Determine whether Hibernate is enabled or not

    I would agree get it from the registry ... search google for the key, and look into reading the registry to read it from code!

    Kris
  13. Thread: Coding problem

    by i00
    Replies
    13
    Views
    333

    Re: Coding problem

    Do you mean:

    You want to enter the values of:
    A1, B1
    A2, B2
    A3, B3
    A4, B4
    A5, B5

    Then do this?
  14. Replies
    2
    Views
    480

    Re: Need suggestions for suitability..

    I think your question is too board ... to me this seems to be a "analyse my code and tell me how I can improve it" kind of question...

    What specifically are you wanting to know about your code?
    ...
  15. Re: How to make a multiple connection downloader!!!

    There are other downloaders that support file resuming ... it is the same principal... and the search would probably yield more results ...

    Download the file in chunks (but at the same time) ......
  16. VS 2012 Re: I am having trouble getting a text file to an array, and then sorting the array

    Just whipped this up :) ...
    is better than previous methods imho for 2 reasons:
    You can reuse my AlphaNumericSorter class
    it isn't looking for strong formatting :) ... so won't crash if things...
  17. Replies
    5
    Views
    272

    Re: Panning the dxf file image on picture box

    How have you loaded the control into the picture box? .... I would suggest making your own control and using the paint event to show your picture in that control...

    I just whipped up this:
    ...
  18. Replies
    10
    Views
    294

    Re: Trouble Understanding how DLL's work

    You first need to register it for COM interop if you want to access a .NET dll from COM ... to do this go into the properties of your class library, then to the compile tab and make sure "Register...
  19. Replies
    3
    Views
    161

    VS 2013 Re: Problem with Link2SQL

    Here is a complete test case to demonstrate a stripped down case of it occurring... like I said I have to bind to the bs.Current property for reasons I am not going to detail here .. this is just a...
  20. Replies
    3
    Views
    161

    VS 2013 [RESOLVED] Problem with Link2SQL

    I am having problems saving a new record in a particular instance...

    I have a form with a binding source... and a textbox...

    The textbox is data bound as follows:
    ...
  21. VS 2013 Re: Way to make application think that it is in debug mode at runtime?

    Why does this function differently when the debugger is attached?

    Kris
  22. VS 2013 Re: Way to make application think that it is in debug mode at runtime?

    ... well I was away for the weekend and didn't have access to my project .... I am not using the framework ... so in my sub main have:

    ...
  23. VS 2013 Re: Way to make application think that it is in debug mode at runtime?

    Yes i ALWAYS try to handle them where they occur... and very rarely encounter the global one picking them up ... but I think it is still nice to have a global one as a fallback ... so that i can send...
  24. VS 2013 Re: Way to make application think that it is in debug mode at runtime?

    Ok ... it is compiled in debug mode ... but when using it in VS IsAttached=true ... when not it is false... my custom error handler ALWAYS works when running in VS, but not outside it for unhanded...
  25. VS 2013 Re: RegEx question,, I Don't think this had been asked before

    Like iDent suggested ... look into regular expression grouping...

    Kris
  26. VS 2013 Way to make application think that it is in debug mode at runtime?

    Hi ... just wondering if there is a way to make my application "think" that it is in debug @ runtime...

    As with the newest versions of the framework global unhandled exception handling doesn't...
  27. Re: 20130521 - i00 Spell Check and Control Extensions -No Third Party Components Requ

    Hrm ... I have been meaning to fix this ... you have to disable it on a case by case basis atm through code... will hopefully have an update shortly.

    Kris
  28. Re: 20130521 - i00 Spell Check and Control Extensions -No Third Party Components Requ

    Sorry about the delay ... you can press F7 ... or load it with code ... can't remember how to do this from memory (not near a computer I can check on), but there is an eg of this in my demo project....
  29. Replies
    5
    Views
    255

    VS 2013 Re: Flip a GraphicsPath onto itself

    Thanks... didn't know about the GraphicsPath.Reverse :)

    I did it mirroring from x=0 so made it:

    Private Shared Function ReflectPath(gp As Drawing2D.GraphicsPath) As Drawing2D.GraphicsPath
    ...
  30. Replies
    5
    Views
    255

    VS 2013 Re: Flip a GraphicsPath onto itself

    Thanks... Almost there, but... I need the paths to be connected ... and the problem with this is shown below (I expanded the gap in between the mirror a little so that you can see what is going...
  31. Replies
    5
    Views
    255

    VS 2013 [RESOLVED] Flip a GraphicsPath onto itself

    Ok... I have a graphics path ... and I want it to be symmetrical ... so I thought I would just draw the right 1/2 with positive X values... then use 0-x on the points x values to flip it by cloning...
  32. Replies
    1
    Views
    169

    Angle of italic font

    Ok... I realise that this is probably a long shot ... but is there some way to get the angle of a given font when it is in italic?

    Thanks,
    Kris
  33. Replies
    2
    Views
    131

    Re: Binding to ValueMember???

    Only works on a data source... strange ... I don't see why MS didn't make it work for any object ... with the property in it of course ... oh well will have to extend it with my own property. :(
  34. Replies
    2
    Views
    131

    [RESOLVED] Binding to ValueMember???

    Ok ... I can't to work out how to bind to the Value member of a combo box (so that when the item gets changed the value in my bound object updates with the value member)...

    I can't bind to...
  35. Re: ColorDialog to open showing custom colors?

    Whops ... I did actually look at the documentation ... I thought it didn't work ... but I just re-checked my code ... and I just realised I accidently set the AllowFullOpen property instead of the...
  36. [RESOLVED] ColorDialog to open showing custom colors?

    Just wondering how I can get the ColorDialog to open showing the "define custom colors" when it is opened (like paint does)

    Thanks,
    Kris
  37. Replies
    1
    Views
    168

    Re: Get (and invoke) private method

    Ok ... worked it out ... it doesn't seem to get inherited properties .. had to do it on the base class instead :)

    Dim AcceptChanges =...
  38. Replies
    1
    Views
    168

    [RESOLVED] Get (and invoke) private method

    OK ... I am using LINQ2SQL am want to invoke a private method (AcceptChanges) within the DBML...
    So I am using this:

    Dim AcceptChanges = Me.GetType.GetMethod("AcceptChanges",...
  39. Thread: using a wildcard

    by i00
    Replies
    11
    Views
    397

    VS 2013 Re: using a wildcard

    Try this:

    My.Computer.FileSystem.GetFiles("x:\", FileIO.SearchOption.SearchAllSubDirectories, "*.*", "*.")

    Kris
  40. Replies
    9
    Views
    331

    Re: Need some help with a function

    Yes ... of course ... can't believe I didn't think of that!

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