dcsimg

Search:

Type: Posts; User: jmcilhinney

Page 1 of 13 1 2 3 4

Search: Search took 8.61 seconds.

  1. Replies
    1
    Views
    27

    VS 2019 Re: WidowsForm scrollbar

    You could start by showing us something that we could examine to determine what is wrong with it. Your question amounts to "I have forms, some don't work, what's wrong".
  2. VS 2019 Re: Temp files mysteriously being deleted

    If only there was a way that we could check your code, and maybe even test it for ourselves to see whether we experience the same behaviour.
  3. Replies
    3
    Views
    124

    Re: Uploading a Vector Image to a Form

    Also, you shouldn't ignore examples in C# or other information aimed at C# developers. VB.NET and C# are very similar and a passing knowledge of one means that reading the other is not too...
  4. Replies
    3
    Views
    124

    Re: Uploading a Vector Image to a Form

    That's not really an upload. If it was a web application then you could consider it to be an upload, because the file would actually be transferred from the local machine to the web server. In this...
  5. Replies
    4
    Views
    122

    VS 2010 Re: Data Parsing

    The appropriate response is for you to read the relevant documentation, look for examples yourself and then post back if you need more help after that. If someone points you in a particular...
  6. Replies
    4
    Views
    122

    VS 2010 Re: Data Parsing

    I've never actually used a Socket directly before but I believe that, if you use the asynchronous methods it provides instead of the synchronous ones, you can begin an asynchronous operation and it...
  7. VS 2019 Re: A trick to not have a solitary TextBox focused on form load.

    Given that I said this:

    the logical inference should be that the text WILL wrap if you set AutoSize to False. The text will then wrap when it fills the width of the Label. You obviously have to...
  8. Re: VS 2017 is there another way to do this?

    You shouldn't be handling Validated unless you're handling Validating. Validated is raised if and only if Validating passes. If you want to do the same thing every time without using Validating,...
  9. Replies
    3
    Views
    229

    Re: Do you write joins like this?

    I've never written or seen a query like that before but I do know that, once you throw in an outer join, all subsequent joins in the same query have to be outer joins too. If that code is working...
  10. Re: VS 2017 after exit form 2 form1 dosnt show properly until restore screen

    Don't call Dispose on a form within the form. If a form is displayed by calling Show then closing it IS disposing it. If it was displayed by calling ShowDialog, it should be disposed in the caller...
  11. VS 2019 Re: How to retrieve a ticket for re-printing in VB.NET?

    No. the columns in each table refer to completely different things so they should specifically NOT be the same. The only that might be the same, and probably will, is the primary key of the parent...
  12. Re: VS 2017 after exit form 2 form1 dosnt show properly until restore screen

    How do those last two snippets make any sense? You have an MDI child form that is about to close and it creates another form and tries to make it a child of itself? How can a form be a child of a...
  13. VS 2019 Re: How to retrieve a ticket for re-printing in VB.NET?

    Go back and read my previous post again. Two things to take notice of: the use of a DataTable/DataSet and the use of related tables with a 1:many relation. The reason that each item has a different...
  14. VS 2019 Re: How to retrieve a ticket for re-printing in VB.NET?

    That all sounds reasonable. The next step is to identify exactly what data a ticket contains and build the appropriate database schema for that. For example, a ticket might have a number, the name...
  15. VS 2012 Re: Parsing/Interpreting a small defined set of user commands into VB.Net code

    Your existing application knows about the new assembly that it will be loading but not vice versa. As such, the new assembly will have to be written in such a way that all the data it needs can be...
  16. VS 2017 Re: MsgBox appears at behind everything

    This isn't something that we should ever have to say: show us the code. If you want help to fix code that doesn't work, keeping that code a secret is about the worst thing you can do.
  17. VS 2019 Re: How to retrieve a ticket for re-printing in VB.NET?

    You need to stop and make a decision exactly what you're going to save where. Are you going to:

    1. Save text and number data to a database?
    2. Save an image to a file?
    3. Save an image to a...
  18. Re: Visit Every Control on a Form (includes nested controls, no recursion)

    That doesn't look like my code. Also, this is off-topic for this thread, which is about NOT using recursion. CodeBank threads, in particular, should not be cluttered up with tangential subjects. ...
  19. Re: Visit Every Control on a Form (includes nested controls, no recursion)

    If you want to visit the controls by TabIndex then simply sort them by TabIndex.

    Private Sub ProcessControl(ctrl As Control)
    'Use ctrl here.

    For Each child In ctrl.Controls.Cast(Of...
  20. Re: Keep getting this error at the end. :( :(

    You can write whatever you want to the file using a StreamWriter. Read about the class, check out some existing examples, try to do what you want to do and then post if and when you encounter an...
  21. VS 2019 Re: How to retrieve a ticket for re-printing in VB.NET?

    Actually, I think what I actually said was that you should just do the drawing in one place, i.e. onto the Image, and then the printing would be a single call to DrawImage. What's the problem? If...
  22. VS 2019 Re: How to retrieve a ticket for re-printing in VB.NET?

    No. That's a Graphics object. It DOES the drawing. It doesn't CONTAIN the drawing. Nothing you do changes that object. You just tell it what to draw on the canvas associated with it and it does...
  23. Replies
    1
    Views
    110

    VS 2019 Re: Geckofx get new window url

    What do you mean by "can't find"? C# and VB use the same types so they don't magically have different members in each language. Do you actually mean that it has no value? Are you actually saying...
  24. VS 2012 Re: Parsing/Interpreting a small defined set of user commands into VB.Net code

    Are you saying that you want a developer to be able to type one of those keywords into the VB code editor and have it replaced with the corresponding code? If so, look into "code snippets" That...
  25. Re: Visit Every Control on a Form (includes nested controls, no recursion)

    The order of child controls in the parent's Controls collection matches the z-order. You can see this in the designer by using the Document Outline window.
  26. Replies
    12
    Views
    255

    VS 2019 Re: Help to draw on bitmap

    So you've never used Word or WordPad or any other text editor in any other app or on any other web site before? That seems unlikely.



    I wonder whether the documentation has anything to say on...
  27. Replies
    12
    Views
    255

    VS 2019 Re: Help to draw on bitmap

    p_Image is a variable of type Bitmap that you assign a Bitmap object to. When you create a Graphics object, it is associated with the Bitmap object that you created it from. If you create a new...
  28. Replies
    12
    Views
    255

    VS 2019 Re: Help to draw on bitmap

    I can't imagine that you haven't used a text editor with a toolbar before. You've entered all you posts into one so far. That toolbar is all about formatting the text you enter. Did you have a...
  29. Replies
    12
    Views
    255

    VS 2019 Re: Save a drawing

    Slightly hard to tell when the same enormous wad of irrelevant code is included in both.
  30. Replies
    12
    Views
    255

    VS 2019 Re: Help to draw on bitmap

    Please don't post unformatted code as it is very hard to read.
    Public Class frmYarPaint
    Dim ned = False 'Tjekke om man har trykket mus ned
    Dim Pensel As SolidBrush = New...
  31. Re: Keep getting this error at the end. :( :(

    As for the issue, you shouldn't be using that style of I/O in the first place. If you're using VB.NET then you should use it, rather than writing VB6 I/O code. If you want to write to a text file...
  32. Re: Keep getting this error at the end. :( :(

    Please don't post unformatted code. It's too hard to read.
    Module Module1
    Structure MembershipInformation
    Dim membership_ID As String
    Dim name As String
    Dim...
  33. Re: How to get the Hibernate Option in Windows 10.

    Does that mean that you do have InstantGo on your new machine?
  34. Re: How to get the Hibernate Option in Windows 10.

    What do you have under the following Registry key?

    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power
  35. Re: No Exception If Field Not Found

    Almost 10 years old and still relevant.

    http://jmcilhinney.blogspot.com/2009/08/retrieving-database-schema-information.html
  36. Re: Naming convention for form wide variables.

    I hate Hungarian Notation but naming a TextBox 'folder' is bad in my opinion. Things should be named what they are. The only thing that I would name 'folder' would be a DirectoryInfo object,...
  37. Replies
    5
    Views
    229

    VS 2017 Re: Select Case Syntax

    If this is a casing issue then you can use this:
    cmdUsers.Enabled = yourCollectionOfNames.Any(Function(name) name.Equals(user, StringComparison.CurrentCultureIgnoreCase))
  38. VS 2010 Re: [RESOLVED} - VB 2010 - help for *.docx as attachment in System.Net.Mail?

    That said, maybe you should populate the ListBox with both the name and path of the files. If you create a DirectoryInfo for the folder containing the files, call GetFiles and bind the result to the...
  39. VS 2010 Re: [RESOLVED} - VB 2010 - help for *.docx as attachment in System.Net.Mail?

    Be sure to dispose each Attachment object after sending the message, otherwise the files will remain locked. Also, you should acquaint yourself with the Path.Combine method. Rather than this:...
  40. Re: Naming convention for form wide variables.

    I guess I'm crediting you with more years than are warranted. ;)
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Featured


Click Here to Expand Forum to Full Width