Click here to Skip to main content
15,895,606 members
Home / Discussions / C#
   

C#

 
QuestionHow do I change the value in the Title column for a document or folder in a doc lib using c#? Pin
eval994-Feb-09 4:00
eval994-Feb-09 4:00 
QuestionSerialPort output problem Pin
Admin8874-Feb-09 3:45
Admin8874-Feb-09 3:45 
AnswerRe: SerialPort output problem Pin
Luc Pattyn4-Feb-09 5:09
sitebuilderLuc Pattyn4-Feb-09 5:09 
GeneralRe: SerialPort output problem Pin
Admin8874-Feb-09 5:51
Admin8874-Feb-09 5:51 
AnswerRe: SerialPort output problem [modified] Pin
Luc Pattyn4-Feb-09 6:13
sitebuilderLuc Pattyn4-Feb-09 6:13 
GeneralRe: SerialPort output problem Pin
Alan N4-Feb-09 7:06
Alan N4-Feb-09 7:06 
AnswerRe: SerialPort output problem [modified] Pin
Luc Pattyn4-Feb-09 7:23
sitebuilderLuc Pattyn4-Feb-09 7:23 
QuestionSql Database LookUp Pin
boiDev4-Feb-09 3:04
boiDev4-Feb-09 3:04 
Hi All

I have done a Sql database look up. I put the code on the button click event. I want it so that wen i type in something in the text box it will make sure there is text in the texbox before soearching. Becuase at the moment when i debug and click the button it will ust load every thing without men typing in it.


Here is my Code

//Find Button
private void FindButton_Click(object sender, RoutedEventArgs e)
{
var cmd =
new SqlCommand(
@"SELECT
b.EafGeobldID,
b.BuildingName
FROM
EafGeoZip z
inner join EafGeoBld b on z.EafGeoZipID = b.EafGeoZipID
WHERE ZIPCode LIKE '%" +
tbPostCode.Text + "%'");


var reader = Read(cmd);

if (!reader.HasRows) return;
while (reader.Read())
{
var item = new ItemObject
{
Key =
string.Format("{0}", reader.GetString(1)),
ValueOfKey = reader.GetInt64(0).ToString()
};
cbBuilding.Items.Add(item);
}
}


//TextBox
public void tbPostCode_TextChanged(object sender, TextChangedEventArgs e)
{
}

What do i have to do to accomplish this..


Thank You in advance
AnswerRe: Sql Database LookUp Pin
musefan4-Feb-09 3:29
musefan4-Feb-09 3:29 
AnswerRe: Sql Database LookUp Pin
J4amieC4-Feb-09 4:25
J4amieC4-Feb-09 4:25 
JokeRe: Sql Database LookUp Pin
musefan4-Feb-09 4:29
musefan4-Feb-09 4:29 
QuestionInstalling a COM+ interoperable C# dll on machine without .Net Framework Pin
dan!sh 4-Feb-09 2:23
professional dan!sh 4-Feb-09 2:23 
AnswerRe: Installing a COM+ interoperable C# dll on machine without dll Pin
musefan4-Feb-09 2:35
musefan4-Feb-09 2:35 
GeneralRe: Installing a COM+ interoperable C# dll on machine without dll Pin
dan!sh 4-Feb-09 3:43
professional dan!sh 4-Feb-09 3:43 
GeneralRe: Installing a COM+ interoperable C# dll on machine without dll Pin
musefan4-Feb-09 3:50
musefan4-Feb-09 3:50 
GeneralRe: Installing a COM+ interoperable C# dll on machine without dll Pin
dan!sh 4-Feb-09 4:08
professional dan!sh 4-Feb-09 4:08 
GeneralRe: Installing a COM+ interoperable C# dll on machine without dll Pin
musefan4-Feb-09 4:23
musefan4-Feb-09 4:23 
AnswerRe: Installing a COM+ interoperable C# dll on machine without .Net Framework Pin
SeMartens4-Feb-09 3:56
SeMartens4-Feb-09 3:56 
GeneralRe: Installing a COM+ interoperable C# dll on machine without .Net Framework Pin
dan!sh 4-Feb-09 4:07
professional dan!sh 4-Feb-09 4:07 
Questionregular expressions Pin
lawrenceinba4-Feb-09 1:45
lawrenceinba4-Feb-09 1:45 
AnswerRe: regular expressions Pin
Not Active4-Feb-09 2:49
mentorNot Active4-Feb-09 2:49 
AnswerRe: regular expressions Pin
PIEBALDconsult4-Feb-09 4:01
mvePIEBALDconsult4-Feb-09 4:01 
GeneralRe: regular expressions Pin
lawrenceinba4-Feb-09 6:08
lawrenceinba4-Feb-09 6:08 
QuestionHow to show the handlers for selected child control in tablelayoutpanel in c#.net or vb.net (windows) [modified] Pin
dilipmca044-Feb-09 1:26
dilipmca044-Feb-09 1:26 
AnswerRe: How to show the handlers for selected child control in tablelayoutpanel in c#.net or vb.net (windows) Pin
Not Active4-Feb-09 1:40
mentorNot Active4-Feb-09 1:40 

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.