Go Back   Computer Forums > General Computing > Programming
Click Here to Login
Join Computer forums Today


Reply
 
Thread Tools Search this Thread Display Modes
 
Old 08-23-2010, 04:50 AM   #1
Beta Member
 
Join Date: Aug 2010
Posts: 3
Exclamation Visual Studio

I need some major help with a program and i hope this is the place to come to
Basically this is what im tryin to accomplish
Along with some other things
If i could really find someone that could help me out here it would be greatly appreciated

__________________

x-_KR3UZL3R_-x is offline   Reply With Quote
Old 08-23-2010, 07:28 AM   #2
Site Team
 
berry120's Avatar
 
Join Date: Jul 2009
Location: England, UK
Posts: 3,425
Default Re: Visual Studio

You don't say what the output is meant to be, but I'm assuming you want some output to appear on press of the "generate" button when you've first pushed the "select first" button, and subsequently checked the "select second" optionbox?

If so, I'd just use a couple of boolean variables. When the first button is clicked, set variable bool1 to true, then when the second optionbox is checked set variable bool2 to true IFF bool1 is true (so you have to press the button first.)

Then when the "generate" button is hit just check whether bool2 is true, and if so show whatever output you want to show.

Seems like a bit of a bizarre program though, any reason for it?
__________________

__________________
Save the whales, feed the hungry, free the mallocs.
berry120 is offline   Reply With Quote
Old 08-23-2010, 09:12 AM   #3
j03
~~~~~~~~
 
Join Date: Jan 2005
Location: Wales
Posts: 5,556
Send a message via MSN to j03
Default Re: Visual Studio

I believe that the reason for this program involves the infamous "lulz".
j03 is offline   Reply With Quote
Old 08-23-2010, 02:11 PM   #4
Beta Member
 
Join Date: Aug 2010
Posts: 3
Default Re: Visual Studio

Quote:
Originally Posted by berry120 View Post
You don't say what the output is meant to be, but I'm assuming you want some output to appear on press of the "generate" button when you've first pushed the "select first" button, and subsequently checked the "select second" optionbox?

If so, I'd just use a couple of boolean variables. When the first button is clicked, set variable bool1 to true, then when the second optionbox is checked set variable bool2 to true IFF bool1 is true (so you have to press the button first.)

Then when the "generate" button is hit just check whether bool2 is true, and if so show whatever output you want to show.

Seems like a bit of a bizarre program though, any reason for it?
That is not the real program i just made that one to give you an idea instead of me explaining it
ohhh and the out put box is what is set for select one and select two and generate links those two together
and secondly ill try that out if i can figure it out cuz im really really new to the program
x-_KR3UZL3R_-x is offline   Reply With Quote
Old 08-24-2010, 08:14 AM   #5
Site Team
 
root's Avatar
 
Join Date: Mar 2004
Posts: 7,999
Default Re: Visual Studio

so select 1 is a drop down list or something?
and select 2 is a drop down list

then you press generate.

what you need to do is edit the generate button and add an on_click event

the on click event should say something like.

output.text = "you chose " & select1.text & " and you also chose " & select2.text
__________________
I didn’t fight my way to the top of the food chain to be a vegetarian…
Im sick of people saying 'dont waste paper'. If trees wanted to live, they'd all carry guns.
"The inherent vice of capitalism is the unequal sharing of blessings; The inherent vice of socialism is the equal sharing of miseries."
root is offline   Reply With Quote
Old 08-24-2010, 02:30 PM   #6
Beta Member
 
Join Date: Aug 2010
Posts: 3
Default Re: Visual Studio

Quote:
Originally Posted by root View Post
so select 1 is a drop down list or something?
and select 2 is a drop down list

then you press generate.

what you need to do is edit the generate button and add an on_click event

the on click event should say something like.

output.text = "you chose " & select1.text & " and you also chose " & select2.text
No theyre not drop down lists in order for the "generate" to generate something select 1 and select 2 need to be selected then generate is the outpux of Textbox1 or output
x-_KR3UZL3R_-x is offline   Reply With Quote
Old 08-25-2010, 10:55 AM   #7
Site Team
 
root's Avatar
 
Join Date: Mar 2004
Posts: 7,999
Default Re: Visual Studio

so select 1 is a button.
select 2 is a radio button.

generate is a button,

text box one is the only thing that's got, or going to have any content.

in that case you need to set an event or variable on the select 1 button

onlick_select1()
global_var_select_1_pressed = true

then when generate is pressed you need to have something like this.

you have the radio button of select 2 set to a value.

onclick_generate()
if (global_var_select_1_ pressed == true AND select2.value == xyz) then
textbox1.text = "generated"
else
msgbox "you need to select stuff first"
__________________

__________________
I didn’t fight my way to the top of the food chain to be a vegetarian…
Im sick of people saying 'dont waste paper'. If trees wanted to live, they'd all carry guns.
"The inherent vice of capitalism is the unequal sharing of blessings; The inherent vice of socialism is the equal sharing of miseries."
root is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off



All times are GMT -5. The time now is 01:18 PM.


Powered by vBulletin® Version 3.8.8 Beta 4
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Search Engine Friendly URLs by vBSEO 3.6.0