Forum     

Go Back   Digit Technology Discussion Forum > Portables, Peripherals and Electronics > QnA (read only)
Register FAQ Calendar Mark Forums Read

QnA (read only) Mods please help transfer the contents of this forum to proper sections. :)


 
 
LinkBack Thread Tools Search this Thread Display Modes
Old 04-07-2007, 07:11 PM   #1 (permalink)
Broken In
 
Join Date: Dec 2006
Posts: 142
Default help needed on visual basic!!!


how can i make same size of all the text boxes on the form!!!
prinz is offline  
Advertisements. Register and be a member of the community to get rid of them.
Advertisement

Old 04-07-2007, 07:52 PM   #2 (permalink)
Commander in Chief
 
QwertyManiac's Avatar
 
Join Date: Jul 2005
Posts: 6,658
Default Re: help needed on visual basic!!!

Doesn't the Text Box have a size attribute to it? Anyway, to get a fixed default, always double click on the text box icon on the tool bar while creating it, instead of single clicking and drawing one.

I don't know about VB 6 but in the higher versions (.NET) you can copy a text box and paste as many you like and their names will change normally like you make one by one.
__________________
Harsh J
www.harshj.com
QwertyManiac is offline  
Old 04-07-2007, 08:54 PM   #3 (permalink)
In The Zone
 
ayush_chh's Avatar
 
Join Date: Nov 2005
Location: Bangalore
Posts: 487
Default Re: help needed on visual basic!!!

yes u can draw one txtbox and then u can copy/paste them on the same or any other form.if u copy/paste on the same form then a msg will come like do u want to create array of txtbox ..just clk no...it is possible in VB6
__________________
eXPerience is what a MAN learn's fROM.....
ayush_chh is offline  
Old 04-07-2007, 09:03 PM   #4 (permalink)
Rubik's Uncle!!
 
Charan's Avatar
 
Join Date: Sep 2004
Location: ಬೆಂಗಳೂರು (Bengaluru)
Posts: 3,789
Default Re: help needed on visual basic!!!

If you want it through code then try this

add two text box to the form and in the form load event use the following code. I hope you understand the code.

Code:
Private Sub Form_Load()

Dim h As Integer
Dim w As Integer

h = 50
w = 1500

Text1.Height = h
Text2.Height = h

Text1.Width = w
Text2.Width = w

End Sub
__________________
i5 2400 | DH67BL | G.Skill Ripjaw 4 GB | FSP SAGA II 500W | CM 430 Black Elite | MSI R6850 Cyclone PE/OC | XBox 360 Controller | 21.5" Samsung Sync Master 2233 | 4 Mbps @75GB FUP :)
Battlefield 3 Multiplayer Discussion | Battlefield 3 Low Latency Servers List
Charan is offline  
Old 04-07-2007, 10:29 PM   #5 (permalink)
Broken In
 
Join Date: Dec 2006
Posts: 142
Default Re: help needed on visual basic!!!

thanks... a lot... for all your replies...
suppose there are three text boxes on the form... if i want to change the size of all of them by dragging them together... i mean i want to make all the three text boxes have same size by dragging them together... how can i do that?!!!...
prinz is offline  
Old 04-07-2007, 10:47 PM   #6 (permalink)
The No.1 Stupid
 
~Phenom~'s Avatar
 
Join Date: May 2005
Location: CYBERYARD
Posts: 1,708
Smile Re: help needed on visual basic!!!

Quote:
Originally Posted by QwertyManiac
Doesn't the Text Box have a size attribute to it? Anyway, to get a fixed default, always double click on the text box icon on the tool bar while creating it, instead of single clicking and drawing one.

I don't know about VB 6 but in the higher versions (.NET) you can copy a text box and paste as many you like and their names will change normally like you make one by one.
its the same in VB6 also.
__________________
n00b forever...
~Phenom~ is offline  
Old 05-07-2007, 11:54 AM   #7 (permalink)
In The Zone
 
ayush_chh's Avatar
 
Join Date: Nov 2005
Location: Bangalore
Posts: 487
Default Re: help needed on visual basic!!!

Quote:
Originally Posted by prinz
thanks... a lot... for all your replies...
suppose there are three text boxes on the form... if i want to change the size of all of them by dragging them together... i mean i want to make all the three text boxes have same size by dragging them together... how can i do that?!!!...
i hav never tried that but i don't think that's possible....
__________________
eXPerience is what a MAN learn's fROM.....
ayush_chh is offline  
Old 05-07-2007, 12:22 PM   #8 (permalink)
Broken In
 
Join Date: Dec 2006
Posts: 142
Default Re: help needed on visual basic!!!

Quote:
Originally Posted by ayush_chh
i hav never tried that but i don't think that's possible....
im sure... its possible... i think i forgot it... pls... anybody there to help me...
prinz is offline  
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
visual basic database Sridhar_Rao Programming 4 04-03-2007 09:48 PM
Visual Basic help! romeo_8693 QnA (read only) 18 17-02-2007 07:55 PM
Visual Basic....! vineetrocks2005 QnA (read only) 2 20-06-2006 11:25 PM
Visual Basic Query godsownman QnA (read only) 5 30-03-2006 04:10 PM
Visual Basic 6.0 godsownman QnA (read only) 5 18-04-2005 06:27 AM

 
Latest Threads
- by Sujeet
- by Krow
- by abhidev

Advertisement




All times are GMT +5.5. The time now is 08:01 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.

Search Engine Optimization by vBSEO 3.3.2