Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Scroll bar in VB6.0

Status
Not open for further replies.

vijip2001

Programmer
Oct 14, 2003
61
US
Hello all,

I have a VB 6.0 application, which picks up the list of system printers, when user chooses the print button. The list of printers populates a check box in a form and user picks the printer which they want to print.
Since this application is hosted in a citrix metaframe server, it picks up all the available printers and the form expands beyond the screen limit. So the user cannot see the OK button or CANCEL button at the bottom of the form.
I tried to add Vertical scrollbar from the tools menu and it does not work. Is there any way i can add a scroll bar for the printer list? Please help.

Thanks,
Viji
 
How about making the Form fixed boarders? That way you don't have to fight the issues with the buttons dropping off screen. Another possibility is to poll the user's screen settings, determine what the bottom should be and set the form to not drop below it.

"If I were to wake up with my head sewn to the carpet, I wouldn't be more surprised than I am right now.
 
How do i do that? Then how will the users scroll the list of printers?

Thanks,
Viji
 
I'm actually not understanding what is being populated with the list of printers, and how it is expanding.

But you could put the list in a listbox or a dropdown list, which doesn't grow (and of course you can scroll a listbox).

Joe Schwarz
Custom Software Developer
 
Hello all,

Just got a chance to get back to the printer problem.
The checkbox in the printer dialog box is populated to dynamic string, which gets all the printers mapped to the server. So the check box expands and goes beyond the screen.
The form where my check box is placed does not allow me to place any other control like Listbox or dropdown. I am not sure why. Any clue? Can a vertical scroll bar be created on the form level?


Thanks,
Viji
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top