Click here to Skip to main content
15,884,237 members
Home / Discussions / C#
   

C#

 
QuestionC# directX how to getit up? Pin
mercenary0112-Aug-07 22:58
mercenary0112-Aug-07 22:58 
AnswerRe: C# directX how to getit up? Pin
stancrm12-Aug-07 23:09
stancrm12-Aug-07 23:09 
AnswerRe: C# directX how to getit up? Pin
Talal Sultan12-Aug-07 23:11
Talal Sultan12-Aug-07 23:11 
QuestionUPnP AV Client in C# Pin
N-O-R-B-E-R-T12-Aug-07 22:37
N-O-R-B-E-R-T12-Aug-07 22:37 
AnswerRe: UPnP AV Client in C# Pin
leppie12-Aug-07 23:39
leppie12-Aug-07 23:39 
AnswerRe: UPnP AV Client in C# Pin
leppie12-Aug-07 23:40
leppie12-Aug-07 23:40 
Questionhow to setup C# TCPClient timeout Pin
George_George12-Aug-07 22:36
George_George12-Aug-07 22:36 
QuestionConnection to SQL ! Pin
mrkeivan12-Aug-07 21:59
mrkeivan12-Aug-07 21:59 
Hey Guys, whats going on ? I want to check the the way I connect to sql and see if there's a more professional way, so please bare me !!! thanx

First I declare my SqlConnection, SqlDataAdapter and DataSet
SqlConnection InstConn = new SqlConnection();<br />
      SqlDataAdapter InstDA = new SqlDataAdapter();<br />
      DataSet DS = new DataSet();

then i create my Command text (Select, delete or update)
SqlCommand ChkCmd = new SqlCommand();

for selection then I fill my data set
InstDA .Fill(DS , "Table Name");

and if its Insert Delete or edit I use
ChkCmd .ExecuteNonQuery();

Not to mention that for edit I use SqlParameter.

so what do you think ? Is there a better way for doing this ?
and I also have another question, how can I prevent users from manipulating my database by entering some SQL command in a text box ! I know in ASP.net It authomatically prevent this, is this the same in C# Win or we have to manually do the same thing ?

Thanx
Mr.K
AnswerRe: Connection to SQL ! Pin
Giorgi Dalakishvili12-Aug-07 22:09
mentorGiorgi Dalakishvili12-Aug-07 22:09 
Questionvertical align in richtextbox Pin
Cuciu12-Aug-07 21:38
Cuciu12-Aug-07 21:38 
Questionc# - Painting problem Pin
T.D.Prasad12-Aug-07 21:27
T.D.Prasad12-Aug-07 21:27 
AnswerRe: c# - Painting problem Pin
Albu Marius12-Aug-07 22:31
Albu Marius12-Aug-07 22:31 
AnswerRe: c# - Painting problem Pin
Cuciu12-Aug-07 22:42
Cuciu12-Aug-07 22:42 
QuestionRe: c# - Painting problem Pin
T.D.Prasad12-Aug-07 23:51
T.D.Prasad12-Aug-07 23:51 
AnswerRe: c# - Painting problem Pin
Christian Graus13-Aug-07 0:31
protectorChristian Graus13-Aug-07 0:31 
AnswerRe: c# - Painting problem Pin
Christian Graus12-Aug-07 23:52
protectorChristian Graus12-Aug-07 23:52 
QuestionReading Numeric and AlphaNumeric Values from Excel Pin
meeram39512-Aug-07 20:10
meeram39512-Aug-07 20:10 
AnswerRe: Reading Numeric and AlphaNumeric Values from Excel Pin
travlos718-Mar-09 6:14
travlos718-Mar-09 6:14 
AnswerRe: Reading Numeric and AlphaNumeric Values from Excel Pin
InfoBridgeSolutions17-Aug-10 19:30
InfoBridgeSolutions17-Aug-10 19:30 
QuestionDatagrid paging-c# windows application Pin
hemchandars12-Aug-07 20:06
hemchandars12-Aug-07 20:06 
AnswerRe: Datagrid paging-c# windows application Pin
Jax_qqq12-Aug-07 21:41
Jax_qqq12-Aug-07 21:41 
GeneralRe: Datagrid paging-c# windows application Pin
hemchandars13-Aug-07 1:03
hemchandars13-Aug-07 1:03 
Questionhow to Read folder contents [modified] Pin
salmonraju12-Aug-07 20:05
salmonraju12-Aug-07 20:05 
AnswerRe: how to Read folder contents Pin
Michael Sync12-Aug-07 20:18
Michael Sync12-Aug-07 20:18 
GeneralRe: how to Read folder contents Pin
salmonraju12-Aug-07 21:02
salmonraju12-Aug-07 21:02 

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.