Search:

Type: Posts; User: jmcilhinney

Page 1 of 13 1 2 3 4

Search: Search took 4.06 seconds.

  1. Replies
    5
    Views
    146

    Re: How to pass enum type to a function

    The OP indicates that the type is actually known, rather than stored as a String. In that case, a generic method would be preferable to converting the type to a String first and then using that to...
  2. Replies
    5
    Views
    146

    Re: How to pass enum type to a function

    As for why what you were trying to do couldn't work, the GetType operator that you're using expects a data type. That means that you have to provide something that could also be used after As in the...
  3. Replies
    5
    Views
    146

    Re: How to pass enum type to a function

    As for the issue, there actually is no issue. Just forget everything you just posted and do this instead:
    enum_item_value.ToString()
    Here's an example that shows that it produces the same result,...
  4. Replies
    5
    Views
    146

    Re: How to pass enum type to a function

    First things first, please don;t post unformatted code snippets. Here's how your post should look:
  5. Re: How to modify default control property values, or put custom controls in toolbox

    You can't. The default values you see for properties when you add a control to a form are either part of the code of that class or baked into the WinForms designer itself.

    What .paul. has...
  6. Re: Computer monitoring system via Asynchronous TcpListener & TcpClient

    Different error for a different reason. The issue you originally asked about has been resolved so you should mark this thread Resolved, using the Thread Tools menu, and create a new thread for the...
  7. Re: How to ensure that a form is displayed on top?

    Please tell me it was in a galaxy far, far away. ;)
  8. Re: datagrid, arraylist System.IndexOutOfRangeException error

    Start a new thread and provide all the relevant details, including exactly what the user and/or the application is doing when the exception is thrown.
  9. Re: VB 2020 net 6.0 | WebView2 | have old code, dont work on new webview2 Need hel

    When you see a method with a name that ends with Async, it most likely returns a Task(Of T). Where a synchronous method would return an object of type T, an asynchronous method returns a Task(Of T),...
  10. Re: VS 2022 - PowerPacks - Printing - Printform & ReportViewer

    I don't think that you can get an official download from Microsoft any more but, if you search online, you should be able to find third-party download links. I cannot vouch for any of them though....
  11. Re: Computer monitoring system via Asynchronous TcpListener & TcpClient

    I would also suggest that you could simplify your code considerably. This:
    TcpClient client = clients.Select(c => new { client = c, host = c.Value }).Where(x => x.host.Equals(host)).Select(x =>...
  12. Re: Computer monitoring system via Asynchronous TcpListener & TcpClient

    The specific issue is that you are calling First on a sequence with no items. If there's a chance that the sequence is empty then you need to call FirstOrDefault and then check whether the result is...
  13. Replies
    15
    Views
    768

    Re: [RESOLVED] Loading a listbox

    Sure, but that's not what is being suggested.
  14. VS 2019 Re: MouseOver Event doesn't work when object hidden

    You can see an example of what .paul. is talking about here. There are plenty of other examples around but just be aware that many of them lazily call CreateGraphics, which is something you should...
  15. Replies
    15
    Views
    768

    Re: [RESOLVED] Loading a listbox

    If your aim is efficient storage of data then your original idea would seem great. Why should that be your aim though? Do you not have much storage space available? Efficient processing of data...
  16. Replies
    5
    Views
    286

    VS 2019 Re: Number of lines in a sequential file

    You would probably be better off with this:
    IO.File.ReadLines("path").Count()
    Your code doesn't use the data read from the file so why create an array containing it all? That would be especially...
  17. VS 2017 Re: How would I complete this recursion algorithm?

    Algorithms are language independent, so what programming languages you do or don't have experience with is irrelevant, if you really are asking for help with an algorithm. If what you're really...
  18. VS 2019 Re: Help. Can't reset ComboBox to default text.

    Do you want the user to be able enter arbitrary text or do you just want them to be able to select from the drop-down list? If the latter, you probably ought to set the DropDownStyle to DropDownList....
  19. Replies
    15
    Views
    768

    Re: Loading a listbox

    I doubt that you'll find a DBA on the planet to agree with you, nor many application developers.
  20. VS 2019 Re: Help. Can't reset ComboBox to default text.

    Is the DropDownStyle set to DropDown or DropDownList?
  21. Replies
    24
    Views
    923

    Re: problem in webvew

    One wonders why you came here at all if you can do that now. The problem here is that we want to help you but you won't even consider the possibility that you're not doing enough to enable us to do...
  22. Re: Why VB.NET Power Function is so fast ?

    Except not. Why a VB.NET method is as fast as it is is a 100% VB.NET question. How to make a VB6 function faster is a 100% VB6 question. Two different questions on two different languages, both of...
  23. Re: Why VB.NET Power Function is so fast ?

    So what? Should we just do away with the VB6 forum and have all VB6 questions poste3d in the VB.NET forum because "many people proficient VB.NET at the same time proficient VB6"? There is a...
  24. Re: Why VB.NET Power Function is so fast ?

    Your title says:

    Is that really the question you want answered? In your post you ask this:

    Which is a completely different question and something that should be asked in the VB6 forum, not the...
  25. VS 2015 Re: How To Define Variables In Public Class. VB.NET

    I'm guessing that, in this case, ReadOnly properties would be more appropriate, as the values are probably being read from outside the form but not set.
  26. VS 2015 Re: How To Define Variables In Public Class. VB.NET

    Nope. The field declarations and their initialising expressions are executed before the class constructor, so before the InitializeComponent method is executed, so before the TextBoxes are created.
  27. VS 2015 Re: How To Define Variables In Public Class. VB.NET

    While that will at least not throw an exception, there's no point to getting data from a control in the Load event handler because the user can't have entered any data before the form has been...
  28. Replies
    15
    Views
    768

    Re: Loading a listbox

    That all sounds like a very bad idea. Firstly, you don't need multiple columns. You just need one column in another table. The whole point of a relational database is the relations. You can have a...
  29. Replies
    15
    Views
    768

    Re: Loading a listbox

    Your actual question is how to split a String based on a specific format. You can't add that String to the ListBox as it is because that would require the ListBox to know how to split it out into...
  30. VS 2019 Re: NoNullAllowedException error handling

    I don't often use a BindingNavigator but I'm fairly sure that you can handle the Click events of the Buttons and cancel the navigation, so you could validate the current record and only allow...
  31. VS 2019 Re: System.Data.OleDb.OleDbException: 'Syntax error in INSERT INTO statement.' Error

    Actually, taking another look at your code after Shaggy added the CODE tags, I can now see that you have two commas between two of the values. I couldn't see that without the formatting tags, which...
  32. VS 2019 Re: System.Data.OleDb.OleDbException: 'Syntax error in INSERT INTO statement.' Error

    You also have every value wrapped in single quotes when that should only be done for text values, so you might have encountered a data type mismatch if you hadn't encountered a syntax error. If you...
  33. VS 2019 Re: System.Data.OleDb.OleDbException: 'Syntax error in INSERT INTO statement.' Error

    It seems to be the same story every time with this sort of error. People tell us that they have a syntax error in their SQL code and then don't show us their SQL code, which suggests that they...
  34. VS 2017 Re: Unable to add and Delete controls Programmatically in .NET forms

    If you want to remove a specific Panel then you obviously need to be able to uniquely identify it. How exactly do you propose to do that? Is the user clicking a Button on that Panel to remove it? In...
  35. Re: Is somebody backing up the MSDN reference documentation?

    This may be everything:

    https://docs.microsoft.com/en-us/windows/win32/api/
  36. Re: Is somebody backing up the MSDN reference documentation?

    All that information appears to have been migrated to the Microsoft Docs site.

    https://docs.microsoft.com/en-us/windows/win32/winmsg/window-reference

    Actually, I just realised that that may...
  37. Thread: Formatting

    by jmcilhinney
    Replies
    8
    Views
    353

    VS 2010 Re: Formatting

    That seems fair enough. You're not going to get your thread deleted just by adding a post to it though. Only moderators can delete threads and there's a fair likelihood that they'll never see that...
  38. Thread: Formatting

    by jmcilhinney
    Replies
    8
    Views
    353

    VS 2010 Re: Formatting

    Requesting for the original question to be reinstated.
  39. Re: [RESOLVED] Select DatagridView Row Header.

    The headers of both rows and columns are considered cells, with indexes of -1 if I'm not mistaken. If you filter for a column index of >= 0 in your CellEnter event handler then I think that you would...
  40. Re: [RESOLVED] DataGridView Cell value when using Timer to trigger an event.

    You've marked this thread Resoloved and this is a different issue anyway, so you should start a new thread specifically for this new question.
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Click Here to Expand Forum to Full Width