473,396 Members | 1,799 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Visual Basic Starter

Hi, could someone help me? I'm just new to the Visual Basic thing, and I'm having a little problem if someone could help me?

How do I make that when I click on the check box and then on a button it will enter the name in a text box like example

I click on checkbox1 (name:Stone)
and I click on the checkbox2 (name:sand)

Then I click on the button Start

and in the text box there will appear : "stone;sand"

Please help me.
Sep 25 '07 #1
4 1357
hey dewitte. try declaring three variables (String) say for example var1, var2 & var3. get the values from the lables next to the checkboxes clicked and store them into var1 & var2 for example , if chk1.value = true then var1 = label1.caption, and follow the same procedure for the second checkbox. then just add them into the third variable by formatting the way you want it and display it in the text box.
hope this will help you.
cheers
Sep 25 '07 #2
Well actually i dont understand what you are saying but this is what i want . When Smg and deagle are chosen and i click on the bind button then in the txtbox appears deagle;smg

[IMG][img=http://img221.imageshack.us/img221/1919/testqt2.jpg][/IMG]

'image link


http://img221.imageshack.us/my.php?image=testqt2.jpg
Sep 25 '07 #3
lets pretend that the checkbox for the Desert Eagle is checkbox1.

at the top of all your code:
Expand|Select|Wrap|Line Numbers
  1. Dim addtext As String
  2.  
double click the deagle checkbox

now:
Expand|Select|Wrap|Line Numbers
  1. Private Sub Checkbox1_Click()
  2. If Checkbox1.Value = 0 Then
  3. Text1.Text = Text1.Text & "Deagle;"
  4. Else
  5. addtext = Text1.Text
  6. Text1.Text = Replace(addtext,"Deagle;","")
  7. End If
  8. End Sub
  9.  
also i just noticed you're using .Net

This should be in the .net section, and none of the code i just wrote will work for you, but its a start.
Sep 25 '07 #4
Ali Rizwan
925 512MB
Hi , Could some one help me im just new to the Visual basic thing . and im having a little problem if some one could help me ?

how do i make that when i click on the check box and then on a button it will enter the name in a text box like example

i click on checkbox1 (name:Stone)
and i click on the checkbox2 (name:sand)

then i click on the button Start

and in the text box there will appear : "stond;sand"

pls help me
Ok try this attachment
If it helps you then tell me elsei ll send u something new
goodluck
Attached Files
File Type: zip CHK.zip (1.6 KB, 89 views)
Sep 26 '07 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Bob | last post by:
I'm looking at the docs in VS2005 regarding starter kits and I noticed that the starter kits to download from the site are in vsi files (compressed), all except the shareware starter kit. MS docs...
0
by: John Salerno | last post by:
I know this is a C# group, but I'm getting a little desperate. It's been several weeks since I posted my question to the WD forums and no one has responded. All I want to know is how to get...
16
by: TB | last post by:
Hi all: If you think that the following comments are absolute amateurish, then please bear with me, or simply skip this thread. A couple of months back I made the decision to initiate a...
3
by: Seigfried | last post by:
I can't find a way to do that anywhere on their site. Usually, you can get a CD for the cost of Shipping and Handling for their free downloads, but they don't seem to offer that option here.
1
by: rodriguez | last post by:
Hi, Yes, I'm one of the lonely ones who hasn't upgraded to VS2005.NET. Does anyone know where in MSDN, the code for the Starter-Kits for VS2003.NET? It seems like MSDN is very nicely ignoring...
97
by: Master Programmer | last post by:
An friend insider told me that VB is to be killled off within 18 months. I guess this makes sence now that C# is here. I believe it and am actualy surprised they ever even included it in VS 2003 in...
6
by: Simon Walsh | last post by:
I'm an Electronics student in college and I'm currently working on a project. I was given a circuit diagram for my project, from which I had to design a printed circuit board to be sent off and...
3
by: Mark B | last post by:
Is there one or somewhere I can download a gallery of professionally designed templates?
11
by: =?Utf-8?B?UGV0ZXIgSw==?= | last post by:
I am working with Visual Studio or alternately with Expression Web. I need to create about 50 aspx pages with about 1200 thumbnali images, typically arranged in three to four groups per page,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.