Click here to Skip to main content
15,913,090 members
Home / Discussions / C#
   

C#

 
Questionhow to know which control is focused Pin
meghamaharshi22-Sep-09 21:03
meghamaharshi22-Sep-09 21:03 
AnswerRe: how to know which control is focused Pin
OriginalGriff22-Sep-09 21:31
mveOriginalGriff22-Sep-09 21:31 
GeneralRe: how to know which control is focused Pin
meghamaharshi22-Sep-09 21:56
meghamaharshi22-Sep-09 21:56 
GeneralRe: how to know which control is focused Pin
Programm3r22-Sep-09 21:57
Programm3r22-Sep-09 21:57 
AnswerRe: how to know which control is focused Pin
Programm3r22-Sep-09 21:38
Programm3r22-Sep-09 21:38 
AnswerRe: how to know which control is focused Pin
benjymous22-Sep-09 23:30
benjymous22-Sep-09 23:30 
AnswerRe: how to know which control is focused Pin
Henry Minute23-Sep-09 1:20
Henry Minute23-Sep-09 1:20 
Questionget GUID from Assembly Information Pin
Jassim Rahma22-Sep-09 20:56
Jassim Rahma22-Sep-09 20:56 
AnswerRe: get GUID from Assembly Information Pin
Ravi Mori22-Sep-09 21:00
Ravi Mori22-Sep-09 21:00 
AnswerRe: get GUID from Assembly Information Pin
0x3c022-Sep-09 23:42
0x3c022-Sep-09 23:42 
QuestionIBasicVideo2 GetCurrentImage returns black frames Pin
smilefishcc22-Sep-09 20:45
smilefishcc22-Sep-09 20:45 
QuestionTest Cases for the Code Pin
jpk42022-Sep-09 20:36
jpk42022-Sep-09 20:36 
AnswerRe: Test Cases for the Code Pin
Richard MacCutchan22-Sep-09 22:59
mveRichard MacCutchan22-Sep-09 22:59 
AnswerRe: Test Cases for the Code Pin
N a v a n e e t h23-Sep-09 0:18
N a v a n e e t h23-Sep-09 0:18 
QuestionODBC Data Error Pin
sateesh villa22-Sep-09 20:35
sateesh villa22-Sep-09 20:35 
QuestionAccessing Non-Public Members [modified] Pin
John Jak22-Sep-09 20:15
John Jak22-Sep-09 20:15 
QuestionSkins in C# Pin
vivasaayi22-Sep-09 19:11
vivasaayi22-Sep-09 19:11 
AnswerRe: Skins in C# Pin
egenis22-Sep-09 19:25
egenis22-Sep-09 19:25 
GeneralRe: Skins in C# Pin
vivasaayi22-Sep-09 19:52
vivasaayi22-Sep-09 19:52 
GeneralRe: Skins in C# Pin
Ravi Mori22-Sep-09 20:00
Ravi Mori22-Sep-09 20:00 
GeneralRe: Skins in C# Pin
vivasaayi22-Sep-09 20:33
vivasaayi22-Sep-09 20:33 
GeneralRe: Skins in C# Pin
egenis22-Sep-09 20:36
egenis22-Sep-09 20:36 
QuestionNeed help with updating SQL server express DB from c# Pin
Mark-12345678922-Sep-09 16:15
Mark-12345678922-Sep-09 16:15 
Answerrepost Pin
Luc Pattyn22-Sep-09 16:29
sitebuilderLuc Pattyn22-Sep-09 16:29 
AnswerRe: Need help with updating SQL server express DB from c# Pin
Michael Eber22-Sep-09 18:53
Michael Eber22-Sep-09 18:53 
Mark-123456789 wrote:
SqlConnection cn = new SqlConnection(LoginForm.gb_strConnection);


So you created your connection. Now you have to establish your connection so that the database is open.
(that was a hint) try cn. and see what pops up. Maybe related to your cn.Close() command.

Mark-123456789 wrote:
cb.GetUpdateCommand();


think things through: You created an update command with your strSelect. You created something that consumes that string (whether it is correct or not) and you now are calling GetUpdateCommand(). Why did you do this? Your sql was your update command. You also do not need the data adapter.

So if you use Google then you will do several searches as follows:
"SQL Server UPDATE command"
"Updating SQL Server using C#"

So what you need to do really is this:
1) create a valid Update SQL command {UPDATE tbl ... values()}
2) create and active your connection
3) Create a command using your connection and sql statement
4) Execute the command
Your SQL statement (that needs to be Executed) is considered to be NonScalar as a hint of what to do to your command.

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.