hey guys, i have alittle question im playing with this command
WritePrivateProfileString("el33t", "textBox6", //par3//, "C:el33t.ini");
basicly an INI read/write routine, but i have alittle problem in parimeter 3 (//par3//) i put this in: textBox6->Text so it...
what and were exactly is the constructor and the class declaration so i can find it and implement this code, again thanks for your help
is the class declaration this?:
private: System::Void button11_Click(System::Object * sender, System::EventArgs * e)
{
//code goes...
how do i go about writing values to registry and getting it again
for example i want to save the text in textBox1 and when the prog is started up again it will load the text from the registry to the text box
how will i go about doing this?, thanks guys
that works great, i also figured out how to hide the form, but what if i dont want to create a new form every time, what if i want to keep bringing up the existing one with all its user input (text in textboxes, etc...) how would i do that?
what do you mean by pre compiled header files, they are generated when i use the wizard that adds a window form, its called form2.h, do i have to put a #include in? or somthin, im really havin a hard time with this
compile error
error C2065: 'Form2' : undeclared identifier
error C2065: 'frm' : undeclared identifier
error C2061: syntax error : identifier 'Form2'
error C2227: left of '->Show' must point to class/struct/union
heres the code i put in:
Form2* frm = new Form2();
frm->Show();
the name of...
no i want this form to have alot of stuff on it like textbox's, images and the works, and i dont need to MAKE a new form i just need to know how to make it show up when i clikc the button on the main form
i posted this a couple of days ago and it didnt get much reponses, so how do i go about showing a secdond form in my project, its called form2.h, im using visual C++ .NET 2003 and its a windows program NOT a console program
also what exactly is an instance i heard it around alot but never knew...
its basicly a windows form, (im using visual C++ .net 2003) but i just went to add item, ->windows form->name: form2 and it just shpwed up in the resources folder and its file name is form2.h
how do i go about showing a new form that i added to my project(form2)t, see i have a button and i want the user to click the button and the form will popup, but im having trouble coding this, all help is appreciated
-Traxxas
one more question, how do i show a new form when i click a button, i added a new form to my progect (form2) and i want the user to click the button and the form would show, the code would go here
private: System::Void button10_Click(System::Object * sender, System::EventArgs * e)
{
//code goes...
is it possibal i can get a sample of the correct way to do this code
again heres the code i have:
private: System::Void button9_Click(System::Object * sender, System::EventArgs * e)
if(textBox5->Text == "press")
{
textBox5->set_Text("pressed")
}
i get no error, it just doesnt do anything, i heard somewere that the == is the problem but i dont know and textBox5 is a textbox and ->Text is the value that is being looked at
hey i just moved over from visual basic too c++ and im making a little prog to see what i can do, in a portion of my progr i want the user to enter the word "press" and press the button next to it and then the textbox would say "pressed"
in vb the code would be:
If...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.