lol..im such a newb, so thanks for baring with me:
your above code just creates a new form, it doesnt open my form2..how would I do that so I can open up the password window and close it without...
Type: Posts; User: GUIPenguin
lol..im such a newb, so thanks for baring with me:
your above code just creates a new form, it doesnt open my form2..how would I do that so I can open up the password window and close it without...
Thank you so much, both of you.
EDIT: I noticed that I cant open form2 more then once... if I push the button to open it again, I get an error:
Cannot Access a disposed object.
Object name:...
Thanks. That got me a bit further. I believe I understand what your saying...Although now I get this error:
Error 1 'System.Windows.Forms.Form' does not contain a definition for 'Password'
I know I have been posting quite a few questions these few days....all I have found the solution to on my own after playing around more....i'll be sure to update thoses so I dont start spaming the...
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
namespace...
I would like to change the text in my button1 at a specific time durning my application to something that is stored in an int
I remember a long time ago, I used something like int32.parse(string)...
you know how you would do something like
private void button2_Click() { }
What would you do for a mouse over? I want to do a mouse over on button2 and then put it code to srt...
I used
System.Diagnostics.Process.Start("logoff");
thanks
How do you execute a command in console from your application? so I can press a button and execure the dos command, shutdown -l to logoff, or something else.
Thanks
I am just starting out learning C. I have the K&R2 book, as well as 'C by Example'.
In the begining of the K&R2 book it says "given getchar and putchar, you can write a surprising amount of useful...
well I could essentially do it completly in bash.. but I really wanted to get the output of
/sbin/ifconfig eth1 | grep addr | awk '{print $2}' | cut-c5- | cut -c2-12 | sed -e 's/\.//g'
...
Well im not a master a writing c programs :(
strace /sbin/ifconfig eth0 gives me
master ~/programming # strace /sbin/ifconfig eth0
execve("/sbin/ifconfig", ["/sbin/ifconfig", "eth0"], [/*...
I am quite new to c/c++ programming and would love to incorperate it more into what I do.
Right now I have a bash script that uses standerd unix commands such as grep, awk, cut and sed. My intent...
Thanks alot
This is what I was using to display the first word in a file 'test.txt'
char str[10];
ifstream file ( "C:\\test.txt" );
file >> str;
cout << str;
Do you know of a website that has guides or packages that could be added onto a current Dev-C++ console project to provide a simple telnet client...or example code I could incorperate into my...
Thanks I got It figured out :)
using getenv() Before I had gone
if (c_command == "Administrator" {
command }
else {
command
}
Well I have tryed this way
string command = "%USERNAME%";
if(command == "Administrator")
{
I still cant get this too work, no matter what it ALWAYS goes to the else statment even if (command == "Administrator"){
I also tryed the secound one and went if (c_command == "Administrator"){
...
lol, yeah, that was simple, I thought I did that, anyways thanks, everytime I learn somthing, even that basic, i'll remember it for next time. :)
Ok this is what I have.
string command = "%USERNAME%";
system(command.c_str());
that will display the current user logged on.
Now is where I need help.
How can I check the value of string...
Thanks guys
yeah, that was the first thing I did, I went to
http://www.cprogramming.com/tutorial/lesson3.html
but I still dont know how to print a number of asterisks for an int value
all those seem to do...
Lets say int health=6;
I would like to display ***** symbles for the value of health
like int health=6;
display ******
if health were to equal 4
display ****
Thanks Swoopy, works great!