It appears you have not yet registered with DEVPPL. To register please click here... (it's fast, easy and free!)

Forum

Log In Sponsors
Board index Programming Visual Basic Forum

New to Visual Basic Help please

Moderator: dafunkymunky

New to Visual Basic Help please

Postby millwalll on Wed Sep 19, 2007 10:12 pm

Hi all I am Student Doing Degree in Information Technology and We started Visual Basic and I got some Question.


1 Is there a way to Draw in viual Basic? Say I wanted to make a simply program that mocks a Traffic light. How would I draw the Circle for the lights?

2 I dont know if this bit too complicated for beginnger, but if I wanted to have a text box that tock input then displayed the input. How would I do this? would it be case of text box and a label and telling the text to display in the label box?

There the only two question at the moment but sure I will have more many thanks...
millwalll
 
Posts: 0
Joined: Wed Sep 19, 2007 9:25 pm
Location: Kent UK

Postby zul111467 on Sat Jan 19, 2008 9:32 pm

Hi! Let see whether I could help you.

1.) To draw a circle in a form. Try the following code.

frm_Main.Picture1.Circle (PicStartX + 70, PicEndY - 52), 12, vbBlack.

2.) Yes! you can have the textbox do like a label. Just simple set the Locked property of the Textbox to True. However, you still can see the cursor blink inside the Textbox when it is get its focus. But you can not edit the content inside the TextBox.

Please try!
:)
zul111467
 
Posts: 6
Joined: Sat Jan 19, 2008 3:54 pm
Location: Malaysia


Who is online

Users browsing this forum: No registered users and 3 guests