Click here to Skip to main content
15,889,116 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I want to show text(some implicit and some from database) on a dialogue box which tool is best for this in VS 2010?
Posted

1 solution

How about a TextBox? You can make it readonly if you need to, it can handle multiple lines, and you can cut'n'copy from it if you need to.
 
Share this answer
 
Comments
Sweety Khan 17-Jun-11 14:23pm    
can i show text like we show on console using console.writeline n also some values frm database at the same time?
OriginalGriff 17-Jun-11 14:28pm    
Yes, but it depends what you are trying to use it for. If you want to display a bunch of text that you retrieve once, and that never changes, then a multiline TextBox could be a good choice.
If you want to display a log, then a TextBox is bad - it will get slower and slower as you add more entries (Just line a console does!)
Sweety Khan 17-Jun-11 14:36pm    
i wanna display this
Item Code 555551
Design RM-4
etc
left column remains same but right column changes.
theses entries will be less than or equal to 11
OriginalGriff 17-Jun-11 14:42pm    
In which case I would something grid organised: How about a DataGridView: It doesn't have to be databound and it would handle that pretty easily.
Sweety Khan 17-Jun-11 14:46pm    
oki i will try n then let u know

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900