Search Results - VBForums

Search:

Type: Posts; User: .paul.

Page 1 of 13 1 2 3 4

Search: Search took 0.23 seconds.

  1. Replies
    15
    Views
    215

    Re: Create forumla from a series of numbers?

    Instead of:



    Dim operatorCombinations1 As List(Of String()) = listCombinations(3, New String() {"+", "-", "*"})
    Dim operatorCombinations2 As List(Of String()) = listCombinations(3, New...
  2. Replies
    15
    Views
    215

    Re: Create forumla from a series of numbers?

    Private Function parseEquation(eq As String, pattern As String) As List(Of Match)
    Dim startAt As Integer = 0
    Dim matches As New List(Of Match)
    Do
    Dim m As Match = New...
  3. Replies
    15
    Views
    215

    Re: Create forumla from a series of numbers?

    I might have misunderstood your instructions there. In any four number equation, there are always three operators. The operators are used once per operator in any equation. Is that what you meant? Or...
  4. Replies
    15
    Views
    215

    Re: Create forumla from a series of numbers?

    try entering something such as 1,2,4,5 with a target of -5
  5. Replies
    15
    Views
    215

    Re: Create forumla from a series of numbers?

    Try this. I've done some simple tests but not extensively:

    123173
  6. Replies
    15
    Views
    215

    Re: Create forumla from a series of numbers?

    As Shaggy said, brute force appears to be what you're looking for, and that is feasible using just 4 operators and brackets.

    You said 5 numbers and a target number, but your examples are 4 numbers...
  7. Replies
    15
    Views
    215

    Re: Create forumla from a series of numbers?

    Where does 800 come into it?
  8. Replies
    15
    Views
    215

    Re: Create forumla from a series of numbers?

    Can you give an example of your numbers?
  9. VS 2010 Re: DataGridView bound to a Datatable question...

    here's an example:

    http://www.vbforums.com/showthread.php?667661-dtpColumn
  10. Replies
    5
    Views
    137

    Re: append text to each item in list(of T)

    ok.try this.

    this is the custom class:



    Public Class customClass
    Public a As String
    Public b As Integer
  11. VS 2010 Re: StartInfo.Verb = “PrintTo” on vb.net 2010 not working for jpg file but work on pd

    you probably need to associate *.jpg file types with an application, for example Paint:

    http://stackoverflow.com/questions/17186871/creating-a-file-association-with-vb-net
  12. Replies
    5
    Views
    137

    Re: append text to each item in list(of T)

    will each item have "New Jersey - " prepended to it, or will that change for each entry?
  13. Replies
    4
    Views
    147

    VS 2010 Re: convert string to vb.net code

    Shaggy is right. Find an easier more appropriate way...



    Dim p1 As String = "n1"
    Dim p2 As String = "n2"
    Dim node As String = "n3"
    tree_category.Nodes.Add(p1, p1) 'p1 used twice. key and...
  14. Replies
    4
    Views
    138

    Re: New to Programming need help uinder

    here's an explanation:



    Public Class Form1

    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

    'this holds 12 values
    ...
  15. VS 2013 Re: Tic-Tac-Toe: What data structure would you use?

    Here it is rewritten in VB and C#

    https://code.msdn.microsoft.com/windowsdesktop/tictactoe-776a8cc6
  16. VS 2013 Re: Tic-Tac-Toe: What data structure would you use?

    I've actually written a 'play against your PC' program with a game class, a grid class, and a cell class.
    It's OOP Programming, and very tough to beat, but it's written in Java, and i haven't got...
  17. Replies
    2
    Views
    114

    VS 2012 Re: Adding items to second column

    Try this:


    Dim item as ListViewItem = lv1.Items.Add(.Item(0))
    item.SubItems.Add(.Item(1))
  18. VS 2013 Re: Tic-Tac-Toe: What data structure would you use?

    here's a clue:



    Public Class Form1

    ''' <summary>
    ''' 2d array representing cells in tictactoe grid
    ''' </summary>
    ''' <remarks>each element should contain X or 0 or...
  19. Replies
    1
    Views
    117

    VS 2010 Re: XML Serialization???

    The xsi and ns* parts are namespaces
    I'm not sure what has been used to create that xml
  20. Replies
    4
    Views
    189

    Re: OleDbCommand error

    Dim da As New OleDbDataAdapter("Select * from TblMoa Where TreeID=@TripID", cn)
  21. Re: [RESOLVED] Help With reversing a word! Without STRREVERSE

    Assuming the name is in textbox1 and the listbox is listbox1:


    ListBox1.Items.Clear

    For x as integer = TextBox1.Text.Length - 1 to 0 Step -1
    ListBox1.Items.Add(TextBox1.Text(x).ToString)...
  22. Replies
    9
    Views
    262

    VS 2010 Re: [RESOLVED] Create a new folder

    Dim strChkOldT As String = Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments) & "\Old Transmittals"
    If IO.Directory.Exists(strChkOldT) Then
    ...

    If...
  23. Replies
    9
    Views
    262

    VS 2010 Re: [RESOLVED] Create a new folder

    There's a difference between:

    Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments)

    and:

    Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments) & "\Old Transmittals"
  24. Replies
    9
    Views
    262

    VS 2010 Re: [RESOLVED] Create a new folder

    here's a visualization of what the Environment.SpecialFolder enum looks like:



    Public Enum SpecialFolder
    Desktop = 0
    Programs = 2
    Personal = 5
    MyDocuments = 5
    Favorites...
  25. Replies
    9
    Views
    262

    VS 2010 Re: Create a new folder

    Try:

    IO.Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments), "Old Transmittals\")
  26. Replies
    5
    Views
    171

    VS 2010 Re: Reset label/textbox to design time value

    The default value relates to the Property Datatype, which as a Label.Text is Type String, is ""
  27. Re: [RESOLVED] How do I scale-up a Form to fill an A4 sheet ?

    You'll find it easier if you do your calculations in Pixels
  28. Re: How do I scale-up a Form to fill an A4 sheet ?

    As they told you on MSDN, we need more information.
    Specifically, the method you are using, any code you've tried, and a screenshot and description of your form.
    You know as well as any of the...
  29. VS 2010 Re: How to make an elliptical bitmap?

    You can use Color.Transparent for pixels outside of the ellipse
  30. VS 2010 Re: How to make an elliptical bitmap?

    You mean copy to the clipboard?
    I'm not sure how you would do that...
  31. Replies
    10
    Views
    296

    Re: Desktop application program

    You'd need to use the System.Management class
  32. Thread: nothing

    by .paul.
    Replies
    5
    Views
    199

    Re: nothing

    No...
    I think 'nothing' is an expression of heartfelt gratitude to those who helped in the other thread:D
  33. Replies
    1
    Views
    129

    Re: datagridview copy and paste

    it's something you'd have to write code for.
    try this:



    Public Class Form1

    Private cms As New ContextMenuStrip

    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As...
  34. Re: Moving multiple items up or down in listbox

    try this:



    Public Class Form1

    Private Sub ListBox1_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ListBox1.SelectedIndexChanged
    ...
  35. Replies
    3
    Views
    142

    Re: Adding values from Listboxes

    You just want to add the currently selected value in listbox1 to the currently selected value in listbox2?



    Dim value1, value2 as Decimal
    If Decimal.TryParse(ListBox1.Text, value1) AndAlso...
  36. VS 2012 Re: reading an textfile to an array, and then sorting.

    lines = lines.Reverse()
  37. VS 2010 Re: [B] How to make a random string array in vb.net [/B]

    here's my example. it uses arrays, 2 labels (Label1, Label2), and 4 radiobuttons (RadioButton1, RadioButton2, RadioButton3, RadioButton4):



    Public Class Form1

    Private strStatesArray() As...
  38. Replies
    3
    Views
    195

    VS 2010 Re: [RESOLVED] Drawing Multiple Strings?

    one other tip...
    no need for CInt(). R.Next returns an integer
  39. Replies
    3
    Views
    195

    VS 2010 Re: Drawing Multiple Strings?

    try this modification:



    Private Sub NewText()
    'also for maximum randomizing move the Random declaration to form scope
    Dim R As New Random
    Dim Alphabet As String =...
  40. Replies
    0
    Views
    165

    VS 2013 (VB and C#) Console BlackJack

    Full description and download here:

    https://code.msdn.microsoft.com/Console-BlackJack-d796836f
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.