Click here to Skip to main content
15,891,629 members
Home / Discussions / C#
   

C#

 
AnswerRe: How to confirm user & pass with active directory Pin
J4amieC25-Jun-09 1:52
J4amieC25-Jun-09 1:52 
QuestionKeyEventArgs question: Get one of the arrow keys and space key at the same time Pin
Mc_Topaz25-Jun-09 1:12
Mc_Topaz25-Jun-09 1:12 
AnswerRe: KeyEventArgs question: Get one of the arrow keys and space key at the same time Pin
OriginalGriff25-Jun-09 1:20
mveOriginalGriff25-Jun-09 1:20 
GeneralRe: KeyEventArgs question: Get one of the arrow keys and space key at the same time Pin
Mc_Topaz25-Jun-09 6:08
Mc_Topaz25-Jun-09 6:08 
AnswerRe: KeyEventArgs question: Get one of the arrow keys and space key at the same time Pin
stancrm25-Jun-09 1:50
stancrm25-Jun-09 1:50 
GeneralRe: KeyEventArgs question: Get one of the arrow keys and space key at the same time Pin
Mc_Topaz25-Jun-09 6:12
Mc_Topaz25-Jun-09 6:12 
AnswerRe: KeyEventArgs question: Get one of the arrow keys and space key at the same time Pin
Dan Neely25-Jun-09 2:33
Dan Neely25-Jun-09 2:33 
GeneralRe: KeyEventArgs question: Get one of the arrow keys and space key at the same time Pin
Mc_Topaz25-Jun-09 6:48
Mc_Topaz25-Jun-09 6:48 
QuestionPrinter Job status using PJL Pin
koppewar25-Jun-09 0:51
professionalkoppewar25-Jun-09 0:51 
Questiondrag and drop file and/or add note to window form calendar Pin
kyi kyi25-Jun-09 0:07
kyi kyi25-Jun-09 0:07 
QuestionHow to check if documents on shared folders are availiable? Pin
Succodimele24-Jun-09 23:42
Succodimele24-Jun-09 23:42 
AnswerRe: How to check if documents on shared folders are availiable? Pin
Sk9325-Jun-09 0:12
Sk9325-Jun-09 0:12 
AnswerRe: How to check if documents on shared folders are availiable? Pin
Mycroft Holmes25-Jun-09 0:49
professionalMycroft Holmes25-Jun-09 0:49 
QuestionUsage of Lambda Expression Pin
HarishBhattbhatt24-Jun-09 23:41
HarishBhattbhatt24-Jun-09 23:41 
AnswerRe: Usage of Lambda Expression Pin
led mike25-Jun-09 4:47
led mike25-Jun-09 4:47 
AnswerRe: Usage of Lambda Expression Pin
Niladri_Biswas25-Jun-09 6:03
Niladri_Biswas25-Jun-09 6:03 
QuestionCombobox control..........?? [modified] Pin
Hum Dum24-Jun-09 23:09
Hum Dum24-Jun-09 23:09 
using vs2003.
Its a data entry application, having some fields and buttons.

In this, I am using combobox control, getting data from DB in DataTable obj dt, then setting the datasource property of Combobox to this dt.

there is New button, when user clicks on it, it simply clears all fields text, their DataBindings, for combox also i am using it as
cbBox.DataBinding.Clear();
cbBox.Text = "";


then there Save button which saves data to DB, on this Save click event i am checking data entered, like
if(cbBox.Text =="")//here it shows previous text if user do not enter any data
// after clicking New button (in debugging), but if user enter some data then that 
//entered data
{
// related code
}


But here is problem, after clicking new button, all fields got clear, cbBox text goes blank. But if user did not enter any data in cbBox then it retains the previous text(text before clicking New button)

a) why this? how to rectify.


b)Related to DataRow?
when we load some data from DB, we fill it in Datatable obj first.
then iterate thru all rows.

SQL = "Select * from Data where ID = 23";
execute this SQL against DB.
assume ID is primary key,
now only single row returned,

How to get this DataRow without filling it in Datatable?

regards,

modified on Thursday, June 25, 2009 7:35 AM

AnswerRe: Combobox control..........?? Pin
padmanabhan N24-Jun-09 23:31
padmanabhan N24-Jun-09 23:31 
GeneralRe: Combobox control..........?? Pin
Hum Dum25-Jun-09 1:33
Hum Dum25-Jun-09 1:33 
QuestionReceive mail by C# code Pin
khosnur24-Jun-09 22:45
khosnur24-Jun-09 22:45 
AnswerRe: Receive mail by C# code Pin
stancrm24-Jun-09 23:00
stancrm24-Jun-09 23:00 
GeneralRe: Receive mail by C# code Pin
khosnur6-Jul-09 23:45
khosnur6-Jul-09 23:45 
GeneralRe: Receive mail by C# code Pin
khosnur6-Jul-09 23:47
khosnur6-Jul-09 23:47 
QuestionImage processing problem... Pin
S K Y24-Jun-09 22:08
S K Y24-Jun-09 22:08 
AnswerRe: Image processing problem... Pin
Christian Graus24-Jun-09 22:34
protectorChristian Graus24-Jun-09 22:34 

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.