Search results

  1. jmcilhinney

    Vertical side panel menu with sub panel

    Attaching ZIP files to a post should be your very last resort. If you want to post an image then you should insert it directly into your post, so we can see it without having to navigate to another site or download anything. As for code, it is very rare that we need an entire project and...
  2. jmcilhinney

    Question How to display text inside the qoutation ("") in a richtextbox.

    Of course it is. What don't you understand about the information you found about read XML files when you searched online? If you explain what you've done and where you're stuck, we can help with that. If you haven't done anything then you haven't got stuck yet. In short, do what you can for...
  3. jmcilhinney

    Question How to display text inside the qoutation ("") in a richtextbox.

    Firstly, the question you are actually asking here is how to extract data from an XML file, so that is what you should be researching online. There's loads of information on that so you should be able to find something useful and at least make an attempt. Secondly, that's not even valid XML...
  4. jmcilhinney

    Forms controls sizing issue

    I forgot to mention that you would need to set the Dock of the TableLayoutPanel to Fill.
  5. jmcilhinney

    Loop Through Specific Labels

    What you think should or shouldn't be the case is irrelevant. We all think that our code shouldn't have bugs in it or we wouldn't write that code in the first place. Yours does have a bug in it though, so use the debugger to find it. Just reading the code may be enough for the simplest issues...
  6. jmcilhinney

    Forms controls sizing issue

    The simplest way to centre a control is to put it in a TableLayoutPanel. Add a TableLayoutPanel to the form with three columns and three rows, set the middle column and row to autosize and the others to 50% and then add a control to the centre cell, that control will then remain in the centre of...
  7. jmcilhinney

    Green Border Around Form

    That has got nothing specifically to do with VB or .NET. I've never seen such a thing so I can only assume that it has something to do with your system and, possibly, your OS rather than .NET. Are you using some custom code to draw the form that you got off the web? Do you have some utility...
  8. jmcilhinney

    Loop Through Specific Labels

    On a different note, don't use 2D arrays like that. Maybe you have been taught that, as it is unfortunate that many beginner courses do teach that because they think that teaching types at that stage is too hard. 2D arrays should only be used as a genuine matrix, e.g. to indicate seats in a grid...
  9. jmcilhinney

    Loop Through Specific Labels

    The error message tells you exactly what the issue is. You used an invalid index. You need to use the debugger to find out exactly where it happens, exactly what index is being used and exactly what the valid range is at that time.
  10. jmcilhinney

    Loop Through Specific Labels

    One option would be to add a Panel to your form and then add the Labels to the Panel. You can then just access every Label on the Panel: For Each lbl As Label In myPanel.Controls Another option would be to name the Labels the same with a numerical suffix: For i = 1 To 24 Dim lbl =...
  11. jmcilhinney

    Question How to duplicate an selected row in a bound DataGridView

    You have posted in the wrong forum. The VS.NET General Discussion forum is for discussion of Visual Studio itself, not about code written in VS. We need more accurate information to determine where this question belongs. What type of application are you creating? Is it Windows Forms, WPF...
  12. jmcilhinney

    Temporary online data storage

    Things have clearly got way out of hand. If you have a web site using a commercial host then they will provide the database. The most common option available would be MySQL because the license is free, but many will provide SQL Server as well. You should start by deciding where the site is going...
  13. jmcilhinney

    Appointment Calendar for a month on one form

    Of course you can. You can draw whatever you want using GDI+. The "background" is just the first layer that you draw. If you want multiple different-coloured backgrounds then you call FillRectangle multiple times, then call DrawString to draw text on top of that. Of course you can't. There's no...
  14. jmcilhinney

    Appointment Calendar for a month on one form

    No it doesn't. I told you to read the documentation for the DrawString method and @JohnH specifically told you that it was the StringFormat parameter that controlled wrapping. Did you look into that at all? It's hard to see that you could have. All you had to do was change this...
  15. jmcilhinney

    Appointment Calendar for a month on one form

    You probably hadn't read my previous post when you wrote this but I will repeat anyway: look first, ask questions later. DrawString is what draws the string so that is where you will control how the string is drawn. READ THE DOCUMENTATION.
  16. jmcilhinney

    Appointment Calendar for a month on one form

    Given that the Graphics.DrawString method is what is being used to draw the text, maybe you should research that to see what it can and can't do. Look first, ask questions later.
  17. jmcilhinney

    Appointment Calendar for a month on one form

    I don't know exactly what you mean by that but it certainly doesn't sound like something useful; at least, not on its own. If you don't handle that event or use a custom cell type that does its own custom painting, you're just going to end up with a single line of text in a single colour...
  18. jmcilhinney

    Appointment Calendar for a month on one form

    Here's some test code I tried: Public Class Form1 Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load Dim fieldText = "Red Green Blue" Dim table As New DataTable table.Columns.Add("First", GetType(String)) table.Columns.Add("Second"...
  19. jmcilhinney

    Appointment Calendar for a month on one form

    The one that is commented out is outside the If block, so that shouldn't make a difference. There is one inside the If block and that should be executed if painting is actually done. I don;t have time to look into it further right now but, while the behaviour sounds like that's the issue, the...
  20. jmcilhinney

    Appointment Calendar for a month on one form

    You populate your cells with your data, whatever that may be. It might be just the text or it might also contain some metadata regarding how the text will be displayed. What happened when you tried it for yourself? GDI and GDI+ are two similar but different things. You're using GDI+ to draw...
Top Bottom