Welcome to Dream.In.Code
Getting VB.NET Help is Easy!

Join 105,413 VB.NET Programmers for FREE! Ask your question and get quick answers from experts. There are 1,826 online right now! We've got more than 500 tutorials and 2,000 snippets. Join and find out why Dream.In.Code is the #1 programming help community on the internet! Registration is fast and FREE... Join Now!



Using Labels to display data

 
Reply to this topicStart new topic

Using Labels to display data, Labels in the toolbox

graypatrick093
post 1 Jul, 2008 - 03:53 PM
Post #1


New D.I.C Head

*
Joined: 16 Jun, 2008
Posts: 2

I am trying to make a label give a result next to it. Example would be like this: label1: 25 where the label1 one is the actual label and 25 is a result I would give it to show. I am using this for a project but don't know how to make the label produce an output like a textbox does. I have tried to do console.writeline with the info and that doesn't work and when i use a messagebox that isn't what I want. I have only been doing this a month so I am very new. Thanks.
User is offlineProfile CardPM

Go to the top of the page


jacobjordan
post 1 Jul, 2008 - 04:10 PM
Post #2


class Me : Perfection

Group Icon
Joined: 11 Jun, 2008
Posts: 534



Thanked 13 times

Dream Kudos: 1275
My Contributions


I don't exactly understand what you want, it would help a lot if you would show your code. If all you want to do is make a label say something like "Hello: 394", that isn't hard at all. Just say something like

vb

Label1.Text = "Hello: 394"

If the number 394 is stored in a variable, then do

vb

Dim int As Integer = 394
Label1.Text = "Hello: " & int
User is offlineProfile CardPM

Go to the top of the page

graypatrick093
post 1 Jul, 2008 - 04:53 PM
Post #3


New D.I.C Head

*
Joined: 16 Jun, 2008
Posts: 2

QUOTE(jacobjordan @ 1 Jul, 2008 - 04:10 PM) *

I don't exactly understand what you want, it would help a lot if you would show your code. If all you want to do is make a label say something like "Hello: 394", that isn't hard at all. Just say something like

vb

Label1.Text = "Hello: 394"

If the number 394 is stored in a variable, then do

vb

Dim int As Integer = 394
Label1.Text = "Hello: " & int



Well, I haven't started my code yet because I have to form a sentinel for some calculations. I need to have three labels and a textbox and have the user enter a sequence of numbers in the text box then end it with a -99 and the labels need to say min, max and average. I already have a plan for the code to be written but i was just trying to figure out how to have an output show up along side the label once I have the user press calculate first. Would I need to make this happen under the calculate button? Sorry, I just like to plan before I write the code..... Thanks for helping.
User is offlineProfile CardPM

Go to the top of the page

jayman9
post 1 Jul, 2008 - 07:17 PM
Post #4


Student of Life

Group Icon
Joined: 26 Dec, 2005
Posts: 6,237



Thanked 21 times

Dream Kudos: 500

Expert In: C#, VB.NET, Java

My Contributions


Topic renamed to be more descriptive.
User is offlineProfile CardPM

Go to the top of the page

Fast ReplyReply to this topicStart new topic
Time is now: 8/20/08 05:47AM

Live VB.NET Help!

VB.NET Tutorials

Reference Sheets

VB.NET Snippets

Bye Bye Ads

Free DIC T-Shirt

T-Shirt Example

Related Sites

Monthly Drawing

Thumb Drive

Partners

Top Contributors

Top 10 Kudos This Month