User Profile

Collapse

Profile Sidebar

Collapse
Xennex
Xennex
Last Activity: Mar 11 '09, 01:29 AM
Joined: Jan 21 '09
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Xennex
    replied to Copying a Form
    So you just need to have the child form available to use but not visible? If so you could simply hide the child form using its "Hide" method. All parts of the child form are still accessible until you unload the child form.
    See more | Go to post

    Leave a comment:


  • Hmm.. Seems that the checked listbox is locked from editing once 3 items have been checked.. I guess if you use that code you may need something like a "clear selections" button to unlock it should changes need to be made in the selection. (^_^)
    See more | Go to post

    Leave a comment:


  • Xennex
    replied to Copying a Form
    When I first used VB.NET the only way you could get a form was to define it first. For example if I had designed a form with the name "frmMenu" I would have had to create an instance of it first by DIMming it first. "dim myForm as New frmMenu" Then I would have to use myForm in all my further code. Now it seems you can use the classes like you could back in VB6 by just referencing them and letting the compiler create a new object...
    See more | Go to post

    Leave a comment:


  • Xennex
    replied to Removing commas from Numbers
    You could try using the parse method of the "single" or "double" type..

    double.Parse("1 ,000,000")

    would give you

    1000000.0

    append the "ToString" method and you would get

    "1000000"
    See more | Go to post

    Leave a comment:


  • Seems like you were able to solve your problem well.. I tend to favor using the "With" statement when I have long object strings since each '.' is basically telling an object traversal.. I would just change the following like so:

    Code:
    With dataset.tables("table name here").Rows(cbox1.selectedindex)
       txtbox1.text = .Item("Column name here")
       txtbox2.text = .Item("Column name here")
    ...
    See more | Go to post
    Last edited by Xennex; Jan 21 '09, 08:34 AM. Reason: code was incorrect

    Leave a comment:


  • Xennex
    replied to vb .net - Rich TextBox
    One solution

    You could try using the PreviewKeyDown event of the RTB and check for vbCRLF (vbNewLine is an equivalent).

    Code:
        Private Sub RichTextBox1_PreviewKeyDown(ByVal sender As Object, ByVal e As System.Windows.Forms.PreviewKeyDownEventArgs) Handles RichTextBox1.PreviewKeyDown
            If e.KeyValue = vbNewLine Then
                ...
            End If
        End Sub
    See more | Go to post

    Leave a comment:


  • What has DataSysDescription been replaced with?

    I've searched high and low and found no article on the web in English or Japanese to explain what I could use to display some help for a function (or subroutine) in the popup that appears when entering said function in the VS2005 IDE when using VB.NET. I discovered later that you could use the XML code documentation to write the description.

    Just type 3 single quotes (''') on a new line directly above the function you want to document...
    See more | Go to post
No activity results to display
Show More
Working...