Click here to Skip to main content
15,888,351 members
Home / Discussions / C#
   

C#

 
AnswerRe: mod Pin
dino209417-Aug-07 11:23
dino209417-Aug-07 11:23 
QuestionEnterprise Library Logger without editing app.config Pin
Stas17-Aug-07 5:01
Stas17-Aug-07 5:01 
AnswerRe: Enterprise Library Logger without editing app.config Pin
Mark Churchill17-Aug-07 5:19
Mark Churchill17-Aug-07 5:19 
GeneralRe: Enterprise Library Logger without editing app.config Pin
Stas17-Aug-07 5:39
Stas17-Aug-07 5:39 
QuestionHow can I include xml files? Pin
miljanms17-Aug-07 4:42
miljanms17-Aug-07 4:42 
AnswerRe: How can I include xml files? Pin
Mark Churchill17-Aug-07 5:22
Mark Churchill17-Aug-07 5:22 
AnswerRe: How can I include xml files? Pin
miljanms20-Aug-07 1:05
miljanms20-Aug-07 1:05 
QuestionTrouble changing Label text Pin
Evan St. John17-Aug-07 4:00
Evan St. John17-Aug-07 4:00 
I have this “search” control which is dropped on a good 2 dozen or so forms in a CE app.
There are possibilities of the control performing 3 different searches… sometime only 1, maybe 2, or even all three.
The user can select which one to start with from a combobox… if they choose the wrong one (no results come back) the control will move on to a different search.
For ascetics, I have a label in front of the textbox that will display whatever was selected in the combobox.
Here comes my problem… the control performs the first search, nothing comes back, it starts a different search… befor that search starts, I change (er, try to change) the value in the combobox and the label to reflect the current search.
The label won’t change until after the search is completed… like 4 methods and 20 some lines of code later:
private void IndexChange(string index)
{
switch (index)
{
case "Item":
lblSearch.Text = "Item:";
cmbBy.SelectedIndex = 0;
break;
case "UPC":
lblSearch.Text = "UPC:";
cmbBy.SelectedIndex = 1;
break;
case "Vendor":
lblSearch.Text = "Vendor:";
cmbBy.SelectedIndex = 2;
break;
}
this.sh.SearchParametersList.Clear();
}
The part that I’m totally not getting is that if I through in a MessageBox beneath the lblSearch.Text lines, it works as I want it to:
private void IndexChange(string index)
{
switch (index)
{
case "Item":
lblSearch.Text = "Item:";
MessageBox.Show("lblSearch should show\"Item\"");
cmbBy.SelectedIndex = 0;
break;
Why does the combobox change when its told to but, the label refuses to listen to me?
AnswerRe: Trouble changing Label text Pin
Luc Pattyn17-Aug-07 4:37
sitebuilderLuc Pattyn17-Aug-07 4:37 
GeneralRe: Trouble changing Label text Pin
Evan St. John17-Aug-07 5:13
Evan St. John17-Aug-07 5:13 
AnswerRe: Trouble changing Label text [modified] Pin
Khoramdin17-Aug-07 8:18
Khoramdin17-Aug-07 8:18 
QuestionMouse click pos detection, and it's indication Pin
MeLight17-Aug-07 3:16
MeLight17-Aug-07 3:16 
AnswerRe: Mouse click pos detection, and it's indication Pin
Luc Pattyn17-Aug-07 3:58
sitebuilderLuc Pattyn17-Aug-07 3:58 
AnswerRe: Mouse click pos detection, and it's indication Pin
Justin Perez17-Aug-07 3:59
Justin Perez17-Aug-07 3:59 
Questionmicrosoft report and export as word Pin
erdemciga17-Aug-07 3:00
erdemciga17-Aug-07 3:00 
AnswerRe: microsoft report and export as word Pin
Justin Perez17-Aug-07 3:01
Justin Perez17-Aug-07 3:01 
Question3 Tier Architecture Pin
Tsepoz17-Aug-07 2:47
Tsepoz17-Aug-07 2:47 
AnswerRe: 3 Tier Architecture Pin
J4amieC17-Aug-07 2:56
J4amieC17-Aug-07 2:56 
GeneralRe: 3 Tier Architecture Pin
Wes Aday17-Aug-07 4:37
professionalWes Aday17-Aug-07 4:37 
Questionunable to load the dll Pin
dukuria17-Aug-07 2:32
dukuria17-Aug-07 2:32 
AnswerRe: unable to load the dll Pin
Johan Lombaard17-Aug-07 2:47
Johan Lombaard17-Aug-07 2:47 
QuestionRe:Displaying Messagebox within client Region Pin
RameshwerE17-Aug-07 2:27
RameshwerE17-Aug-07 2:27 
AnswerRe:Displaying Messagebox within client Region Pin
Hessam Jalali17-Aug-07 5:45
Hessam Jalali17-Aug-07 5:45 
QuestionHow to get a CSV file into a table? Pin
dorine8217-Aug-07 1:58
dorine8217-Aug-07 1:58 
AnswerRe: How to get a CSV file into a table? Pin
error140817-Aug-07 2:13
error140817-Aug-07 2:13 

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.