Search:

Type: Posts; User: jmcilhinney

Page 1 of 13 1 2 3 4

Search: Search took 1.91 seconds; generated 28 minute(s) ago.

  1. Re: Export time value from Datagridview to Excel

    If they are text to begin with and you're writing them as text then it may be that Excel is interpreting them as numbers because they look like numbers and leading zeroes are not displayed for...
  2. Replies
    12
    Views
    379

    Re: Context menu issue

    Over complicating things is par for the course for a beginner. We pretty much all do it to begin with. One of the keys to progressing is recognising how to break a problem down into its simple parts....
  3. Re: Export time value from Datagridview to Excel

    If the grid cells contain DateTime values then caling ToString with no arguments will use the system default format. If you want a specific format then pass an appropriate format specifier when...
  4. Replies
    12
    Views
    379

    Re: Context menu issue

    I said this:

    Have you assigned the menu to a field? If you added the menu in the designer then it's done automatically, just as you have ListBox1 automatically referring to your ListBox control....
  5. Replies
    12
    Views
    379

    Re: Context menu issue

    Of course it's Nothing. You specifically set it to Nothing, as you should have. Go back and read post #2 again.
  6. Re: Tooltip does not appear sometimes: Windows Forms

    Have you tested to see whether there is any sort of pattern to it not displaying? Can you create another project with a form designed the same way and see the same behaviour?
  7. Replies
    12
    Views
    379

    Re: Context menu issue

    I was saying that you could do that if you needed to. I already explained that setting that property has the effect of displaying the menu any time the control is right-clicked and I was indicating...
  8. Re: how to set the size of the header as the smae as the data in streamwriter

    Tabs don't magically line up text of arbitrary length. Tabs may be variable length but they are still measured from the end of the preceding text. You should read this.
  9. Replies
    12
    Views
    379

    Re: Context menu issue

    I already told you what to do differently.

    DO NOT assign the ContextMenuStrip object to the ConextMenuStrip property of the control, for the reason I already provided in post #2.
  10. Re: set timer for a excel spread sheet using a variable for the time value

    This is not VB.NET code. Thread moved to Office Development forum, which is where VBA questions belong. Even VB.NET code that is Office-specific can be posted in Office Development.
  11. Replies
    12
    Views
    379

    Re: Context menu issue

    Also, why are you creating the menu in code? Was that just for our benefit? If not, don't. Add it to the form in the designer. You can create the event handlers in the designer too and, if you wanted...
  12. Replies
    12
    Views
    379

    Re: Context menu issue

    Don't do this:

    ListBox1.ContextMenuStrip = contextMenuStrip1
    Just assign the ContetxMenuStrip to a field and then use that field here:

    ListBox1.ContextMenuStrip.Show(ListBox1, e.Location)
    The...
  13. Replies
    12
    Views
    335

    Re: Using a module

    Unless you're talking about large amounts of data or very complex queries, the amount of time the user spends waiting for the data to load will be relatively insignificant anyway, so there's little...
  14. VS 2022 Re: VB.net: "IndexOutOfRangeException" Error Querying SQLite DB

    You read my replies but then chose to do something other than what I told you to do and got the same error. No surprise then. Now do what I did tell you to do and see the error disappear.

    If your...
  15. Replies
    2
    Views
    237

    VS Code Re: SQL help pls

    Why is it that I already replied to this exact same question in a different forum under a different account?
  16. Replies
    3
    Views
    265

    Re: Old school learning new techniques.

    If you've read the documentation for the SqlDataAdapter class or any tutorials on its use then you know that you have to call its Fill method to populate the DataTable with the result set. That...
  17. VS 2022 Re: VB.net: "IndexOutOfRangeException" Error Querying SQLite DB

    I just had a quick look at your code and the issue seems fairly obvious and you should have already seen what it is for yourself because you should have already debugged the code. You have this:
    ...
  18. VS 2022 Re: VB.net: "IndexOutOfRangeException" Error Querying SQLite DB

    The direct cause is obviously in the VB code. As with any run-time exception. You need to actually debug your code to see what the immediate issue is. The error message is telling you that an index...
  19. VS 2005 Re: Resource filepath with id using res:// protocol

    That's not an answer to the question that was asked. You weren't asked whether you're able to access the resource successfully in IE. You were asked whether accessing the resource in IE is what...
  20. Replies
    6
    Views
    827

    Re: List of Anonymous objects

    Anonymous types can generally only be used in the same context in which they are created, because only that context knows what properties they have and can thus access those properties at compile...
  21. VS 2008 Re: Advise needed on a sync issues between MySQL and a Firebird database.

    A better way than what? We don't know what you're doing so we can't know what you might be doing wrong. Also, a crash is an unhandled exception so it's important that we know what that exception is...
  22. VS 2022 Re: VB.net: Getting TextBox content as 'YYYYMMDD' or 'YYYYMM'

    If you want to parse text into a DateTime then you should have read the documentation for the DateTime type. Had you done that, you'd have seen that it has a TryParseExact method that allows you to...
  23. Replies
    9
    Views
    6,532

    Re: Final Grade Calculator

    Almost certainly for the purposes of future spam, given that it also adds no programming value. Post deleted.
  24. Re: Help required in understanding x y values when using RC6 Cairo BindToArray

    Moved from VB6 CodeBank forum, which is for sharing working code samples.
  25. Re: how to make numberformatinfo for decimal separator for double.tryparse

    Do you actually mean that you want to make one for both, i.e. one in total, or one for each, i.e. two in total? You can't do the former because the NumberFormatInfo class only has one...
  26. Re: how to set value of a field of a form from another form

    Don't forget to use the Thread Tools menu to mark the thread Resolved if you issue has been resolved.
  27. Re: Need help to write method for a VB6 class

    Given that the member who created that original thread is still very active on the site, you probably should have posted to that thread, rather than creating a new thread. I would suggest that you...
  28. Re: Need help to write method for a VB6 class

    This is not a project request so does not belong in the Project Requests forum. It's just a regular VB6 question. Thread moved.
  29. VS 2010 Re: VB2010 - why i don't move with the right radian?

    We can't even test your code because we don't have access to those DrawCircle or DrawLine methods. Come on, man! You didn't show us what happens and we can't test for ourselves because your code is...
  30. VS 2010 Re: VB2010 - why i don't move with the right radian?

    This seems like the sort of question that would have benefitted from a screenshot or two. Also, maybe explain exactly what you expect to see and what you actually see. What you've provided is rather...
  31. VS 2010 Re: VB2010 - why i don't move with the right radian?

    OT: NEVER use End in VB.NET. Replace that with Application.Exit.
  32. Re: [RESOLVED] Changing checkbox in listview via code

    If you don't need or want an answer to your question, please use the Report Post icon to ask the mods to delete it. Otherwise, please post your solution so that it might help others with a similar...
  33. Re: how to set value of a field of a form from another form

    Firstly, there's no point calling Close when you have set the DialogResult. Once Dialogresult is set to anything but None, the form is closing. In fact, if you want to set the DialogResult when a...
  34. Replies
    45
    Views
    5,275

    Re: Problem with conversion of values

    C# is a language, not a technology. You still have to choose what technology you're going to use to build the app. If you want a GUI app for Windows then WinForms is the oldest tech, then came WPF...
  35. Replies
    4
    Views
    284

    Re: Problem with One TextBox Value

    I don't know what you're trying to say. As I already requested, please provide a FULL and CLEAR explanation of the problem. I suspect that English is not your first language so I appreciate that it...
  36. Re: How to show a message to user that No record for this Primary Key?

    Assuming that that DAL is calling ExecuteNonQuery on a command object, that method returns the number of records affected. Of course, if the OP wanted to know how to do something inside that method,...
  37. Re: How to show a message to user that No record for this Primary Key?

    When you want to do something IF a particular condition is true then obviously you need an if statement, when means that you need a Boolean expression to evaluate. How you get that expression is...
  38. Replies
    4
    Views
    284

    Re: Problem with One TextBox Value

    Are you saying, without actually saying, that this:

    decimal.TryParse(txtfinalcommite.Text, out commoite)
    returns false? If that's the case then obviously the text in the TextBox is not a valid...
  39. Replies
    4
    Views
    284

    Re: Problem with One TextBox Value

    For future reference, please don't post code snippets with a big wad of leading whitespace. It just makes the whole lot harder to read. It's also more annoying when you remove the whitespace from the...
  40. Replies
    45
    Views
    5,275

    Re: Problem with conversion of values

    For the record, ExecuteScalar uses a data reader internally. It can certainly make code more succinct and should be used where appropriate, but it won't affect performance. Here's the implementation...
Results 1 to 40 of 486
Page 1 of 13 1 2 3 4



Click Here to Expand Forum to Full Width