Loading
submit to reddit
May 25, 2013, 06:27:34 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Welcome!
 
   Forum Home   Help Search Forum Login Register  
Pages: [1]   Go Down
  Send this topic  |  Print  
Author Topic: read - tutorial suggestion, dont mind grammar- had not much time xD  (Read 1865 times)
Metropolis
Newbie
*
Posts: 23


hey all


« on: March 14, 2009, 06:41:24 AM »

Hey guys from XOAX and others ...


I me , Metropolis, again...

A friend of mine and me had a discussion about making programs.. the thing is, we want to start small (like normal) but we'd like to use Forms with buttons , labels in c++ (not VB !)

now the thing is, we can't find any good tutorials on the net about command when you push on buttons and so ..

could you guys help us out with a good tutorial



(for now my goal is :

you have one label, which will be displaying the text from either radiobox 1 or radiobox2 when pushing on Button1)

now we need to know the codes for that so we can learn out off it. help plz xD
Logged

Metropolis*
Michael Hall
Administrator
Hero Member
*****
Posts: 903



« Reply #1 on: March 14, 2009, 08:25:31 PM »

Hi Metropolis,

Let me see if I understand this right. You want to have two radio buttons with text. Then you want another label or text of some sort to display the text from the radio button that is checked. Is that right?

Mike
Logged
Metropolis
Newbie
*
Posts: 23


hey all


« Reply #2 on: March 15, 2009, 05:14:25 AM »

Yes , You're totally right.

Also, if it's possible... Could you guys make a tutorial with inputs...

like in Console apps :

Cin >> TheNameOfInput
Cout << "you wrote: " TheNameOfInput " ." << endl;


but that in Windows Form Applications

Like you input text in a Textbox and you press ok, then a label changes its text to the text you put in.



Thanks
Logged

Metropolis*
Metropolis
Newbie
*
Posts: 23


hey all


« Reply #3 on: March 15, 2009, 06:00:31 AM »

Hey, I already found my second question, with the inputs ; it's just using this code :

NameOfThingYouWantToChangePlusNumber->Text=String::Format("your text here {0}" , WhatTekst->Text);

but cant find how the radios work...

Well, i know how i shpould do it in Console but not in this Windows Form

I always get stuck in the Event of the Button "apply"

I tried
if(radioButton1->Checked=True)
{
     label1->text=string::format etc...
}
else{
..}

but that doesnt work
Logged

Metropolis*
Pages: [1]   Go Up
  Send this topic  |  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!