Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Visual Basic > VB.NET 1.0 > VB.NET 2002/2003 Basics
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
VB.NET 2002/2003 Basics For coders who are new to Visual Basic, working in .NET versions 2002 or 2003 (1.0 and 1.1).
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VB.NET 2002/2003 Basics section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old January 19th, 2005, 06:43 AM
Authorized User
 
Join Date: Sep 2004
Location: , , .
Posts: 57
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Brettvan1
Default Visual basic.net problem

Could anyone help me with tis problem please?

I am trying to buying price in my code but I need it to be displayed with the buying on top of the price.Any ideas?

Thanks
B

Reply With Quote
  #2 (permalink)  
Old January 19th, 2005, 06:44 AM
Authorized User
 
Join Date: Sep 2004
Location: , , .
Posts: 57
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Brettvan1
Default

To write in the Buying price that is...Whoops.

B

Reply With Quote
  #3 (permalink)  
Old January 19th, 2005, 01:10 PM
Friend of Wrox
 
Join Date: Nov 2004
Location: Port Orchard, WA, USA.
Posts: 1,621
Thanks: 1
Thanked 3 Times in 3 Posts
Default

Please describe more fully.
You have the advantage of seeing what you are doing. Those reading this must "get the picture" from what you write.
The more time you spend on the description of the problem, the more likely you will be to get a solution that fits your needs.
Reply With Quote
  #4 (permalink)  
Old January 19th, 2005, 01:40 PM
Authorized User
 
Join Date: Sep 2004
Location: , , .
Posts: 57
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Brettvan1
Default

Ok sorry, here goes again.....I am using code to generate a sales report and on that sales report there need to be a few columns each with their own headings.One of the headings is 'buying value' by writing it in like that it will make my column to wide, so I want to have the 'buying' written down with the 'Price' falling underneath it instead of beside it.Hope that is clearer.

Thanks again

B

Reply With Quote
  #5 (permalink)  
Old January 19th, 2005, 06:09 PM
Friend of Wrox
 
Join Date: Nov 2004
Location: Port Orchard, WA, USA.
Posts: 1,621
Thanks: 1
Thanked 3 Times in 3 Posts
Default

So what you want is to word-wrap a label?
You need it to word-wrap on the printed version, right? (In other words, this is a paper issue, not a screen issue?)
Reply With Quote
  #6 (permalink)  
Old January 20th, 2005, 04:46 AM
Authorized User
 
Join Date: Sep 2004
Location: , , .
Posts: 57
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Brettvan1
Default

No, it is a screen issue, my report is generated on my screen(not for printing)

B

Reply With Quote
  #7 (permalink)  
Old January 20th, 2005, 12:45 PM
Friend of Wrox
 
Join Date: Nov 2004
Location: Port Orchard, WA, USA.
Posts: 1,621
Thanks: 1
Thanked 3 Times in 3 Posts
Default

What type of control is it?
Does it always have the same text?

(Please answer [u]each</u> question I ask. You didn't answer the first one I asked before, so here I am asking it again. It would be helpful if I didn't have to repeat myself. Please answer [u]both</u> questions in this post.)
Reply With Quote
  #8 (permalink)  
Old January 21st, 2005, 05:37 AM
Authorized User
 
Join Date: Sep 2004
Location: , , .
Posts: 57
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Brettvan1
Default

You know what Brian, no matter how clearly I put it out for you, you still just can't seem to grasp it ! I'd like to thank you for time on this matter. Please do not feel the need to respond again ! Anyone else out there, your help would be greatly appreciated.

B

Reply With Quote
  #9 (permalink)  
Old January 21st, 2005, 06:36 AM
planoie's Avatar
Friend of Wrox
Points: 16,481, Level: 55
Points: 16,481, Level: 55 Points: 16,481, Level: 55 Points: 16,481, Level: 55
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Aug 2003
Location: Clifton Park, New York, USA.
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

Brett,

Brian has raised a couple questions that you haven't answered that would make solving this problem much easier. Please have a little patience with those of us who are trying to help.

This is a forum category covering VB.NET therefore we don't necessarily know what kind of application you are creating and thus don't know what type of control you are trying to use. I can assume you are writing a winforms app only because most posters use the ASP.NET forums for web related .NET questions. Please take just a few seconds to give us a little more useful info so that we may help you.

As far as actually trying to answer your question:
I recall back in the days of writing Access application (*shiver*) that you could force a hard return into a control label with some key combination. I think it was CNTRL-ENTER. I don't know if this is possible (not at a dev machine at the moment) but it's worth a try. You might also be able to set the control label in the code with a string that contains the Environment.NewLine character if you can't directly force it into the label property of the control. Of course, if you are using a web control then a simple "<br>" will work.

-Peter
Reply With Quote
  #10 (permalink)  
Old January 21st, 2005, 07:43 AM
Authorized User
 
Join Date: Sep 2004
Location: , , .
Posts: 57
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Brettvan1
Default

Thanks for your help Peter, I wasn't getting at Brian, just felt that we were getting nowhere.He didnt understand what I was asking and I didnt understand what he wanted.No harm done.Thanks again for your help.

B

Reply With Quote
Reply


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 Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Visual Basic .NET and processes trailro VB How-To 0 October 21st, 2008 12:30 PM
Visual Basic .Net Remoting Handbook CrazyLegsCooper All Other Wrox Books 5 March 18th, 2008 08:06 AM
visual basic.net pringlesoft VB.NET 2 February 11th, 2008 01:46 PM
Rowfilter in Visual Basic.Net ahooi Pro VB.NET 2002/2003 0 July 5th, 2005 03:58 AM
Rowfilter in Visual Basic.Net ahooi ASP.NET 1.0 and 1.1 Basics 0 July 5th, 2005 03:51 AM



All times are GMT -4. The time now is 10:19 PM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.