 |
| 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 software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
|
|
|
|

January 19th, 2005, 06:43 AM
|
|
Authorized User
|
|
Join Date: Sep 2004
Posts: 57
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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
|
|

January 19th, 2005, 06:44 AM
|
|
Authorized User
|
|
Join Date: Sep 2004
Posts: 57
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
To write in the Buying price that is...Whoops.
B
|
|

January 19th, 2005, 01:10 PM
|
|
Friend of Wrox
|
|
Join Date: Nov 2004
Posts: 1,621
Thanks: 1
Thanked 3 Times in 3 Posts
|
|
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.
|
|

January 19th, 2005, 01:40 PM
|
|
Authorized User
|
|
Join Date: Sep 2004
Posts: 57
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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
|
|

January 19th, 2005, 06:09 PM
|
|
Friend of Wrox
|
|
Join Date: Nov 2004
Posts: 1,621
Thanks: 1
Thanked 3 Times in 3 Posts
|
|
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?)
|
|

January 20th, 2005, 04:46 AM
|
|
Authorized User
|
|
Join Date: Sep 2004
Posts: 57
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
No, it is a screen issue, my report is generated on my screen(not for printing)
B
|
|

January 20th, 2005, 12:45 PM
|
|
Friend of Wrox
|
|
Join Date: Nov 2004
Posts: 1,621
Thanks: 1
Thanked 3 Times in 3 Posts
|
|
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.)
|
|

January 21st, 2005, 05:37 AM
|
|
Authorized User
|
|
Join Date: Sep 2004
Posts: 57
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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
|
|

January 21st, 2005, 06:36 AM
|
 |
Friend of Wrox
|
|
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
|
|
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
|
|

January 21st, 2005, 07:43 AM
|
|
Authorized User
|
|
Join Date: Sep 2004
Posts: 57
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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
|
|
 |