Click here to Skip to main content
15,881,173 members
Home / Discussions / C#
   

C#

 
GeneralRe: using System.Diagnostics.Stopwatch in an Button_Click Event: unusual results in specific test case Pin
BillWoodruff25-Jul-13 21:13
professionalBillWoodruff25-Jul-13 21:13 
QuestionParamerterized OleDB Query Pin
gautamn199025-Jul-13 0:21
gautamn199025-Jul-13 0:21 
AnswerRe: Paramerterized OleDB Query Pin
Dave Kreskowiak25-Jul-13 1:17
mveDave Kreskowiak25-Jul-13 1:17 
GeneralRe: Paramerterized OleDB Query Pin
gautamn199025-Jul-13 19:28
gautamn199025-Jul-13 19:28 
GeneralRe: Paramerterized OleDB Query Pin
Dave Kreskowiak26-Jul-13 2:52
mveDave Kreskowiak26-Jul-13 2:52 
GeneralRe: Paramerterized OleDB Query Pin
gautamn199028-Jul-13 19:03
gautamn199028-Jul-13 19:03 
AnswerRe: Paramerterized OleDB Query Pin
PIEBALDconsult25-Jul-13 14:19
mvePIEBALDconsult25-Jul-13 14:19 
GeneralRe: Paramerterized OleDB Query Pin
gautamn199025-Jul-13 19:45
gautamn199025-Jul-13 19:45 
Thank you for your reply. I tried your concept. the name is getting replaced but during code analysis CA2100: Microsoft.Security: warning is still appearing. Sting sheet_name is value in obtained from users input by the following code.
C#
string sheet_name=listBox_Select_a_sheet.SelectedItem.ToString();
string strSql = "SELECT count(*) FROM sheet_name";
using (OleDbCommand cmd = new OleDbCommand(strSql, MyConnection))//CA2100 Warning:Microsoft.Security
{
   cmd.ExecuteNonQuery();
}


How to supress the CA2100 Warning:MicroSoft.Security ?
GeneralRe: Paramerterized OleDB Query Pin
PIEBALDconsult26-Jul-13 7:58
mvePIEBALDconsult26-Jul-13 7:58 
QuestionDataGridview ComboBox Filter Pin
Awais Jan24-Jul-13 23:44
Awais Jan24-Jul-13 23:44 
Questionproblem with datagridview in windows application Pin
Arun kumar Gautam24-Jul-13 20:59
Arun kumar Gautam24-Jul-13 20:59 
QuestionRe: problem with datagridview in windows application Pin
Eddy Vluggen25-Jul-13 7:12
professionalEddy Vluggen25-Jul-13 7:12 
AnswerRe: problem with datagridview in windows application Pin
Arun kumar Gautam25-Jul-13 19:32
Arun kumar Gautam25-Jul-13 19:32 
AnswerRe: problem with datagridview in windows application Pin
Eddy Vluggen26-Jul-13 8:05
professionalEddy Vluggen26-Jul-13 8:05 
Questionsingle sogn on using active directory Pin
ketan italiya24-Jul-13 20:42
ketan italiya24-Jul-13 20:42 
AnswerRe: single sogn on using active directory Pin
Eddy Vluggen25-Jul-13 7:08
professionalEddy Vluggen25-Jul-13 7:08 
GeneralRe: single sogn on using active directory Pin
ketan italiya25-Jul-13 22:48
ketan italiya25-Jul-13 22:48 
GeneralRe: single sogn on using active directory Pin
Eddy Vluggen26-Jul-13 23:11
professionalEddy Vluggen26-Jul-13 23:11 
GeneralRe: single sogn on using active directory Pin
mrcbitting30-Jul-13 3:58
mrcbitting30-Jul-13 3:58 
QuestionOpening a file from the installation directory Pin
Matthew Menard24-Jul-13 10:18
Matthew Menard24-Jul-13 10:18 
AnswerRe: Opening a file from the installation directory Pin
NickPace24-Jul-13 10:41
NickPace24-Jul-13 10:41 
GeneralRe: Opening a file from the installation directory Pin
Matthew Menard25-Jul-13 2:06
Matthew Menard25-Jul-13 2:06 
AnswerRe: Opening a file from the installation directory Pin
Ron Beyer24-Jul-13 10:42
professionalRon Beyer24-Jul-13 10:42 
GeneralRe: Opening a file from the installation directory Pin
Matthew Menard25-Jul-13 2:04
Matthew Menard25-Jul-13 2:04 
Questionhigh memory use small C# program Pin
Dekkie24-Jul-13 8:05
Dekkie24-Jul-13 8:05 

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.