Sean89
Posts
-
System Shutdown -
Opening a FileSystem.Diagnostics.Process.Start(@"filepath");
-
validate string for special charactersstring input = textBox.Text;
if(!input.Contains("@"))
{
// do stuff
}Does that help?
-
Search Results (Win Forms 2.0)Look up textbox databinding.
-
Full screenSet the
FormBorderStyle
property of your form to "None". That should do it :laugh: -
Full screenThis works for full screen mode for me:
private void Form1_Load(object sender, System.Windows.Forms.KeyEventArgs e)
{
this.Bounds = Screen.AllScreens[0].Bounds;
this.TopMost = true;
}Does that help?
-
How can i find the current users 'My Documents' (XP)Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments);
Hope that helps ;P
-
Sending an HTML page by emailWhat parts of doing this are you having trouble with?
-
Accessing datatable without interface. [modified]Adding a row to the table is really quite simple. You are looking for datatable.NewRow(); To add a new row you would do something like this:
DataRow newrow = datatable.NewRow(); // Create a new row
row[0] = "blah blah blah";
row[2] = ...
// add some more data to the row
...dataTable.Rows.Add(newrow); //add the row to the table
Basically it creates a new row based on the columns that you have in the already constructed table. You can also set values for different columns in the row like:
row["SomeColumn"] = "blah blah blah";
Thats really all there is to it :laugh: Hope that helps.
-
beginner in C# needs helpSearch "Reading a text file in C#" in google. Once you have a line of text from the file you can use
string.Spilt(',');
to seperate the info. Something like:string currentText; // text obtained from file string [] seperated = currentText.Split(',');
-
Another problem with two forms [modified]What dont you understand?
-
Another problem with two forms [modified]Ok so what you would do is hand these variables to the constructor of your second form: Ex.
public partial class Form2 : Form
{public int d, e, f;
public Form2(int a, int b, int c)
{
d = a;
e = b;
f = c;
InitializeComponent();
}...
public partial class Form1 : Form
{public int a, b, c;
public Form1()
{
InitializeComponent();
}something_OnClick()
{
Form2 frm2 = new Form2(a, b, c);
frm2.ShowDialog();
}
-
How can I close one formthis.Close();
-
update with datagridviewmaryamf told you the problem.
-
Retrieve User Logged OnNo Problem ;P
-
Retrieve User Logged OnTo get the name of the user that is logged on you use:
User.Identity.Name.ToString();
-
Confusion over Web Site Administration ToolUsing your own database and authenticating the user yourself via the database is quite simple. There are many articles on doing the User administration yourself. It is not really that difficult, most of the work is done for you. Try the following articles: Forms Authentication in ASP.net Forms Authentication With Roles These are just some examples, there are many others. Just search: "Forms Authentication in ASP.net" in google ;)
-
Grid Controls Committing Changes [modified]Ohh sorry I would have told you to put a select command in when initializing the data adapter but I thought you had just left it out so you wouldnt take up to much room in your post ;) Good to see you got it workin' ;)
-
Grid Controls Committing Changes [modified]You need to include the SqlCommandBuilder to make your update command for you:
SqlDataAdapter dAdapter = new SqlDataAdapter();
SqlCommandBuilder cmdBuild = new SqlCommandBuilder(dAdapter); // add this
dAdapter.Update(markingDBDataSet3, "Species");
Without this, the update will not work.
-
Upload SpeedHow would I get the speed(kbps) of a file upload? Thanks, Sean