User Profile

Collapse

Profile Sidebar

Collapse
insomnia
insomnia
Last Activity: Oct 12 '08, 09:11 PM
Joined: Mar 24 '08
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Capturing a pop up window and forcing it in to the main browser

    Hi there, im having problems replicating a web browser function that i created in visual basic 6. i am now using vb.NET and want to capture an internet explorer pop up within my application instead of it opening outside the app with IE.

    in vb 6 this was the simple code i used :

    Code:
    Public Sub WebBrowser1_NewWindow2(ppDisp As Object, Cancel As Boolean)
       Set ppDisp = WebBrowser1.object
       WebBrowser1.Navigate
    ...
    See more | Go to post

  • insomnia
    replied to Simple Text box validation
    in .NET
    Thanks all sorted :-)

    I used a combination of :

    Code:
    If Not IsNumeric(Textbox.Text) Or Textbox.Text = ""
    And :

    Code:
    Textbox.Text = Format(Convert.ToInt32(Textbox.Text), "0000")

    in the end to achieve my goal.

    cheers again
    See more | Go to post

    Leave a comment:


  • insomnia
    replied to Simple Text box validation
    in .NET
    Sorry balabaster, it is on a vb.net form, i simply need to validate the data a user enters in to one of the fields on a form.

    the format must be numerical and 4 digits long.

    ----------

    and how could i disable a "space" being used

    eg. if the user types "two apples" rather than "twoapples"

    ---------

    cheers...
    See more | Go to post

    Leave a comment:


  • insomnia
    started a topic Simple Text box validation
    in .NET

    Simple Text box validation

    Hi there a quick simple question, i need to be able to validate a textbox

    The user must enter a number within the range 0001 to 9999 only.

    And in the 4 number format XXXX , e.g. if they enter the number 11 i need it to be formated 0011.

    thanks
    See more | Go to post

  • insomnia
    replied to simple 1d Array
    in .NET
    ok thanks alot, i will have a look around...
    See more | Go to post

    Leave a comment:


  • insomnia
    replied to simple 1d Array
    in .NET
    Could you not just do this:
    [code=vbnet]
    Dim list As New ArrayList()

    list.Add(TextBo x1.Text)
    list.Add(TextBo x2.Text)
    [/code]

    What textbox are you wanting to show these values in?[/QUOTE]


    Yes i have now changed it :) much simpler I now want to display the whole array list in TextBox3.text for example.

    How do i display the contents of "list" in...
    See more | Go to post

    Leave a comment:


  • insomnia
    started a topic simple 1d Array
    in .NET

    simple 1d Array

    How do i simply display the contents of my array in to a textbox on my GUI ??




    Code:
            Dim details As String() = {TextBox1.Text, TextBox2.Text}
    
            Dim list As New ArrayList()
            
    
            For Each detail As String In details
                list.Add(detail)
            Next detail
    cheers
    See more | Go to post

  • insomnia
    replied to Text file Handling
    in .NET
    Balablaster thanks for that.

    And how would you ammend an existing record in your data base ?

    The problem i am having with my data base at the moment is.

    I cant AMMEND an existing record within the text file.
    Ive just started looking at arrays as suggested before, but i am quite a novice.


    Code:
    
    
            reader = File.OpenText("C:\sample.txt")
    ...
    See more | Go to post

    Leave a comment:


  • insomnia
    replied to Text file Handling
    in .NET
    ok thanks ill give it a go
    See more | Go to post

    Leave a comment:


  • insomnia
    replied to Text file Handling
    in .NET
    This was the idea i had in mind, grabbing the lines from the text file and putting them in to an array.

    So do you recommend reading the entire text file and turning it in to an arraylist?



    Thanks Balablaster but yes it is a simple read/write/ammend task.
    im trying to make a very simple mini database to store records using a text file



    This is what i was trying to do...
    See more | Go to post

    Leave a comment:


  • insomnia
    started a topic Text file Handling
    in .NET

    Text file Handling

    Hi there, need to be able to create a text file that stores information like so :
    this i have managed with a stream writer/append

    1
    aaaa
    bbbbb
    ccccccc
    dddddddd
    ------------------
    2
    aaaa
    bbbbb
    cccccc
    dddddddd

    My problem is now i have to "Edit" an individual line within the text file.
    e.g. The user enters number "2"...
    See more | Go to post
No activity results to display
Show More
Working...