|
-
May 7th, 2004, 09:51 AM
#1
Thread Starter
Member
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.
-
May 7th, 2004, 09:56 AM
#2
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.
-
May 9th, 2004, 09:32 AM
#3
Member
3.
VB Code:
Dim sr As StreamReader
Dim s As String
sr = File.OpenText(System.Windows.Forms.Application.StartupPath & "\append-e.log")
s = sr.ReadToEnd
sr.Close()
TextBox1.Text = s
-
May 9th, 2004, 09:36 AM
#4
Member
Forgot to mention that you need to import the IO class before the form1 class.
imports system.io
-
May 9th, 2004, 12:45 PM
#5
Sleep mode
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:
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|