Click here to Skip to main content
15,901,001 members
Home / Discussions / C#
   

C#

 
AnswerRe: Scrolling a panel via code (without its scrollbars) problem [modified] Pin
Dan Neilsen4-Jun-06 20:51
Dan Neilsen4-Jun-06 20:51 
QuestionData type mismatch in criteria expression.(Sql in C#) [modified] Pin
TheBeginner774-Jun-06 6:44
TheBeginner774-Jun-06 6:44 
AnswerRe: Data type mismatch in criteria expression.(Sql in C#) Pin
Rob Graham4-Jun-06 7:10
Rob Graham4-Jun-06 7:10 
AnswerRe: Data type mismatch in criteria expression.(Sql in C#) [modified] Pin
Guffa4-Jun-06 7:25
Guffa4-Jun-06 7:25 
QuestionChanging the location of button using programming Pin
Hengy4-Jun-06 4:55
Hengy4-Jun-06 4:55 
AnswerRe: Changing the location of button using programming Pin
User 66584-Jun-06 5:02
User 66584-Jun-06 5:02 
GeneralRe: Changing the location of button using programming Pin
Hengy4-Jun-06 8:40
Hengy4-Jun-06 8:40 
GeneralRe: Changing the location of button using programming [modified] Pin
Rob Graham4-Jun-06 12:04
Rob Graham4-Jun-06 12:04 
If no selection is made, then the target of the switch() statement is null - comboBox1.SelectedItem is uninitialized, so you can't call the ToString() method on it.

change the if -else statement to:
if (checkBox1.Checked != true)
{
 ...
}
else if (checkBox1.SelectedItem != null)
{
  switch (comboBox1.SelectedItem.ToString())
  {
    ....
  }
}
else
{
 MessageBox.Show("Please select a website to search.");
}

Last modified: Sunday, June 04, 2006 6:20:40 PM --

QuestionC# Resizing a form the programming way. Pin
Hengy4-Jun-06 4:19
Hengy4-Jun-06 4:19 
AnswerRe: C# Resizing a form the programming way. Pin
User 66584-Jun-06 4:34
User 66584-Jun-06 4:34 
GeneralRe: C# Resizing a form the programming way. Pin
Hengy4-Jun-06 4:50
Hengy4-Jun-06 4:50 
GeneralRe: C# Resizing a form the programming way. Pin
User 66584-Jun-06 4:53
User 66584-Jun-06 4:53 
GeneralRe: C# Resizing a form the programming way. Pin
Hengy4-Jun-06 5:00
Hengy4-Jun-06 5:00 
AnswerRe: C# Resizing a form the programming way. Pin
malikjhangirahmed@hotmail.com5-Jun-06 7:41
malikjhangirahmed@hotmail.com5-Jun-06 7:41 
QuestionText shape Pin
thepersonof4-Jun-06 4:16
thepersonof4-Jun-06 4:16 
AnswerRe: Text shape Pin
Stephan Samuel4-Jun-06 4:34
Stephan Samuel4-Jun-06 4:34 
AnswerRe: Text shape Pin
leppie4-Jun-06 5:33
leppie4-Jun-06 5:33 
GeneralRe: Text shape Pin
thepersonof4-Jun-06 5:38
thepersonof4-Jun-06 5:38 
QuestionWhere I can find information about binary trees? Pin
BiGjOe.NeT4-Jun-06 3:47
BiGjOe.NeT4-Jun-06 3:47 
AnswerRe: Where I can find information about binary trees? Pin
User 66584-Jun-06 4:00
User 66584-Jun-06 4:00 
Questionfrom VB.NET to C# Pin
microuser_20004-Jun-06 3:19
microuser_20004-Jun-06 3:19 
AnswerRe: from VB.NET to C# Pin
Tamimi - Code4-Jun-06 3:34
Tamimi - Code4-Jun-06 3:34 
AnswerRe: from VB.NET to C# Pin
Dave Doknjas4-Jun-06 12:30
Dave Doknjas4-Jun-06 12:30 
QuestionHow do you implement treeview.expand() method in C#? [modified] Pin
Tom Dane4-Jun-06 3:10
Tom Dane4-Jun-06 3:10 
AnswerRe: Append from an xml file to another xml file with C# Pin
Tamimi - Code4-Jun-06 3:04
Tamimi - Code4-Jun-06 3:04 

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.