Search:

Type: Posts; User: jmcilhinney

Page 1 of 13 1 2 3 4

Search: Search took 1.17 seconds.

  1. Re: [RESOLVED] Why is my clock not ticking ?

    The type of a My.Resources property depends on the type of the file added in the first place. I'm not sure but it may depend on other factors too, e.g. the size file. It may be that a Byte array is...
  2. Re: [RESOLVED] Why is my clock not ticking ?

    I've mentioned it once or twice recently but don't recall to whom. My memory is what it used to be, which is no great recommendation.

    Plot twist: it was canasta but you forgot.
  3. Re: [RESOLVED] Why is my clock not ticking ?

    I think that I have mentioned this before but every time you access a property of My.Resources you create a new object, which means that the data has to be extracted from the EXE again. Don't do...
  4. Re: How Can I specify folder location for my ConfigurationManager MyApp.exe.config fi

    If you use the Publish functionality built into VS then you're using ClickOnce. It's not a case of disabling anything. It's a case of not using it. There are other ways to deploy an application if...
  5. Re: How to disable auto-save feature in VS Pro 2019?

    If you want to be able to test and discard changes then you ought to look into using source control. An Azure DevOps account is free and the functionality is built into VS. You can make changes to...
  6. Re: How Can I specify folder location for my ConfigurationManager MyApp.exe.config fi

    If you use ClickOnce then your application is installed in the ClickOnce cache. If you don't want your app to work the way ClickOnce works, don't use ClickOnce.
  7. Re: [RESOLVED] form visuals keep redrawing..

    Yes, you should be using WPF. Things have moved on from when WinForms was developed and it does handle many newer advancements very well. WPF was built from the ground up with these newer...
  8. Replies
    7
    Views
    161

    VS 2013 Re: A function to create datatable?

    You just ignored a big chunk of what I said. What is the point of that parameter? There is no point. You don't use anything passed in via that parameter and you don't pass anything out via that...
  9. Replies
    7
    Views
    161

    VS 2013 Re: A function to create datatable?

    Corrections made. That's what I get for copying the existing text and editing instead of writing from scratch.
  10. Replies
    7
    Views
    161

    VS 2013 Re: A function to create datatable?

    For completeness, another option for that method would be a Sub with a parameter passed by reference:

    Public Sub CreateDataTable(ByRef dt As DataTable)
    Dim dt As New DataTable

    ...
  11. Replies
    7
    Views
    161

    VS 2013 Re: A function to create datatable?

    If you want to get something out of a method then you implement a Function, not a Sub. There's no point to that method having a parameter because there's nothing to pass in. The method should look...
  12. Re: Problem in class defination

    That would allow setting the properties to negative values, which the intended code appears to disallow.
  13. Re: Problem in class defination

    You didn't read your code very well, which is exactly why you need to debug code and not just read it. The issue would then have been obvious:

    Public Class cRectArea
    Private _length As Double...
  14. Re: [RESOLVED] Change "Resolved" back to an open thread?

    I was able to edit the first post in a thread in the Forum Test Area and change the thread title but I can't say for sure whether it's the same in other forums.
  15. Replies
    0
    Views
    80

    Test Thread 1.1

    Test Post 1.1
  16. Replies
    2
    Views
    123

    VS 2019 Re: Touch Screen Move App Problem

    A regular WinForms app can be moved on a touch-screen simply by tapping and dragging the title bar, as you'd expect. If that doesn;t work for your app then obviously it's not a regular WinForms app....
  17. VS 2010 Re: How to save My.Settings even when the exe application is copied

    There is no way. User-scoped setting are stored in an XML file under the user's personal folder. They don't even need to copy the EXE; they can just delete that file. If you want to implement a trial...
  18. Replies
    2
    Views
    103

    Re: Arithmetic Overflow in LINQ

    Firstly, you ought to be casting all those values to begin with, because that Value property returns an Object reference. That means using CInt(row.Cells("ColumnName").Value),...
  19. VS 2013 Re: Updating a Datagridview function while running UI with serial comm

    What's the signature of the MethodInvoker delegate?
    Public Delegate Sub MethodInvoker()

    Here's your method declaration:

    Public Sub UpdateGrid(ByVal bytes_Input As Byte())
    See the issue? You...
  20. Replies
    6
    Views
    326

    VS 2010 Re: conway"s game of life

    You could always try to address the specific issues you're having, or even write something yourself from scratch.
  21. Replies
    6
    Views
    246

    VS 2010 Re: text to voice

    It's probably a bit late to do anything about it now but SAPI has not been the first choice for .NET developers for a long time.
    ...
  22. Replies
    6
    Views
    239

    Re: Loop not working

    You've posted this in the VB.NET forum but that's obviously wrong. It appears to be Excel VBA so i have asked the mods to move this thread to the Office Development forum. Please know what language...
  23. Re: Avoiding Cross Thread warnings during SerialPort.ReceivedData events

    That code is weird. What is that m_FormDefInstance field for? Why does that form need a reference to another form of the same type? How is that field populated? How is the DefInstance variable...
  24. Re: How to take basic calculations in a text box as an input

    The TextBox doesn't do anything. It accepts the user input and you get that input as a String from the Text property. What you do with that String is up to you and nothing to do with the TextBox. I...
  25. Re: Avoiding Cross Thread warnings during SerialPort.ReceivedData events

    The DataReceived event is raised on a secondary thread so that means that you cannot access UI elements directly. You need to marshal a method call to the UI thread in order to access your controls...
  26. Re: How to convert total minutes to time format?

    This has got nothing to do with the topic of this thread. One thread per topic and one topic per thread. The question you asked about here has been answered so use the Thread Tools menu to mark this...
  27. VS 2017 Re: Value of type string cannot be converted and property is readonly

    It's also worth noting that a lot of examples available online, particularly for advanced topics, are likely to be available in C# only. You can generally translate them into VB if required but it's...
  28. VS 2017 Re: Value of type string cannot be converted and property is readonly

    If you're targeting the .NET Framework and particularly Windows apps, VB can do all you need. It is still quite popular, particularly with hobbyists. That said, C# has been the preferred language for...
  29. VS 2017 Re: Value of type string cannot be converted and property is readonly

    The public key is not an arbitrary string. It is binary data that is generated cryptographically. There is a constructor that accepts a Byte array from which the public key can be generated but it's...
  30. Re: How to convert total minutes to time format?

    That's basically correct but there are some issues there.

    Firstly, I would suggest that you probably shouldn't be using a TextBox at all but, rather, a NumericUpDown, especially if you only want...
  31. Re: How to generate an alphanumeric tree changes with criteria?

    I've asked the mods to move this thread to the appropriate forum. Please don't create a duplicate thread in the mean time.
  32. Re: visual studio 2017 query dosnt show result although there is a null value why?

    Your English seems pretty god but apparently you have no idea what the word "full" means. What database are you using? Have you executed that query in the appropriate management tool? What happened...
  33. Re: visual studio 2017 query dosnt show result although there is a null value why?

    A FULL and CLEAR explanation of the problem. Why do we still need to drag the relevant information out of you after all this time?
  34. VS 2012 Re: how to link datagridviews events created using multiple tabcontrol

    You might also want to consider creating your own custom tab pages with the grid built in. For an example of that type of thing, follow the Codebank link in my signature and check out my Tabbed Web...
  35. Replies
    2
    Views
    6,060

    Re: JQuery > button > click created link

    If the OP is still waiting for a solution to this issue after nearly four years, I'd be gravely concerned. That's not to say that you should not provide advice, because it may help others who find...
  36. Re: Hong Kong, Portland and the Moral Low Ground

    Establishment Democrats and Republicans do seem to agree on more than they disagree on, but there are a few key sticking points that prevent them admitting it. They can also con people into thinking...
  37. Thread: Kill task

    by jmcilhinney
    Replies
    2
    Views
    145

    VS 2012 Re: Kill task

    Actually, you probably ought to be using a combination of the two. Calling CloseMainWindow is like clicking the Close button on the title bar of the app's main window while Kill is like using End...
  38. Re: Can't Enable A Timer In Another Thread

    This is from the Remarks section of the documentation for the WinForms Timer class:

    You basically have to treat it like a control in that you only interact with it on the UI thread. That would...
  39. Re: [RESOLVED] "Reset" a With/End With structure?

    If your workaround does the job then fine, but there's also the option of not using With at all. If you were using any language other than a flavour of VB then that's what you'd have to do anyway.
  40. Re: Hong Kong, Portland and the Moral Low Ground

    As a number of genuine left-wing pundits have expressed lately, laying low is Biden's best option at the moment. Trump is doing his job for him right now. There are those committed Trump supporters...
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Click Here to Expand Forum to Full Width