|
|
 |
| 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 p2p Programmer to Programmer discussion community. This is a community of more than 40,000 computer programmers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining our free Wrox p2p community you can post your own programming questions and respond to other programmers’ questions. Registered users also don't have to see the ads that are displayed to guests. Registration is fast, simple and absolutely free so please, join today!
Join today and post to win prizes! Post more to increase your chances of being Wrox’s top poster of the month.
|
 |
|

January 19th, 2005, 06:43 AM
|
|
Authorized User
|
|
Join Date: Sep 2004
Location: , , .
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
Location: , , .
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
Location: Port Orchard, WA, USA.
Posts: 1,621
Thanks: 1
Thanked 1 Time in 1 Post
|
|
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
Location: , , .
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
Location: Port Orchard, WA, USA.
Posts: 1,621
Thanks: 1
Thanked 1 Time in 1 Post
|
|
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
Location: , , .
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
Location: Port Orchard, WA, USA.
Posts: 1,621
Thanks: 1
Thanked 1 Time in 1 Post
|
|
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
Location: , , .
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
Points: 16,368, Level: 55 |
|
|
Join Date: Aug 2003
Location: Clifton Park, New York, USA.
Posts: 5,394
Thanks: 0
Thanked 2 Times in 2 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
Location: , , .
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
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
 |