Vb.net application to capitalize input text

Discussion in 'Programming' started by largn81, Mar 27, 2008.

  1. #1
    Hi,
    i'm trying to create an application in vb.net
    it's pretty straightforward the interface has one textbox and one button.
    the application is supposed to change the text entered in the input textbox to capital letters only after the button is clicked. the output text should be in a window where it can be copied in order to paste it somewhere else.
    i need some assistance please post here the source code for this application to run correctly. :( thanks a lot.:)
    F.L.
     
    largn81, Mar 27, 2008 IP
  2. mythbuster08

    mythbuster08 Peon

    Messages:
    180
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Application??? Or homework assignment?

    Textbox.Text is string. String has ".ToUpper". Button has a "Click" event. Rather than outputting to a new Windows Form I'd rather directly copy the up'ed text to the clipboard with the SetDataObject method.
     
    mythbuster08, Mar 27, 2008 IP
  3. Aphex

    Aphex Guest

    Messages:
    20
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    I'm not too sure about .NET, though, you could try:
    
    Private Sub Command1_Click()
    Dim strMsg As String
    strMsg = Text1.Text
    
    Text1.Text = UCase(strMsg)
    End Sub
    
    Code (markup):
    Note that this is Visual Basic 6. Though, this may help.
     
    Aphex, Mar 28, 2008 IP
  4. it career

    it career Notable Member

    Messages:
    3,562
    Likes Received:
    155
    Best Answers:
    0
    Trophy Points:
    270
    #4
    Good question. To OP post whatever code you have got, we will be in a better position to help you.
     
    it career, Mar 28, 2008 IP