Click here to Skip to main content
15,914,379 members
Home / Discussions / C#
   

C#

 
GeneralRe: Select a HostName with Regex in C# ? Pin
Mohammad Dayyan19-Feb-10 2:13
Mohammad Dayyan19-Feb-10 2:13 
AnswerRe: Select a HostName with Regex in C# ? Pin
AspDotNetDev18-Feb-10 20:17
protectorAspDotNetDev18-Feb-10 20:17 
GeneralRe: Select a HostName with Regex in C# ? Pin
OriginalGriff18-Feb-10 21:41
mveOriginalGriff18-Feb-10 21:41 
GeneralRe: Select a HostName with Regex in C# ? Pin
Gaurav Dudeja India18-Feb-10 21:43
Gaurav Dudeja India18-Feb-10 21:43 
GeneralRe: Select a HostName with Regex in C# ? Pin
AspDotNetDev18-Feb-10 21:44
protectorAspDotNetDev18-Feb-10 21:44 
GeneralRe: Select a HostName with Regex in C# ? Pin
Mohammad Dayyan18-Feb-10 21:54
Mohammad Dayyan18-Feb-10 21:54 
GeneralRe: Select a HostName with Regex in C# ? Pin
AspDotNetDev18-Feb-10 22:00
protectorAspDotNetDev18-Feb-10 22:00 
QuestionC# forms Changing and Keeping default Values Pin
Nexusfactor18-Feb-10 16:21
Nexusfactor18-Feb-10 16:21 
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 ClassLibrary;
using System.Collections;

namespace OrderForm
{
public partial class SubForm : Form
{



private TreeView s;
private ComboBox h;
Product c = new Product ();
private double[] prices = new double[100];
Store[] bee = new Store[100];
private string[] quantumItems = new string[4];
private double [] updatePrices = new double[3];

public SubForm()
{
InitializeComponent();

}


public SubForm(ComboBox h,TreeView s)
{
InitializeComponent();
h = new ComboBox();
s = new TreeView();
this.h = h;
this.s = s;


}

public ComboBox superSweet
{
get
{
return h;


}


set
{
h = value;

}

}


public TreeView superAwesome
{
get
{
return s;


}


set
{
s = value;

}

}







private void button2_Click(object sender, EventArgs e)
{

h.Items.Add(txtProduct.Text);
this.Close();

}

private void price_one_TextChanged(object sender, EventArgs e)
{
bee[1] = new Store();
string itemTwo = price_one.Text;
double ItemTwoConvert = Convert.ToDouble(itemTwo);
bee[1].superprice=ItemTwoConvert;

}

private void price_two_TextChanged(object sender, EventArgs e)
{
bee[2] = new Store();
string itemOne = price_two.Text;
double ItemOneConvert = Convert.ToDouble(itemOne);
bee[2].superprice = ItemOneConvert;
}

private void price_three_TextChanged(object sender, EventArgs e)
{
bee[3] = new Store();
string itemThree = price_three.Text;
double itemThreeConvert = Convert.ToDouble(itemThree);
bee[3].superprice = itemThreeConvert;
}

private void button1_Click(object sender, EventArgs e)
{
store_three.Visible = true;
price_three.Visible = true;
}

private void SubForm_Load(object sender, EventArgs e)
{

}

private void txtProduct_TextChanged(object sender, EventArgs e)
{
c = new Product();
c.supername = txtProduct.Text;
c.supercategory = cmbCat.SelectedText;

}

public void myAwesomeItem(string nice,string item,string item3, string item4,string item5, string item6)
{
txtProduct.Text = nice;
cmbCat.Text = item;
store_one.Text = item3;
store_two.Text = item4;
price_one.Text = item5;
price_two.Text = item6;
}






}
}

How would I keep what changes the user makes to the default values?
GeneralRe: C# forms Changing and Keeping default Values Pin
AspDotNetDev18-Feb-10 17:00
protectorAspDotNetDev18-Feb-10 17:00 
AnswerRe: C# forms Changing and Keeping default Values Pin
Saksida Bojan18-Feb-10 20:42
Saksida Bojan18-Feb-10 20:42 
QuestionMessage Removed Pin
18-Feb-10 14:49
Nexusfactor18-Feb-10 14:49 
AnswerREPOST Pin
AspDotNetDev18-Feb-10 15:39
protectorAspDotNetDev18-Feb-10 15:39 
QuestionContact Me Form will send email through Localhost, but won't after I FTP it (C#) [modified] Pin
MasterMalli18-Feb-10 10:52
MasterMalli18-Feb-10 10:52 
AnswerRe: Contact Me Form will send email through Localhost, but won't after I FTP it (C#) Pin
Not Active18-Feb-10 13:20
mentorNot Active18-Feb-10 13:20 
GeneralRe: Contact Me Form will send email through Localhost, but won't after I FTP it (C#) Pin
MasterMalli18-Feb-10 13:40
MasterMalli18-Feb-10 13:40 
AnswerRe: Contact Me Form will send email through Localhost, but won't after I FTP it (C#) Pin
DaveyM6918-Feb-10 14:40
professionalDaveyM6918-Feb-10 14:40 
GeneralRe: Contact Me Form will send email through Localhost, but won't after I FTP it (C#) [modified] Pin
MasterMalli18-Feb-10 15:33
MasterMalli18-Feb-10 15:33 
GeneralRe: Contact Me Form will send email through Localhost, but won't after I FTP it (C#) Pin
MasterMalli18-Feb-10 15:46
MasterMalli18-Feb-10 15:46 
GeneralRe: Contact Me Form will send email through Localhost, but won't after I FTP it (C#) Pin
DaveyM6918-Feb-10 16:34
professionalDaveyM6918-Feb-10 16:34 
GeneralRe: Contact Me Form will send email through Localhost, but won't after I FTP it (C#) Pin
MasterMalli18-Feb-10 16:46
MasterMalli18-Feb-10 16:46 
GeneralRe: Contact Me Form will send email through Localhost, but won't after I FTP it (C#) Pin
DaveyM6918-Feb-10 17:30
professionalDaveyM6918-Feb-10 17:30 
GeneralRe: Contact Me Form will send email through Localhost, but won't after I FTP it (C#) Pin
MasterMalli18-Feb-10 17:45
MasterMalli18-Feb-10 17:45 
QuestionMdichild form goes behind panel Pin
ronakT18-Feb-10 7:18
ronakT18-Feb-10 7:18 
AnswerRe: Mdichild form goes behind panel Pin
Abhinav S18-Feb-10 8:12
Abhinav S18-Feb-10 8:12 
GeneralRe: Mdichild form goes behind panel Pin
ronakT18-Feb-10 8:29
ronakT18-Feb-10 8:29 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.