Search:

Type: Posts; User: jmcilhinney

Page 1 of 13 1 2 3 4

Search: Search took 7.09 seconds.

  1. Replies
    2
    Views
    62

    Re: Trying to understand C# XAML

    You seem to be conflating things here. It appears that what you're actually comparing is Windows Presentation Foundation (WPF) and Windows Forms. Both technologies use VB or C# code, but WPF also...
  2. Re: Reflection getting property names returns base class properties last

    I can't imagine how that would be possible through simple Framework functionality. You're talking about IPC, for one thing.
  3. Re: [RESOLVED] Reflection getting property names returns base class properties last

    I accept chocolate in lieu. You can email it and I'll 3d-print it. ;)
  4. Re: [RESOLVED] Reflection get default property value set at design time

    If you wanted to sort on property values then, at some point, you'd have to be calling GetValue on a PropertyInfo object. If it was an instance property then you'd have to have an instance to get...
  5. Replies
    8
    Views
    154

    Re: Displaying images

    Create an Image object however is appropriate and display it in a PictureBox. Simple. If you want a thumbnail, call GetThumbnailImage on that Image object. Also simple.

    For future reference, you...
  6. Re: Reflection getting property names returns base class properties last

    The properties are always going to come back that way because that's how the Type class is implemented. GetProperties will return properties declared in the specific type under investigation first,...
  7. VS 2019 Re: VB.Net - How do I make a 'TopMost' toggle button with a checkbox?

    Maybe you could try it and see for yourself. Your arms aren't painted on. The reason you weren't just given code to copy and paste in the first place was so you would put some thought and effort into...
  8. VS 2019 Re: Using a menu item to clear everything, but text in a textbox

    Perhaps you could provide a detailed description of the behaviour you expected and the behaviour you saw and how they differed. You could even provide an example or two. That way, we wouldn't have to...
  9. Replies
    7
    Views
    140

    Re: Setting option buttons to false

    I would agree that RadioButton isn't necessarily the best name as far as being descriptive, given how many people probably have no clue about the origin of the name. That said, the name is the name...
  10. Replies
    7
    Views
    140

    Re: Setting option buttons to false

    Presumably you mean RadioButtons. It's a good idea to use the correct names for things to avoid confusion.

    The issue is that one of your RadioButtons is the first control in the Tab order. The...
  11. Replies
    3
    Views
    88

    Re: seperating strings (again)

    You already know what IndexOf gets the index of the first occurrence. When you looked at the documentation for yourself, did you find a similar method that gets the last index?
  12. Re: How can I find a integer array key in a dictionary

    In case any of the LINQ code was confusing, here's a version that doesn't use any LINQ:

    Public Class IntegerArrayEqualityComparer
    Implements IEqualityComparer(Of Integer())

    Public...
  13. Re: How can I find a integer array key in a dictionary

    All arrays are instances of the Array class, which means they are reference types. Just like any other reference type, the default when matching keys in a Dictionary is to use reference equality,...
  14. VS 2019 Re: my.settings - Missing ApplicationSettings so unable to do bindings

    No, that's the problem in the first place. You'll create a new .NET Framework 4.8 project, if you want to use that functionality.
  15. VS 2019 Re: my.settings - Missing ApplicationSettings so unable to do bindings

    You have created a project that targets .NET Core rather than .NET Framework. .NET 5.0 is .NET Core, although they have dropped the Core suffix from the name because that's all there is going to be...
  16. Replies
    12
    Views
    336

    VS 2019 Re: How to simplify and compress code?

    Fair enough, but there are two TextBoxes per CheckBox, so that means either two Dictionaries keyed on the same CheckBoxes or one Dictionary where the values are some type that contains two TextBoxes,...
  17. VS 2019 Re: [RESOLVED] Adding a parameter to the ColumnChanged event

    myArgs is a method parameter, not a type. It's type is determined by the event being handled. If the event being handled is DataTable.RowChanged then the second parameter of the event handler is type...
  18. Replies
    12
    Views
    336

    VS 2019 Re: How to simplify and compress code?

    If you wanted to use the numbers in the control names instead of arrays then here's the code from my previous post modified to do that:

    Private Sub CheckBoxes_CheckedChanged(sender As Object, e As...
  19. Replies
    12
    Views
    336

    VS 2019 Re: How to simplify and compress code?

    There are multiple ways this could be done. Here is an example of just one of them:

    Private checkBoxes As CheckBox()
    Private textBoxes As TextBox()

    Private Sub Form1_Load(sender As Object, e...
  20. VS 2019 Re: Adding a parameter to the ColumnChanged event

    The point of the first link is that you don't have an event handler method in your module. You have a regular method in your module and then you use Lambda as the event handler and call that method...
  21. Re: define application installation folder

    If you use the Publish feature in VS then you are using ClickOnce. ClickOnce apps are installed to the ClickOnce cache. If you want to be able to control where the application is installed then don't...
  22. Replies
    12
    Views
    336

    VS 2019 Re: How to simplify and compress code?

    As tg says, you can handle multiple events with a single method. If you then proceed to use a Select Case or If statements to do different things for each event though, it's pointless. You need to...
  23. Re: How do I add a field to a datatable?

    I assume that you have created a typed DataSet with table adapters. In that case, you open the Data Sources window and refresh the data source from the database. There's a button on the toolbar but I...
  24. Replies
    5
    Views
    221

    VS 2019 Re: Separateing strings

    I should also mention that you could use a Regex. I'm not very proficient in that area so I won't try to provide the appropriate pattern but, if you want overkill, that's probably the way to go.
  25. Replies
    5
    Views
    221

    VS 2019 Re: Separateing strings

    The simplest option would be to use String.Split and just take the first element from the resulting array. The alternative would be use String.IndexOf to find the dash and then String.Substring to...
  26. Replies
    19
    Views
    406

    Re: Can VB.Net adjust bios settings?

    That would depend on the API provided by the motherboard manufacturer. I think they pretty much all provide a Windows utility these days but I'm not sure that they would publish the API because they...
  27. Replies
    18
    Views
    455

    VS 2019 Re: Create a List for multiple entries

    I don't see that. There's no reason that a single file path can't be added to multiple values if that file contains multiple keywords. The OP said that they want to get all the files containing a...
  28. Replies
    18
    Views
    455

    VS 2019 Re: Create a List for multiple entries

    Definitely not that. It defeats the purpose of a Dictionary, which is fast lookup.
  29. Replies
    3
    Views
    166

    Re: Is there a 62-ary algorithm?

    Base-64 is a common way to represent binary data as text, because every digit represents 8 bytes. Presumably you could do any base below that simply by dropping the last two digits from the vase-64...
  30. Re: SharpDevelop 5.1 Visual form designer function is invalid ON VB.NET?

    SharpDevelop is open-source. Presumably the group who maintained it decided that it wasn't worth continuing to do so. Again, we're not privy to their decision-making process but I would imagine that...
  31. Re: SharpDevelop 5.1 Visual form designer function is invalid ON VB.NET?

    If there is a bug in the designer then that is something that you should report to them to fix. If that's not what you're talking about then try providing a full and clear explanation of the problem....
  32. Replies
    21
    Views
    467

    Re: Combining method for math

    And still you're talking about others giving you code when you've made no attempt at all to determine the logic.

    You don't need any programming experience to determine the logic so that you have...
  33. Replies
    4
    Views
    168

    Poll: VS 2015 Re: image vb.net

    If it didn't work then you did it wrong. As you seem to think that you don't need to show us what you did, we can't tell you what's wrong with it. ALWAYS provide a FULL and CLEAR explanation of the...
  34. Replies
    13
    Views
    384

    Re: Editing a text file

    Thanks. Fixed. That's not the first time I've made a typo like that. How much trouble could it cause to post the exact opposite to what I meant to say?
  35. VS 2013 Re: Get activate application name and details

    You would have to delve into unmanaged code, i.e. Windows API functions, for that. The first step would be to call the GetActiveWindow API to get the handle of the currently active window. You can...
  36. Replies
    21
    Views
    467

    Re: Combining method for math

    You're not having trouble figuring out the code. You're (supposedly) having trouble figuring out the logic. The code is simply an implementation of the logic. The logic would be the same no matter...
  37. Replies
    13
    Views
    384

    Re: Editing a text file

    That's why you need to take note of the error message and/or symptoms. That will lead you to the cause. For instance, if you get a FileNotFoundException then the issue is obviously not that you can't...
  38. Replies
    13
    Views
    384

    Re: Editing a text file

    I just created a Windows Forms Application project targeting .NET Framework 4.8. I added a TextBox to the form and set Multiline to True. I added a text file named TestData.txt to the project and set...
  39. Replies
    13
    Views
    384

    Re: Editing a text file

    You are correct. Do you have a link to the thread I posted that in, so that I can edit it?
  40. Replies
    8
    Views
    309

    Re: tutorial links

    Why would a tutorial provide interactive help? That's what sites like this one are for. Instead of asking for another tutorial when, by your own admission, you already have a good one, you should...
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Click Here to Expand Forum to Full Width