Hello there DaniWeb, im switching from vb.net to c# and i think its alot better already, i just wonder about a thing
How can i insert data into a variabel?
this is my code:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.IO;
using System.Net;
namespace LottoClient
{
public partial class frm_main : Form
{
#region Dims
// Random Function
new Random rndfunc;
// createTicket
[B]string createTicket_output;[/B]
//Ticket downloads
new WebClient wc;
#endregion
#region Actions
private void createTicket
{
[B]createTicket_output = "test";[/B]
[B]//The code above doesnt work[/B]
}
#endregion
public frm_main()
{
InitializeComponent();
}
private void frm_main_Load(object sender, EventArgs e)
{
log("Welcome to LottoClient");
}
#region Logging
public void log(string msg)
{
lb_log.Items.Add(DateTime.Now.Hour + (":"
+ (DateTime.Now.Minute + (":"
+ (DateTime.Now.Second + " - " + msg)))));
}
#endregion
}
}