Click here to Skip to main content
15,881,746 members
Home / Discussions / C#
   

C#

 
QuestionC# and databse connectivity issue urgent?? Pin
Member 105648501-Feb-14 2:58
Member 105648501-Feb-14 2:58 
AnswerRe: C# and databse connectivity issue urgent?? Pin
OriginalGriff1-Feb-14 3:09
mveOriginalGriff1-Feb-14 3:09 
GeneralRe: C# and databse connectivity issue urgent?? Pin
Member 105648501-Feb-14 3:14
Member 105648501-Feb-14 3:14 
GeneralRe: C# and databse connectivity issue urgent?? Pin
OriginalGriff1-Feb-14 3:18
mveOriginalGriff1-Feb-14 3:18 
GeneralRe: C# and databse connectivity issue urgent?? Pin
Member 105648501-Feb-14 3:23
Member 105648501-Feb-14 3:23 
GeneralRe: C# and databse connectivity issue urgent?? Pin
OriginalGriff1-Feb-14 3:30
mveOriginalGriff1-Feb-14 3:30 
GeneralRe: C# and databse connectivity issue urgent?? Pin
Member 105648501-Feb-14 3:35
Member 105648501-Feb-14 3:35 
GeneralRe: C# and databse connectivity issue urgent?? Pin
OriginalGriff1-Feb-14 3:46
mveOriginalGriff1-Feb-14 3:46 
No text at all? Ok.
You also said: "I want to show the total number of male students in label names Sm and i don't get it!!"
Which is possibly wrong because your code puts Male Teachers in there:
C#
this.SM.Text = "" + Male_teachers.ToString() + "";


That means the code above isn't executed at all - because int.ToString cannot return an empty string - it will always return a number as a string, even if that number is zero.

So, if that code isn't being executed, and since you don't say that you get a MessageBox or a fatal exception, the most likely is that you aren't calling the Summary method at all. And a quick look at your code says you aren't calling it anywhere in the code fragment you showed us. If you don't call it, you don;t get any displayed values.

Did you mean to call it from your Form1_Load event handler perhaps?
Those who fail to learn history are doomed to repeat it. --- George Santayana (December 16, 1863 – September 26, 1952)
Those who fail to clear history are doomed to explain it. --- OriginalGriff (February 24, 1959 – ∞)

GeneralRe: C# and databse connectivity issue urgent?? Pin
Member 105648501-Feb-14 3:53
Member 105648501-Feb-14 3:53 
GeneralRe: C# and databse connectivity issue urgent?? Pin
OriginalGriff1-Feb-14 3:58
mveOriginalGriff1-Feb-14 3:58 
RantRe: C# and databse connectivity issue urgent?? Pin
Eddy Vluggen1-Feb-14 7:04
professionalEddy Vluggen1-Feb-14 7:04 
QuestionIMultiValueConverter and IValueConverter Interface lagging (slowness) Pin
cpquest1-Feb-14 2:33
cpquest1-Feb-14 2:33 
AnswerRe: IMultiValueConverter and IValueConverter Interface lagging (slowness) Pin
Eddy Vluggen1-Feb-14 7:00
professionalEddy Vluggen1-Feb-14 7:00 
GeneralRe: IMultiValueConverter and IValueConverter Interface lagging (slowness) Pin
cpquest2-Feb-14 16:31
cpquest2-Feb-14 16:31 
GeneralRe: IMultiValueConverter and IValueConverter Interface lagging (slowness) Pin
Eddy Vluggen2-Feb-14 22:38
professionalEddy Vluggen2-Feb-14 22:38 
AnswerRe: IMultiValueConverter and IValueConverter Interface lagging (slowness) Pin
Pete O'Hanlon2-Feb-14 23:50
mvePete O'Hanlon2-Feb-14 23:50 
QuestionConsuming sqlcompact connection with using statement Pin
teknolog1231-Feb-14 2:21
teknolog1231-Feb-14 2:21 
AnswerRe: Consuming sqlcompact connection with using statement Pin
Eddy Vluggen1-Feb-14 6:52
professionalEddy Vluggen1-Feb-14 6:52 
GeneralRe: Consuming sqlcompact connection with using statement Pin
teknolog1231-Feb-14 23:56
teknolog1231-Feb-14 23:56 
GeneralRe: Consuming sqlcompact connection with using statement Pin
Eddy Vluggen2-Feb-14 8:59
professionalEddy Vluggen2-Feb-14 8:59 
GeneralRe: Consuming sqlcompact connection with using statement Pin
teknolog1234-Feb-14 3:17
teknolog1234-Feb-14 3:17 
GeneralRe: Consuming sqlcompact connection with using statement Pin
Eddy Vluggen4-Feb-14 9:09
professionalEddy Vluggen4-Feb-14 9:09 
QuestionVS2012 Pin
Sandhya Bandar1-Feb-14 0:17
Sandhya Bandar1-Feb-14 0:17 
AnswerRe: VS2012 Pin
OriginalGriff1-Feb-14 0:45
mveOriginalGriff1-Feb-14 0:45 
GeneralRe: VS2012 Pin
Sandhya Bandar1-Feb-14 0:59
Sandhya Bandar1-Feb-14 0:59 

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.