Click here to Skip to main content
15,890,282 members
Home / Discussions / C#
   

C#

 
GeneralRe: Loading combobox with items on form load Pin
originSH4-Sep-07 0:55
originSH4-Sep-07 0:55 
AnswerRe: Loading combobox with items on form load Pin
Muammar©4-Sep-07 1:36
Muammar©4-Sep-07 1:36 
GeneralRe: Loading combobox with items on form load Pin
originSH4-Sep-07 1:43
originSH4-Sep-07 1:43 
GeneralRe: Loading combobox with items on form load Pin
Muammar©4-Sep-07 19:39
Muammar©4-Sep-07 19:39 
GeneralRe: Loading combobox with items on form load Pin
Skippums4-Sep-07 13:04
Skippums4-Sep-07 13:04 
GeneralRe: Loading combobox with items on form load Pin
Muammar©4-Sep-07 19:37
Muammar©4-Sep-07 19:37 
Questionhow to show tooltip for checked list box items on mouse move in c#? Pin
nicolus3-Sep-07 23:24
nicolus3-Sep-07 23:24 
QuestionUnable to clear textbox Pin
PartyGitsu3-Sep-07 23:17
PartyGitsu3-Sep-07 23:17 
I have a webapp where users can search for PDF-documents in database. They enter the searchcritera in a textbox and presses search. All that works fine but I have problem with clearing the textbox after pressing the searchbutton. The code for the button is:

protected void btnSearchNumber_Click(object sender, EventArgs e)
{
try
{
//readPDF gets the document from database
readPdf(TextBox1.Text);
TextBox1.Text = "";
}
catch
{
lblNoPDF.Text = "NO PDF-DOCUMENT FOR GIVEN MRB WAS FOUND";
TextBox1.Text = "";
}
}

If no document was found the catchblock successfully clears the textbox. But if document successfully opens, the textbox is not cleared. I have also tried to clear the textbox in a finally block with no success. There is probably a simpel solution to this but I havn't found it.
Anyone who can help?

Gitsu
AnswerRe: Unable to clear textbox Pin
DaveyM696-Sep-07 8:40
professionalDaveyM696-Sep-07 8:40 
GeneralRe: Unable to clear textbox Pin
PartyGitsu6-Sep-07 20:34
PartyGitsu6-Sep-07 20:34 
GeneralRe: Unable to clear textbox Pin
DaveyM697-Sep-07 0:57
professionalDaveyM697-Sep-07 0:57 
GeneralRe: Unable to clear textbox Pin
DaveyM697-Sep-07 1:20
professionalDaveyM697-Sep-07 1:20 
QuestionWCF Transport :confused: Pin
Cape Town Developer3-Sep-07 23:03
Cape Town Developer3-Sep-07 23:03 
AnswerRe: WCF Transport :confused: Pin
originSH3-Sep-07 23:06
originSH3-Sep-07 23:06 
GeneralRe: WCF Transport :confused: Pin
Cape Town Developer3-Sep-07 23:11
Cape Town Developer3-Sep-07 23:11 
QuestionConsole application run as a windows service or command line in C# 2.0 Pin
Sundarapandian.Balasubramanian3-Sep-07 22:50
Sundarapandian.Balasubramanian3-Sep-07 22:50 
AnswerRe: Console application run as a windows service or command line in C# 2.0 Pin
originSH3-Sep-07 22:57
originSH3-Sep-07 22:57 
GeneralRe: Console application run as a windows service or command line in C# 2.0 Pin
originSH3-Sep-07 22:59
originSH3-Sep-07 22:59 
GeneralRe: Console application run as a windows service or command line in C# 2.0 Pin
Sundarapandian.Balasubramanian3-Sep-07 23:20
Sundarapandian.Balasubramanian3-Sep-07 23:20 
AnswerRe: Console application run as a windows service or command line in C# 2.0 Pin
Skippums4-Sep-07 13:10
Skippums4-Sep-07 13:10 
QuestionInstalling printer drivers with WMI Pin
diamakz3-Sep-07 22:13
diamakz3-Sep-07 22:13 
QuestionProgrammatic Router Port Mapping Pin
1242563-Sep-07 21:55
1242563-Sep-07 21:55 
AnswerRe: Programmatic Router Port Mapping Pin
originSH3-Sep-07 22:51
originSH3-Sep-07 22:51 
Questionsql server Pin
Sonia Gupta3-Sep-07 21:14
Sonia Gupta3-Sep-07 21:14 
AnswerRe: sql server Pin
Guffa3-Sep-07 21:20
Guffa3-Sep-07 21:20 

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.