Search Results - VBForums

Search:

Type: Posts; User: .paul.

Page 1 of 13 1 2 3 4

Search: Search took 0.28 seconds.

  1. Replies
    11
    Views
    209

    VS 2012 Re: Sons science project

    I'd personally use my idea with a form level random object generating the number of loop iterations, a form level integer: showTime holding environment.tickcount when the button was shown, then...
  2. Replies
    11
    Views
    209

    VS 2012 Re: Sons science project

    @wild_bill... that's an alternative. the 2nd parameter in .invoke is a paramarray parameter. no need to create an array.
  3. Replies
    11
    Views
    209

    VS 2012 Re: Sons science project

    Where you put your code within the class doesn't make any difference in vb.net except declaring variables before using them
  4. Replies
    11
    Views
    209

    VS 2012 Re: Sons science project

    when posting code, use
    'your code here tags and it'll format your code like this:


    'your code here

    try this. it's not simple, but it works efficiently:


    Public Class Form1
  5. Replies
    11
    Views
    209

    VS 2012 Re: Sons science project

    this will do what you want.
    notice how I set the picturebox' visibility outside of the loop? you don't want to do that 10,000 times.
    the doevents line tells vb to process it's windows messages....
  6. Re: vb.net 2008 DataGridView add new row problem

    don't explicitly add a newrow.
    let the dgv add a newrow itself
  7. Replies
    2
    Views
    110

    Re: How to make a menu like this?

    looks like a listview in a tabcontrol's tabpage
  8. Re: Abstrac Class (MustInherit and MusOverride)

    here's an example:

    http://social.technet.microsoft.com/wiki/contents/articles/20753.visual-basic-shapes-areas-volumes.aspx
  9. Re: vb.net 2008 DataGridView add new row problem

    the DataGridView provides a new row at the bottom row. if you start using that row, it automatically adds a new 'newrow'
    use the provided newrow like this:

    dim r as integer = DGV1.NewRowIndex...
  10. Re: vb.net 2008 DataGridView add new row problem

    when posting code, use
    'your code here tags and your code will be formatted like this:


    'your code here

    try this:


    Public Class Form1
  11. Replies
    9
    Views
    204

    Re: Trying to re-use code, need direction

    to explain: there are 9 collision detection lines that identify the rock that has been hit' position in the rocks array. with 2 rocks, that's either indices 0 and 1
    no collision = -1
  12. Replies
    9
    Views
    204

    Re: Trying to re-use code, need direction

    instead of 1 big if, elseif, else block, separate it into 10 if blocks that run 1 after another, which will catch 2 rocks being hit.
    the only problem I can see is in your other timer, where you may...
  13. Re: [RESOLVED] [VB 2010] How to get Internet ExplorerTitle When Visiting a Webpage?

    just change this:



    Dim filename As String = System.IO.Path.GetFileNameWithoutExtension(ie.FullName).ToLower()
    If filename = "iexplore" Then
    MsgBox(ie.LocationName)
    End If

    to this:
  14. Replies
    9
    Views
    204

    Re: Trying to re-use code, need direction

    try this:


    Private Sub Collision_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Collision.Tick
    Dim rocks() As PictureBox = {Rock1, Rock2}
    Dim i1 As Integer =...
  15. Re: [RESOLVED] [VB 2010] How to get Internet ExplorerTitle When Visiting a Webpage?

    I think I accidentally left that in the example code. I adapted it from another snippet that was originally written for a different purpose, which I've modified for other uses over time. So I don't...
  16. Re: [VB 2010] How to get Internet ExplorerTitle When Visiting a Webpage?

    My method can be modified to work with all browsers too.
  17. Replies
    10
    Views
    161

    VS 2010 Re: Can't leave MaskedTextBox empty

    we'll need to see your code
  18. VS 2013 Re: Display the Dell pc service tag in a message box( it will display but more then w

    use [string].substring(startIndex, length)
  19. Re: Hi, I need some help or a tutorial on how to read and update a sql file?

    here it is in vb.net:



    Imports System.Data.SqlClient

    Public Class Form1

    'form level variables
    Dim conn As SqlConnection
  20. Re: Hi, I need some help or a tutorial on how to read and update a sql file?

    here's an example in c#
    i'll convert it to vb.net for you:

    http://code.msdn.microsoft.com/SQL-DB-example-in-c-c693ed0c
  21. Re: [VB 2010] How to get Internet ExplorerTitle When Visiting a Webpage?

    ok here's an example...
    you need a reference to Microsoft.mshtml (.NET) and a reference to Microsoft Internet Controls (COM):



    Imports mshtml
    Imports SHDocVw

    Public Class Form1
  22. Re: VB2010 - Sorting in list view on a date field

    here's a custom sorter. it works, as long as you pass in the columnIndex (of the subitem) to sort + the SortOrder.
    the subitem text must be in the correct format ("dd/MM/yyyy")

    the example app...
  23. Re: VB2010 - Sorting in list view on a date field

    listviews sort using string comparisons.
    it is possible to write a custom listviewsorter that will sort by date, but as you're getting the contents from a database, it would be easier to use an...
  24. Re: Need The Steps To Start Implemntaion The Program

    http://code.msdn.microsoft.com/site/search?f%5B0%5D.Type=User&f%5B0%5D.Value=.paul.%20_
  25. Re: Need The Steps To Start Implemntaion The Program

    I agree with jmcilhinney, with the only difference being that you should read my database articles:D
  26. Replies
    18
    Views
    273

    VS 2010 Re: Simple Image Gallery in VB 2010

    no problem. glad I could help...
  27. Replies
    18
    Views
    273

    VS 2010 Re: Simple Image Gallery in VB 2010

    I haven't tried it, but by the look of the code, it should display all of the images in the folder you select.
  28. Replies
    18
    Views
    273

    VS 2010 Re: Simple Image Gallery in VB 2010

    comment that line out + start, then stop your project. remove the comment, goto form view, then at the top of your toolbox, you'll find the AuthorCodeImageGalleryVB control. add one to your form +...
  29. Replies
    18
    Views
    273

    VS 2010 Re: Simple Image Gallery in VB 2010

    AuthorCodeImageGalleryVB1 is the name of an instance of AuthorCodeImageGalleryVB (a Type) on your form
  30. Replies
    18
    Views
    273

    VS 2010 Re: Simple Image Gallery in VB 2010

    it's html markup for >
  31. Replies
    18
    Views
    273

    VS 2010 Re: Simple Image Gallery in VB 2010

    1/ AuthorCodeImageGalleryVB1 is the name of the usercontrol instance on the form
    2/ change this:


    If XLocation + PicWidth >= CtrlWidth Then

    to this:


    If XLocation + PicWidth >= CtrlWidth...
  32. Replies
    18
    Views
    273

    VS 2010 Re: Simple Image Gallery in VB 2010

    When posting code use
    'your code here tags, + it'll format like this:


    'your code here
  33. Replies
    18
    Views
    273

    VS 2010 Re: Simple Image Gallery in VB 2010

    Post your code + details of errors + which line the error refers to
  34. VS 2010 Re: Question about Access database Connected with VB

    works ok for me too
  35. Replies
    6
    Views
    126

    Re: Gradebook Creation

    ok. assuming your csv is formatted like this (no space between the 2 fields + no empty lines):



    try this:



    Public Class Form1
  36. Replies
    9
    Views
    143

    VS 2010 Re: Calculate SUM error

    the problem is that you're using Integer variables, + Decimal values.
    use Decimal variables
  37. Replies
    6
    Views
    126

    Re: Gradebook Creation

    what are the columns in the csv representative of?

    for example:

    Name, id, Score

    ???
  38. VS 2013 Re: String Manipulation (Left, Right) alternatives.

    regex isn't too complicated for a simple pattern like that, I just didn't think it was appropriate for this question.
    it's like going to a mechanic for a blown fuse and being told you need your car...
  39. VS 2013 Re: String Manipulation (Left, Right) alternatives.

    have you been on the fizzy drinks again???:confused:
  40. VS 2013 Re: String Manipulation (Left, Right) alternatives.

    here's an explanation with an example:

    http://msdn.microsoft.com/en-us/library/system.string.substring(v=vs.71).aspx
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Featured


Click Here to Expand Forum to Full Width

Survey posted by VBForums.