static void main()
{
LoginForm login= new LoginForm();
if(login.ShowDialog() == DialogResult.OK)
{
Application.Run(new Form1(login.User, login.Pass));
}
}
public partial class Form1:Form
{
string _User,_Pass;
public Form1(string user, string pass)
{
_User = user;
_Pass = pass;
}
}
CsharpChico
Junior Poster in Training
72 posts since May 2010
Reputation Points: 12
Solved Threads: 8
Skill Endorsements: 0
DoubleClick On Properties in SolutionExplorer and change Target Framework. If there are any features that are not supported in 3.5 that's supported in 4.0 the the IDE will let you know
CsharpChico
Junior Poster in Training
72 posts since May 2010
Reputation Points: 12
Solved Threads: 8
Skill Endorsements: 0
To Store To ClipBoard read jmurph333's solution to retrieve clipboard text us Clipboard.GetText();
CsharpChico
Junior Poster in Training
72 posts since May 2010
Reputation Points: 12
Solved Threads: 8
Skill Endorsements: 0
I wrote a trojan not that long ago that wasn't detected by my antivirus. It did incredibly suspicous stuff too, like sending a list of running procs over TCP or UDP to a listener, running procs, accepting commands to run in the command-line, remote shutdown/restart, send clipboard data back and forth, inject code into running procs to intercept windows messages (keystrokes, mouse info, etc) it even had a little vnc pluging for complete remote control. I guess nothing in it exactly replicated any other virus out there, or AVG just sucks.
AVG just sucks lol. If You want a real antivirus program the is freeware i would suggest Avast. Defiantly one of the best I've tried
CsharpChico
Junior Poster in Training
72 posts since May 2010
Reputation Points: 12
Solved Threads: 8
Skill Endorsements: 0
LOL Not going to happen Programming takes time and practice. It's not something that you can read a book and be an expert on. Even the greatest of programmers still learn something new from time to time. I would suggest getting a good book and reading it. checking out tutorials here on DaniWeb and on codeproject.com. What type of programs do you plan to Develop? WinForm, WPF, Asp.Net, Azure? Are the programs going to deal more with web or fileSystem's? Do you plan on using Database's and if so Sql, Oracle, SQlite? There's a lot of thought and planning that goes into programming. I would say you will spend 70% of your time planning what is going to go into the code, how the code should be structured, should there be ,(Application Extensions(Dll's), plugins, skins) and much more. Also if you will want to look into Classes, interface's, and most defiantly oop. This is just a few of the things I could think of off the top of my head hope this helps you out and Happy Coding!!:)
CsharpChico
Junior Poster in Training
72 posts since May 2010
Reputation Points: 12
Solved Threads: 8
Skill Endorsements: 0
CsharpChico
Junior Poster in Training
72 posts since May 2010
Reputation Points: 12
Solved Threads: 8
Skill Endorsements: 0
private void button1_Click(object sender, EventArgs e)
{
Form form = new Form();
Label lbl = new Label();
form.Controls.Add(lbl);
lbl.Location = textBox1.Location;
form.Size = this.Size;
lbl.Text = textBox1.Text;
form.ShowDialog();
}
CsharpChico
Junior Poster in Training
72 posts since May 2010
Reputation Points: 12
Solved Threads: 8
Skill Endorsements: 0
private class EncryptionClass
{
public string Encrypt256(string Data, string Password)
{
byte[] clearBytes = System.Text.Encoding.Unicode.GetBytes(Data);
PasswordDeriveBytes pdb = new PasswordDeriveBytes(Password,
new byte[] { 0x00, 0x01, 0x02, 0x1C, 0x1D, 0x1E, 0x03, 0x04, 0x05, 0x0F, 0x20, 0x21, 0xAD, 0xAF, 0xA4 });
MemoryStream ms = new MemoryStream();
Rijndael alg = Rijndael.Create();
alg.Key = pdb.GetBytes(32);
alg.IV = pdb.GetBytes(16);
CryptoStream cs = new CryptoStream(ms, alg.CreateEncryptor(), CryptoStreamMode.Write);
cs.Write(clearBytes, 0, clearBytes.Length);
cs.Close();
byte[] encryptedData = ms.ToArray();
return Convert.ToBase64String(encryptedData);
}
}
CsharpChico
Junior Poster in Training
72 posts since May 2010
Reputation Points: 12
Solved Threads: 8
Skill Endorsements: 0