Click here to Skip to main content
15,899,825 members
Home / Discussions / C#
   

C#

 
Questionhow to create sub tables in sql server Pin
praveenvkumarv5-Feb-09 18:02
praveenvkumarv5-Feb-09 18:02 
AnswerRe: how to create sub tables in sql server Pin
Christian Graus5-Feb-09 20:41
protectorChristian Graus5-Feb-09 20:41 
QuestionServer drives Pin
mrithula85-Feb-09 16:42
mrithula85-Feb-09 16:42 
AnswerRe: Server drives Pin
Dave Kreskowiak5-Feb-09 17:47
mveDave Kreskowiak5-Feb-09 17:47 
Question[Message Deleted] Pin
Michael Halsig5-Feb-09 9:10
Michael Halsig5-Feb-09 9:10 
AnswerRe: ShowDialog keeps loading the form. Pin
N a v a n e e t h5-Feb-09 15:39
N a v a n e e t h5-Feb-09 15:39 
AnswerRe: ShowDialog keeps loading the form. Pin
_Maxxx_5-Feb-09 15:45
professional_Maxxx_5-Feb-09 15:45 
GeneralRe: ShowDialog keeps loading the form. Pin
Michael Halsig6-Feb-09 3:41
Michael Halsig6-Feb-09 3:41 
I will set a break point and do a trace. I only create Form2 once. Form 2 only gets initialized once as well. However I can tell you that every time Form2.ShowDialog(this) is called it gets into my Form2_Load but when I call it using Form2.Show(this) it only gets into Form2_Load once.

Below is a sample of code that is creating and Showing Form2.
<pre>
public partial class Order : UserControl
{
public OrderEntry.UserControls.OrderOptions orderOptions = new OrderEntry.UserControls.OrderOptions();

public Order()
{
InitializeComponent();
}

private void Form1_Load(object sender, EventArgs e)
{
}

private void setupButton_Click(object sender, EventArgs e)
{
if (this.orderOptions.ShowDialog(this) == DialogResult.OK)
{

}
else
{

}
}
}
</pre>

Below is a sample of Form2.
<pre>
public partial class OrderOptions : Form
{
public OrderOptions()
{
InitializeComponent();
}

private void Form1_Load(object sender, EventArgs e)
{
//Need to makes sure that all controls are enabled and disabled correctly.
if (this.printImmediately.checkBox1.Checked)
{
this.invoiceMsg.Enabled = true;
this.receiptMessage.Enabled = true;
}
else
{
this.invoiceMsg.Enabled = false;
this.receiptMessage.Enabled = false;
}

if (this.barcodeScanning.checkBox1.Checked)
{
this.stopInQuantity.Enabled = true;
}
else { this.stopInQuantity.Enabled = false; }
}

private void OrderSetup_FormClosing(object sender, FormClosingEventArgs e)
{
this.Hide();
e.Cancel = true;
}
}
</pre>
GeneralRe: ShowDialog keeps loading the form. Pin
Michael Halsig6-Feb-09 6:35
Michael Halsig6-Feb-09 6:35 
GeneralRe: ShowDialog keeps loading the form. Pin
_Maxxx_8-Feb-09 12:53
professional_Maxxx_8-Feb-09 12:53 
GeneralRe: ShowDialog keeps loading the form. Pin
Michael Halsig9-Feb-09 7:00
Michael Halsig9-Feb-09 7:00 
GeneralRe: ShowDialog keeps loading the form. Pin
_Maxxx_9-Feb-09 11:18
professional_Maxxx_9-Feb-09 11:18 
QuestionConvert PDF to text or html Pin
Johan Martensson5-Feb-09 7:12
Johan Martensson5-Feb-09 7:12 
AnswerRe: Convert PDF to text or html Pin
vaghelabhavesh5-Feb-09 8:05
vaghelabhavesh5-Feb-09 8:05 
GeneralRe: Convert PDF to text or html Pin
Johan Martensson5-Feb-09 8:26
Johan Martensson5-Feb-09 8:26 
QuestionSSIS, .net and C# Pin
mecca15-Feb-09 7:10
mecca15-Feb-09 7:10 
AnswerRe: SSIS, .net and C# Pin
aalex6755-Feb-09 7:41
aalex6755-Feb-09 7:41 
GeneralRe: SSIS, .net and C# Pin
mecca15-Feb-09 7:57
mecca15-Feb-09 7:57 
GeneralRe: SSIS, .net and C# Pin
aalex6755-Feb-09 8:00
aalex6755-Feb-09 8:00 
AnswerRe: SSIS, .net and C# Pin
Mbah Dhaim5-Feb-09 11:23
Mbah Dhaim5-Feb-09 11:23 
QuestionUnable to access control on a Master Page [.NET 3.5/ VS 2008] [modified] Pin
Alaric_5-Feb-09 7:00
professionalAlaric_5-Feb-09 7:00 
Questionhow to chang visual attribute of TaskBars (or other controls) Pin
Tonixic5-Feb-09 6:07
Tonixic5-Feb-09 6:07 
AnswerRe: how to chang visual attribute of TaskBars (or other controls) Pin
EliottA5-Feb-09 6:12
EliottA5-Feb-09 6:12 
QuestionC# and Firewire? Pin
sky_fire845-Feb-09 6:00
sky_fire845-Feb-09 6:00 
QuestionSystem.Data.SqlClient.Sqlclientpermission,system,.........,publickey token='......' failed exception Pin
praveenvkumarv5-Feb-09 5:47
praveenvkumarv5-Feb-09 5:47 

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.