Results 1 to 5 of 5

Thread: Three simples questions

  1. #1

    Thread Starter
    Member leazfe's Avatar
    Join Date
    Mar 2004
    Location
    Spain
    Posts
    43

    Three simples questions

    I am not really good with the GUI.

    1. I have done something with my controls,becouse for all the new label and Textbox i add to a form, i am not able to change its height only the width.Hoewer, i can do it with my all controls in the same form. Does anyone know Why?

    2. How can a change the color of a labels border.?

    Sorry, another question:

    3. How can i open a txt file from a VB app. ?

    Thanks,
    Álvaro
    Last edited by leazfe; May 7th, 2004 at 10:12 AM.

  2. #2
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: Two simples questions

    1. Set the Textbox's multiline property to true.

    2. I don't think that's possible, but hey, I'm new too.

  3. #3
    Member
    Join Date
    Aug 2003
    Posts
    51
    3.
    VB Code:
    1. Dim sr As StreamReader
    2.         Dim s As String
    3.  
    4.         sr = File.OpenText(System.Windows.Forms.Application.StartupPath & "\append-e.log")
    5.         s = sr.ReadToEnd
    6.         sr.Close()
    7.         TextBox1.Text = s

  4. #4
    Member
    Join Date
    Aug 2003
    Posts
    51
    Forgot to mention that you need to import the IO class before the form1 class.

    imports system.io

  5. #5
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    Originally posted by leazfe

    2. How can a change the color of a labels border.?

    I'm not at my Dev computer right now but I remember the function that does this :

    VB Code:
    1. ControlPaint.DrawBorder(.........)

    You might create your own control or override the OnPaint event of the form.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width