Search results for query: *

  1. jmcilhinney

    Fill cells with color

    Is this really VB.NET or is it actually VBA in Excel? It's not clear from the code but Call is completely unnecessary in VB.NET so it's use makes it look like an older VB flavour.
  2. jmcilhinney

    How to copy textbox1.text to clipboard

    That makes me realise that I never mentioned that doing it that way would require a call to SelectAll first.
  3. jmcilhinney

    How to copy textbox1.text to clipboard

    This is a perfect example of why you ALWAYS need to read the relevant documentation first when you have an issue/question. You'll solve many of your own problems faster by doing so and you'll learn more besides. If you had read the documentation for the TextBox class in this case, you'd have...
  4. jmcilhinney

    Resolved using string() as dictionary key

    You typed your post into a text editor that works like any other text editor. It has a toolbar at the top with buttons for formatting the text. When you hover over those buttons, a tooltip pops up to indicate what that button does. This is just like Microsoft Word or WordPad or any other WYSIWYG...
  5. jmcilhinney

    Resolved using string() as dictionary key

    If you use a reference type, i.e. a class, as the key then retrieving by key will use reference equality, not value equality. That means that it will only be recognised as the same array if it is actually the same array, not a different array containing equal elements. If you want to be able to...
  6. jmcilhinney

    Resolved Remove Click Event Handler

    You absolutely should not be trying to directly remove an event handler that's attached via a Handles clause. Just assign something else, including Nothing, to the field and the events of the original object will not be handled any more. Handles clauses associate a handler with a field rather...
  7. jmcilhinney

    Resolved Remove Click Event Handler

    How was the handler added in the first place?
  8. jmcilhinney

    Question Graphics and data gridview question

    Are you targeting .NET Framework or .NET Core? .NET 5 and later are based on .NET Core. If it's the former, there is a Chart control in the Toolbox and you should learn how to use that first. Once you know how to populate a Chart control, then you can do it with the data from your grid or, more...
  9. jmcilhinney

    Question Graphics and data gridview question

    Please post in the most appropriate forum for the subject. I have moved this thread to the Charting forum.
  10. jmcilhinney

    Resolved Shared Methods

    Keep in mind that pretty much all the framework is written in C#, so there are some things that will be C#-centric where there is some difference to VB. Shared members in VB and static members in C# are the same thing so, as you surmised, that Enum field will indeed search for members declared...
  11. jmcilhinney

    Resolved Shared Methods

    You are correct. The use of the word "static" is a little confusing here. There is a Static keyword in VB but it has nothing to do with this. The static keyword in C# has basically the same meaning as the Shared keyword in VB. It does appear that the whoever wrote that code has forgotten to...
  12. jmcilhinney

    Question DEPLOYE PROJECT TO EXE -WITHOUT .RPT FILE

    How you go about printing reports depends on the reporting tool you're using. If the tool you're using requires an RPT then you have no choice but to deploy the RPT with your application. If it doesn't then the documentation for the tool will explain that and what it does require. If your actual...
  13. jmcilhinney

    Question DEPLOYE PROJECT TO EXE -WITHOUT .RPT FILE

    You don't deploy a project to an EXE. You compile a project to an EXE and then you deploy the EXE. If your question is about printing reports then it's not about deployment, so it doesn't belong in the Deployment forum. Moved.
  14. jmcilhinney

    Launch a web page with your default browser

    The reason that your code has worked previously but not recently is probably because of the difference between .NET Framework and .NET Core (.NET 5 and later are based on .NET Core). As has been shown, you need the UseShellExecute property of the ProcessStartInfo to be set to True. That is the...
  15. jmcilhinney

    Question Help Needed to make animation from pattern string for displaying Bingo winning patterns

    Probably not, unless you're deploying this application to be used for a significant amount of time into the future. If you were using C# then you could take advantage of some new language features but VB hasn't really changed much and WinForms hasn't really changed at all. .NET Framework 4.8.1...
  16. jmcilhinney

    Question Help Needed to make animation from pattern string for displaying Bingo winning patterns

    Well that would be wrong. There would be no loop. Each time the Timer Ticks, you change the pattern. No loop.
  17. jmcilhinney

    Question Help Needed to make animation from pattern string for displaying Bingo winning patterns

    I would suggest using a Timer and handling the Tick event. On each Tick, toggle the pattern. Start and Stop the Timer as required.
  18. jmcilhinney

    Question Help Needed to make animation from pattern string for displaying Bingo winning patterns

    If you already have Labels, why not just change the colour of those?
  19. jmcilhinney

    Question Help Needed to make animation from pattern string for displaying Bingo winning patterns

    There are all sorts of way this could be achieved. Given that Buttons exist for clicking, using them for this alone would be a bit silly. Do you already have Buttons on your form? What you're actually starting from would be a significant factor in the decision of how to implement it, but you've...
  20. jmcilhinney

    Writing numbers to file and reading numbers from file

    That looks pretty good. PeekChar will tell you whether there's more data and, if there is, you know that there will be at least one record available, so you read the next record. Rinse and repeat. Note that this: Console.Write(x) Console.Write(vbCrLf) does the same as this: Console.WriteLine(x)...
Back
Top