dcsimg

Search:

Type: Posts; User: si_the_geek

Page 1 of 13 1 2 3 4

Search: Search took 0.73 seconds.

  1. Re: VB NET QUESTION: Dynamically adding an array of controls to a form's groupbox, ho

    Instead of this line:

    you need something like:


    However, as you only use HostForm for adding/removing the controls, it would be sensible to simply change HostForm As System.Windows.Forms.Form...
  2. VS 2019 Re: [RESOLVED] Assigning values to properties

    With writing a line of code there are three things that are important:
    1) The syntax is valid
    2) The code will compile
    3) The code will behave as intended (including not getting an error every...
  3. Re: VB NET QUESTION: Suitability for VB.NET to create such a program?

    Most of the code you would want is in the CodeBank. For the graphical stuff boops boops has several good ones, including the one I linked to which does most of the stuff you want here.

    I reckon...
  4. Re: Forum abbreviations of links is awkward...

    It would be nice to see the full link, but a quick hover with the mouse shows the full URL (exactly how and where depends on your webbrowser), so it isn't as bad as it could be.
    That kind of thing...
  5. Re: VB NET QUESTION: Suitability for VB.NET to create such a program?

    Yes.

    Apart from learning new technologies etc, fairly straightforward.

    Yes, but as users of this kind of app are more likely to be outside of the normal range of users, they might be the kind...
  6. VS 2019 Re: Assigning values to properties

    I partly agree with that, but unfortunately there is a wide variety of valid things you can put that aren't the values themselves, eg:

    x.Enabled = y.Enabled
    x.Enabled =...
  7. VS 2019 Re: Assigning values to properties

    The way you can tell which values are allowed is to know the data type well enough to know what the valid values are... but as there are hundreds of data types (and thousands of properties that use...
  8. VS 2019 Re: Assigning values to properties

    Do you have Option Strict turned On?

    It might have saved you here, and I would definitely recommend always having it On, because it causes you to get an error at compile time if you use the wrong...
  9. Replies
    9
    Views
    207

    Re: Multiple screen resolutions

    Correct.

    Only if you want the TLP to keep the same gap to the top and left edges of the form... which means it wont move/resize at all, and I'm assuming you don't want that.

    What anchor/dock...
  10. Replies
    9
    Views
    207

    Re: Multiple screen resolutions

    It is hard to give specific/accurate advice without seeing what it looks like, but the general explanation makes it sound like a TableLayoutPanel for those buttons would be correct. You just need to...
  11. Replies
    9
    Views
    207

    Re: Multiple screen resolutions

    Welcome to VBForums :wave:

    The following thread is a good guide:
    http://www.vbforums.com/showthread.php?630636-Anchor-amp-Dock-For-Automatic-Resizing

    It is rather brief because once you get...
  12. Replies
    29
    Views
    480

    Re: The problem with Dating

    VB isn't lacking sanity, it is just dealing with the real world in a way that isn't intuitive to you.

    The only data type that has a format is a String.

    Other data types (numbers, dates, etc)...
  13. VS 2008 Re: VB 8 I can't figure out string arrays - inexperienced at those

    Welcome to VBForums :wave:

    Remove the last part of that line (the = ControlChars.NullChar ), because you cannot assign a single value to an entire array like that.

    If you want an array with a...
  14. Replies
    29
    Views
    480

    Re: The problem with Dating

    USA was included in the example you got that from, UK isn't much different (en-GB).


    That is odd, I just tested in Fiddle it worked, but there may be a difference between that environment and...
  15. Replies
    29
    Views
    480

    Re: The problem with Dating

    These two lines:

    Dim testDate As String = "01/10/2019"
    Dim expenddt As Date = Date.ParseExact(testDate, "dd/MM/yyyy", System.Globalization.DateTimeFormatInfo.InvariantInfo)
    ...would be better...
  16. Replies
    29
    Views
    480

    Re: The problem with Dating

    The .ToString() part was correct, but the CDate() part wasn't... unfortunately creating a date value isn't as simple as it could be.

    If the initial value is a String then using Date.ParseExact as...
  17. Replies
    29
    Views
    480

    Re: The problem with Dating

    The safe simple and flexible way to create a date value is as ChrisE showed... you can always be sure it will create the value without misinterpreting months etc, and you can use variables for the...
  18. Replies
    4
    Views
    175

    VS 2017 Re: Access backend trouble in VS

    This isn't a standard issue caused by copying a database with the same structure. Either the structure is different somehow, or you got unlucky and found an already existing issue (possibly due to...
  19. VS 2019 Re: [RESOLVED] Controls within a TableLayoutPanel Control

    The options wouldn't be purely design-time, because they need to have an impact on how the control operates (such as changing the way the TLP stores child controls, and possibly associated loops to...
  20. VS 2019 Re: [RESOLVED] Controls within a TableLayoutPanel Control

    While adding one extra feature might only have a tiny impact on performance (at the very least, an extra If statement would run when 'an event' occurs), there would be many more features of a similar...
  21. VS 2019 Re: [RESOLVED] Automatic resizing of two (or more) Charts on a form

    That alternative is the kind of thing I would do, as I feel it is much clearer... clarity is a matter of opinion tho (and so is the comparative importance of brevity), so not everyone would do the...
  22. Replies
    8
    Views
    264

    Re: Disposable fields.

    Each time you create something disposable, you should dispose it when you are finished with it.

    If you are creating them regularly, you should dispose them just as regularly.

    If you are only...
  23. Replies
    19
    Views
    348

    Re: i need help in coding in vb

    Thread moved from the 'VB.Net' forum to the 'Office Development/VBA' forum.
  24. Replies
    5
    Views
    118

    Re: Ternary operation.

    Welcome to VBForums :wave:

    I don't have something suitable to test with at the moment, but I would try using a temporary variable for it, eg:

    IProtocol protocol = repeater ? new HSTRP() : new...
  25. VS 2019 Re: [RESOLVED] Automatic resizing of two (or more) Charts on a form

    Agreed, I can officially confirm that Sunday evening was playing tricks on my mind :blush:

    While it is standard convention to only use | for bitwise operations, it isn't a specifically bitwise...
  26. VS 2019 Re: [RESOLVED] Automatic resizing of two (or more) Charts on a form

    It is awkward syntax, and VB is annoying in that respect... C based languages use a different Or for it (boolean is || , and bitwise is | ), and a different And to read it ( && vs & ).

    Normally...
  27. VS 2019 Re: [RESOLVED] Automatic resizing of two (or more) Charts on a form

    That code is arguably valid (because you are setting the entire value), but not "correct" from a purists point of view.

    There are many enum's where the values are designed to be used together, and...
  28. VS 2019 Re: [RESOLVED] Automatic resizing of two (or more) Charts on a form

    This is one of those questions where it can take ages to work it out yourself, so a couple of sentences to point to you in the right direction is the way to go :)

    It certainly isn't like some of...
  29. VS 2019 Re: Automatic resizing of two (or more) Charts on a form

    You can use one of the LayoutPanel controls (such as a TableLayoutPanel) to get the kind of thing you want.

    In this case you probably want a TableLayoutPanel with two rows (or columns), with one...
  30. VS 2019 Re: Using variable within WITH statement

    When you hover the mouse over the word Chart1 (or Chart2) you should see a tooltip about it, and that should specify what the data type is.

    Presumably Chart1 and Chart2 have the same data type, in...
  31. Replies
    43
    Views
    878

    VS 2019 Re: Updating a database

    The confusion is because I mis-read the part I quoted (I saw the Never Copy part, but somehow overlooked the Copy if Newer bit later in the sentence). :blush:

    For Never Copy you would need to do...
  32. Replies
    43
    Views
    878

    VS 2019 Re: Updating a database

    Using the Solution Explorer window you can copy/paste files (so create the master copy in the project folder, then copy it across).

    I'm not sure, but I don't think so... I think you'd need to...
  33. Replies
    43
    Views
    878

    VS 2019 Re: Updating a database

    They are both output folders.

    As far as I recall, the Debug and Release sub-folders only get created when you first build each of them (there isn't really any point creating them before that). ...
  34. Replies
    43
    Views
    878

    VS 2019 Re: Updating a database

    Design-time is before anything is running (eg: when you are writing the code, or designing the database structure, or placing controls on a window, etc).

    Debug and Release are two different kinds...
  35. Replies
    43
    Views
    878

    VS 2019 Re: Updating a database

    It is fairly standard to have a "test" data file to run development builds against, which differs from the "live" environment that the users will work with. This situation is designed to make that...
  36. Re: VB.NET 2010 QUESTION: Control calls incorrectly named event

    Assuming that at the end of the sub declaration is a Handles clause (with the proper name of the control), you can simply rename the sub to whatever you like (so simply removing the _2 etc should be...
  37. Re: Plz help vb scrub complete school project (RESOLVED)

    In VB6 CStr is almost always the correct option, but in .Net it is debatable whether CStr is best because you also have .ToString() available.

    As ToString allows you to specify a format to use...
  38. Re: VBA to move ppt object to a specific location

    Welcome to VBForums :wave:

    Thread moved from the 'VB.Net' forum to the 'Office Development/VBA' forum.
  39. VS 2019 Re: How to Filter binding source in multiple Criteria (AND,OR)

    It isn't wise to just tell us you are having an error, you should also tell us what the error message is (because that tells us what the problem is).

    In this case I can see you are using the wrong...
  40. Replies
    2
    Views
    257

    Re: WAN deployment

    The back end being a file-based database (which Access based databases are) will make it slower because the entire database needs to be transmitted over the network, your most likely speed boost is...
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Featured


Click Here to Expand Forum to Full Width