User Profile

Collapse

Profile Sidebar

Collapse
OliveOyl3471
OliveOyl3471
Last Activity: Mar 6 '08, 03:51 PM
Joined: Jul 12 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • OliveOyl3471
    replied to Bound ListBox Values
    This works, although I am sure it is not the only way to do this.

    Code:
            public class names
            {
                private string realName;
                public string nickName;
    
                public names(string strnickName, string strrealName)
                {
    
                    this.realName = strrealName;
                    this.nickName = strnickName;
    ...
    See more | Go to post

    Leave a comment:


  • OliveOyl3471
    replied to Bound ListBox Values
    Thanks for the advice. I think you are right.

    I've just started using C#. The class is supposed to be advanced C++ but the instructor prefers C#, so that is what we're using. I've taken classes in VB, C++, HTML, and have done a little bit of QBasic, a little SQL, and a little JavaScript and DHTML. All these languages do get kind of mixed up when you try to learn them all.

    I think C# is kind of a combination of VB and...
    See more | Go to post

    Leave a comment:


  • OliveOyl3471
    replied to Bound ListBox Values
    Yes...that is what I want to do! Finally...someo ne gets it right. :D

    I tried your suggestion, and changed the name of the listbox to listBox1. The program runs, but gives me an error at

    DataRowView dr = (DataRowView)li stBox1.Items[0];
    It says "when casting from a number, the value must be a number less than infinity"...wha t does that mean?

    I added a try/catch block here and...
    See more | Go to post

    Leave a comment:


  • OliveOyl3471
    replied to Bound ListBox Values
    Hi.
    I need to know the same thing, except in C# not VB. How do you set the value, not the item itself, and not the index, of an item in a listbox? I think I know how to display the value once it is set. I just don't know how to make an item equal to a numerical value other than an index.

    Thanks:)

    Here is my code so far//with some failed attempts and notes to myself included:

    Code:
    private
    ...
    See more | Go to post

    Leave a comment:


  • I managed to discover the answer to this question on my own. In case anyone who reads this needs to know the answer, here it is:

    I was not displaying the label correctly, for one thing.

    Here is the code that will populate my 2d array from text file:

    Code:
            'populate array from file
    
            Dim strVen As String, intIndex, intCount As Integer
            For intCount =
    ...
    See more | Go to post

    Leave a comment:


  • I have asked at three different forums (plus this one) and so far I haven't seen any response.

    This is driving me nuts! I know it can be done, because my instructor knows what she's talking about, and she said to do it.

    Here are a few of the many things I've been trying. The apostrophes mean that I have been experimenting with these things…erase the apostrophe and test it, add an apostrophe and test it, in different...
    See more | Go to post

    Leave a comment:


  • OliveOyl3471
    replied to vb.net - finding a substring in a string
    in .NET
    Here's one way that will work
    Code:
            Dim sBIG As String = "A final Goodbye from Greats"
            Dim intIndex As Integer
    
            intIndex = sBIG.IndexOf("from", 0)
    
            If intIndex <> -1 Then
                lblDisplay.Text = "Your word is contained in this string"
    
            End If
    this code will search for whatever...
    See more | Go to post
    Last edited by OliveOyl3471; Jul 12 '07, 05:01 AM. Reason: to add a p.s.

    Leave a comment:


  • VB.NET populate 2 dimensional array from a text file?

    In Visual Basic.NET 2003, how do you populate a two dimensional array from a text file? I know how to check file existence, open the file for read, etc. I just can't get it to read more than one record from the file into the array.

    I have declared a 2 dimensional, 12 row, 2 column array named strVenues(11,1)
    in the public section of the form.

    The instructor is gone for the week, so I can't ask her any more questions...
    See more | Go to post
    Last edited by OliveOyl3471; Jul 12 '07, 12:26 AM. Reason: Didn't include [Code] and [/Code] in original post
No activity results to display
Show More
Working...