Search:

Type: Posts; User: jmcilhinney

Page 1 of 13 1 2 3 4

Search: Search took 0.39 seconds.

  1. VS 2017 Re: Build failed - Do you want to continue debugging?

    That should never happen, given that you can double-click the error and be taken directly to the offending line.
  2. Replies
    3
    Views
    194

    Re: Print all Form content

    The PrintForm component is a dodgy hack anyway. It's a rare thing that what you actually want is a picture of the form. If what you actually want is to print data then print the data. You can do that...
  3. Replies
    8
    Views
    284

    Re: Showing text over an image

    That was an over-simplification but the fact is that you should not just lazily invalidate an entire control when you know that only a small part of it could have changed.
  4. VS 2017 Re: Build failed - Do you want to continue debugging?

    Did you look in the Error List window? That should tell you what the specific issues are and where. If they're are compilation errors then you actually have to fix the code. If course just building...
  5. Replies
    6
    Views
    159

    Re: Print a RichTextBox

    Just one small point: it's not a control. It's a component, which is what's required for designer support. A control is a type that inherits the Control class, which PrintDocument does not. A...
  6. Replies
    6
    Views
    159

    Re: Print a RichTextBox

    And I wonder what research you did to find out. You would generally add it to the form in the designer, just like you would a Button or a TextBox, just as my previous post implied. This is an example...
  7. Replies
    3
    Views
    145

    VS 2022 Re: Getting bit from Byte

    Two options come to mind immediately: a BitArray and bit-masking, e.g.

    Module Module1

    Sub Main()
    Dim b As Byte = &B10110101

    For i = 0 To 7
    ...
  8. Replies
    6
    Views
    159

    Re: Print a RichTextBox

    If you didn't have Button1 on your form, would you expect to be able to handle the Click event of of Button1? If you didn't have TextBox1 on your form, would you expect to be able to handle the...
  9. Replies
    8
    Views
    284

    Re: Showing text over an image

    Firstly, that code is not valid. Secondly, if you change it to be valid then it will work as you want.

    If you had spent a bit more time researching AddHandler then you'd know that the statement...
  10. Replies
    8
    Views
    284

    Re: Showing text over an image

    See, now we get to the actual information that should have been in your other thread. Now we might understand why you were trying to set the Text of a Label in the Paint event handler. If you provide...
  11. Re: Getting a Label control's text to update

    The reason you use the Paint event to do things like draw lines is that such drawing will disappear on each event, so you need to reinstate it. Property values like Text don't disappear because...
  12. Re: Getting a Label control's text to update

    Why would you think that using the Paint event that way is a good idea? That is not a rhetorical question; I really want to know. It is not, I assure you. If you explain what you're actually trying...
  13. Re: Retrieve Access AutoNumber Value After Insert

    That's doing concurrency checking. Rather than matching on just the primary key, it's matching on the original values of all columns. That's makes sure that you don't overwrite changes made by...
  14. Replies
    14
    Views
    483

    VS 2019 Re: Compare Text

    Still way too vague. I also asked specific questions which you ignored.
  15. Replies
    14
    Views
    483

    VS 2019 Re: Compare Text

    What are the actual rules? You need to be specific. Are you just saying that want to colour characters that appear in the second string but not in the first? The other way too? Something else? Code...
  16. Re: Displaying Greek beta symbol in TreeView icon text (read from disk)

    That's the problem. It's nothing to do with the TreeView. If the characters are displaying correctly to begin with then there's obviously nothing wrong with the control. The issue is how you're...
  17. Re: Reference to timer component on UserControl

    If you added the Timer via the designer then, just like controls, the corresponding field will be Public by default, so you can already access it. If you added it via code then you would need to...
  18. Re: [RESOLVED] Why are my Textboxes not square ?

    The height of a single-line TextBox is determined by the Font. Do you actually want multiple lines of text in each one? If not then it seems odd that you'd want a square TextBox with little text at...
  19. Re: How to draw a simple border lines around ListBox

    Should you not be calling MyBase.OnPaintBackground somewhere in that method? If you don't then you're responsible for all the drawing and not just adding to the existing drawing.
  20. Re: VB.Net & Sqlite database relative path issue

    This has got nothing to do with databases or connection strings. It's a simple matter of the basics of VB and how variables and Strings work. In that last line, everything inside the double quotes is...
  21. Replies
    9
    Views
    271

    VS 2010 Re: How to make new font() black

    Maybe you should try actually explaining your problem properly one of these days. Every time I think you might deserve my time, you prove yet again that you don't.
  22. Replies
    9
    Views
    271

    VS 2010 Re: How to make new font() black

    Fonts don't have a colour. When you call Graphics.DrawString, it is the brush that controls the colour. In your code you are explicitly creating brushes that are DarkBlue and Blue. If you want to...
  23. VS 2022 Re: Display Date and time on a form VS 2022

    Quite so, and if you are intending for the user to input the date and/or time then you should be using a DateTimePicker.
  24. Replies
    6
    Views
    342

    Re: Visual Studio 2022 for visual basic

    You don't bind a control to a database. If you're looking for instructions on how to do so then you won't find them, because it's not a thing. What you would do is bind the grid to a DataTable and...
  25. VS 2022 Re: Display Date and time on a form VS 2022

    Firstly, don't use that Format function at all, ever. It's a VB6 holdover that has no place in new VB.NET code. The same goes for that Now property.

    As for the question, if you want to display the...
  26. Replies
    7
    Views
    375

    Re: How can I make the execution faster?

    Note that QUOTE tags are for quotes, while CODE tags are for code. If you're posting code, use CODE tags. Most importantly, that will maintain indenting and make code much easier to read.
  27. VS 2022 Re: Bank customer programme (Windows forms .NET)

    They don't want it closer to real-life scenarios. They want it to demonstrate the principles that they're trying to teach. Real-life scenarios would involve complex stuff that would obfuscate those...
  28. VS 2022 Re: Bank customer programme (Windows forms .NET)

    Neither is especially relevant, given that projects like this are intended simply to demonstrate principles that can then be used in any app.
  29. VS 2015 Re: Sending form behind desktop icons

    What I'm saying is that the OP said that they were putting the form behind the desktop shortcuts when they weren't, but you code will. They are two different things so, if we're to help fix...
  30. VS 2015 Re: Sending form behind desktop icons

    That would actually put the form behind the desktop shortcuts, which is why it is important to describe the situation as it actually is.
  31. VS 2015 Re: Sending form behind desktop icons

    We can't see that attachment. The Insert Image function on the basic editor has a bug. Click the Go Advanced button and then use Manage Attachments.
  32. VS 2015 Re: Sending form behind desktop icons

    It isn't, because that code is nothing but declarations. There's no actual calls to the declared functions. You probably ought to show us how exactly you're calling those functions.

    It's also...
  33. VS 2015 Re: Sending form behind desktop icons

    Sounds much like a desktop widget, so the form is basically embedded in the desktop window, so it is displayed behind app shortcuts instead of in front of them.
  34. VS 2022 Re: Bank customer programme (Windows forms .NET)

    What have you done and where are you stuck? There's a link to a beginners tutorial in my signature below. We can help but it's your homework so you need to do the work. You haven't shown that you...
  35. Replies
    3
    Views
    376

    Re: SelectedIndex is SO valid!

    There's clearly nothing you can do about this but if you're interested in finding out what's actually going on, look at the stack trace of the exception to see where it's actually happening. I would...
  36. Re: Problem calling the following procedure in Visual Basic

    I imagine that the decompiler used generates C# code from IL but the fact that it is calling Interaction.MsgBox suggests that it was originally written in VB.
  37. VS 2015 Re: how can i use arrows of down up left right in gridview asp.net

    That would be happening in the browser on the client so it would require JavaScript code.
  38. Re: Datagridview Addition/deletion/modification

    You were actually right about that, but for the wrong reason. As I said repeatedly, all you need to do is create a command builder but calling GetUpdateCommand on it is pointless. You're calling...
  39. Re: Datagridview Addition/deletion/modification

    No it doesn't. There was never a need for that in the first place. That's the point.

    As I have already explained multiple times, it is pointless if you're not going to modify the command it...
  40. Replies
    6
    Views
    418

    Re: Post deployment error

    I'm not completely sure what you mean by an ascension number but I'm guessing that you're referring to what most databases would call a sequence. Many proper databases have them built in but I don't...
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Click Here to Expand Forum to Full Width