Search Results - VBForums

Search:

Type: Posts; User: i00

Page 1 of 13 1 2 3 4

Search: Search took 0.05 seconds.

  1. Replies
    2
    Views
    276

    Re: CodeDom generation enum help!

    Thanks for that :)...
    ...


    Dim _Enum As New CodeTypeDeclaration(Name) With {.IsEnum = True}
    _Enum.BaseTypes.Add(New CodeTypeReference(GetType(Long)))
    For Each value In EnumValues
    Dim...
  2. Replies
    2
    Views
    276

    [RESOLVED] CodeDom generation enum help!

    I am generation code with the CodeDom, so that it works cross-languages and I am a little stuck...

    Basically I am creating an enum with:

    Dim _Enum As New CodeTypeDeclaration(Name)...
  3. Replies
    8
    Views
    449

    Re: Binding Always updating???

    Surely it shouldn't operate this way this is crazy... ???

    Kris
  4. VS 2015 Re: Errors not getting picked up properly anymore in lambda subs??

    Awesome ... Never even thought of doing that :) ... like I said it should have been a non-issue anyway ... but that is a sweet work around in (what will *hopefully* be) the meantime :)

    Kris
  5. VS 2015 Re: Errors not getting picked up properly anymore in lambda subs??

    But they are not really telling you the most helpful thing to fix the error... also like I said if ANY compiler error happens within the sub this occurs... even if it has NOTHING to do with x ... so...
  6. VS 2015 Re: Errors not getting picked up properly anymore in lambda subs??

    Try turning option strict on... you should do this for all your projects :)...
  7. Replies
    8
    Views
    449

    Re: Binding Always updating???

    Full code for a test case:
    Imports System.ComponentModel

    Public Class Form1

    Public Class TestObject
    Implements System.ComponentModel.INotifyPropertyChanged

    Public Event...
  8. Replies
    8
    Views
    449

    Re: Binding Always updating???

    Um... This just gets picked up as "Text" in VS2015 ... it was added to strongly type prop (etc) names so that if you change a name the compiler picks this up.

    Kris
  9. Replies
    5
    Views
    332

    Re: Delete image from Clipboard

    Actually the clipboard can contain different formats... eg when you copy html it actually saves html + text ... see To add data to the Clipboard in multiple formats ... but the data should all...
  10. Replies
    4
    Views
    348

    VS 2008 Re: Sending email from a VB.NET program

    Effectively my program communicates to gmail like this:


    Connecting...
    Connected
    < 220 smtp.gmail.com ESMTP pt2sm1551874pbb.64 - gsmtp
    > EHLO 0G54QDL
    < 250-smtp.gmail.com at your service,...
  11. VS 2015 Re: Errors not getting picked up properly anymore in lambda subs??

    So why is the behaviour different between VS2013 ... which is much better @ actually telling me where the error is??

    Kris
  12. VS 2015 Re: Errors not getting picked up properly anymore in lambda subs??

    Yes I was .... but I am on Windows 7 @ work with 2015 and get the same result.
  13. VS 2015 Re: Errors not getting picked up properly anymore in lambda subs??

    Ok... a good points ... but I think that this is still an issue with VS for a few reasons...

    A. If i change it to Sub(x As String), this declaring the type it says:
    Overload resolution failed...
  14. Replies
    8
    Views
    449

    Re: Binding Always updating???

    shameful bump
  15. Sticky: Re: When it comes to Visual Basic, what are the most important topics to know?

    Not really .. I mean you can declare lambda functions that you pass (as prams) into functions etc... I would not really classify this as linq... I mean javascript you wouldn't really say supports...
  16. VS 2015 Re: Errors not getting picked up properly anymore in lambda subs??

    I always have option infer on ... and it works fine when there is no error within the sub / function ... and if I hold my mouse over the item it even states the correct inference ...
    Like this:
    ...
  17. VS 2015 Re: Webbrowser control does not support getComputedStyle???

    Well that's not good, I thought this may have been the case and knew about the registry hacks... but think that that is not a good approach.

    Oh well ... guess I will just have to do things...
  18. Sticky: Re: When it comes to Visual Basic, what are the most important topics to know?

    Way to many to list
    ... but I think that one of the most important things in ANY language is the coding structure, i.e. making sure that there are rigidly defined layers of abstraction.

    ... more...
  19. VS 2015 [RESOLVED] Errors not getting picked up properly anymore in lambda subs??

    Ok ... If I have the following:

    Dim SomeList = {"Hello", "This", "Is", "A", "Test"}
    System.Threading.Tasks.Parallel.ForEach(SomeList, Sub(x)
    ...
  20. Replies
    8
    Views
    449

    Binding Always updating???

    I am databinding some things like:

    txtName.DataBindings.Add(NameOf(lblDOB.Text), Record, NameOf(Record.prodname), False, DataSourceUpdateMode.OnPropertyChanged)...
  21. VS 2015 [RESOLVED] Webbrowser control does not support getComputedStyle???

    I have a web browser control and want to basically get the text size for <font size=1>x</font> in pixels for eg...

    Yes I need to know the relative size for each of the 1-7 sizes ... and (ideally)...
  22. Replies
    2
    Views
    250

    VS 2013 TypeConverter Issue?

    I have a type converter so that I can load a default value into an "object" property...

    Similar to how font does, so that in the prop grid you can expand the font property and adjust items on the...
  23. My changes

    Ok ... here is my version ...

    129157

    I fixed the tab re-ordering thing ... I see that the poster tried to do this ... but they rely on tab names to do the ordering ... instead of the objects...
  24. Replies
    6
    Views
    308

    VS 2013 Re: Bindings (data to control) not working

    Ok... I have worked out what it is ...

    The property strScoreA1 doesn't actually exist... it is "spoofed" property that I have created with the ICustomTypeDescriptor

    It appears binding updates...
  25. Replies
    6
    Views
    308

    VS 2013 Re: Bindings (data to control) not working

    Yes it does ... hence the:

    RaiseEvent PropertyChanged(Me, New PropertyChangedEventArgs("strScoreA1"))

    Kris

    EDIT

    Strange I just made a test case (to use create a new project and set the...
  26. Replies
    6
    Views
    308

    VS 2013 Re: Bindings (data to control) not working

    BoundItem is a custom class
    I meant the bound button not textbox as I wrote (now corrected).

    Kris
  27. Replies
    6
    Views
    308

    VS 2013 Bindings (data to control) not working

    First of all I know I asked a similar question here ages ago... And I have now come across a similar issue...

    I have the following binding:
    Dim binding As New Binding("Text", BoundItem,...
  28. Replies
    1
    Views
    317

    VS 2013 Re: Linq group join not working correctly?

    Ok... I have played around with it an have reworked it to this:

    Dim PersonMap = CurrentResidents.Join(AllMappedItems, Function(x) True, Function(y) True, Function(x, y) New With {.Person = x,...
  29. Replies
    1
    Views
    317

    VS 2013 Linq group join not working correctly?

    I have 2 IQueryable's ... AllMappedItems and LastAnswers

    They both work fine and only execute one sql statement each to loop through their results.

    Now the issue is when I join them using:
    ...
  30. VS 2013 Re: .Net 4.0 AutoScrollPosition not calling Scroll event??

    Whops ... forgot I posted that 8 months ago :P ...

    And so it appears the suggestion I said was the one to go with :(

    Thanks
    K
  31. VS 2013 [RESOLVED] .Net 4.0 AutoScrollPosition not calling Scroll event??

    Is there an event that captures all scroll events a control?

    I ask as according to MSDN:

    The above is a lie :P... it doesn't trigger the event... just as sizing the control to make it bigger...
  32. Replies
    4
    Views
    495

    VS 2013 Line height RichTextBox

    I was wondering how I would go about getting the height of a line in a RichTextBox from a character index.
    When I say line I don't mean split by line breaks but lines as they are displayed on the...
  33. Replies
    5
    Views
    517

    VS 2013 Re: Stop combobox appending when dropped?

    The format does't trigger when i do it with alt+down arrow???

    Kris
  34. Replies
    7
    Views
    689

    Re: is it to long filename?

    I know that you "can" put other things in the formatting section that are not number / date related ... but IMHO this is REALLY, REALLY bad practice!

    Kris
  35. Thread: Help Desk Service

    by i00
    Replies
    3
    Views
    317

    VS 2010 Re: Help Desk Service

    This is not constructive.
  36. Replies
    3
    Views
    430

    VS 2013 Re: Message "cipher" program (form, not console)

    Oh ... and for the encryption ... re-read the spec... add another TextBox (txtEnc)...

    Private Sub txtMessage_TextChanged(sender As Object, e As EventArgs) Handles txtMessage.TextChanged
    ...
  37. Replies
    3
    Views
    430

    VS 2013 Re: Message "cipher" program (form, not console)

    You have not really stated how the file is layed out.... but:

    Add a binding source, three textbooks and two buttons, to your form;
    BindingSource2, txtMessage, txtLat, txtLong, btnPrevious,...
  38. Replies
    15
    Views
    1,170

    Re: Best way to learn VB .NET?

    I think when going from VB6 to .Net you should first read up on new features that the language and offers such as inheritance, threading, lambda, linq, delegates etc.. then think of a few small...
  39. Replies
    5
    Views
    517

    VS 2013 Re: Stop combobox appending when dropped?

    No ... that is for a completely different thing ... i am not using the autocomplete source and it is set to None...
    This property has NO effect on the items in the combo box.

    Kris
  40. Replies
    7
    Views
    689

    Re: is it to long filename?

    Your problem is this:

    Now.ToString((myFile) + "MM-dd-yyyy"))

    as this is formatting Now to "VolvoPentaMM-dd-yyyy" ... so use this instead:

    myFile & Now.ToString("MM-dd-yyyy"))

    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.