Click here to Skip to main content
15,918,007 members
Home / Discussions / C#
   

C#

 
GeneralRe: C# with Msaccess datetime problem Pin
Vasudevan Deepak Kumar17-Jul-05 23:58
Vasudevan Deepak Kumar17-Jul-05 23:58 
GeneralRe: C# with Msaccess datetime problem Pin
Newbie_Toy18-Jul-05 1:20
Newbie_Toy18-Jul-05 1:20 
GeneralRe: C# with Msaccess datetime problem Pin
Vasudevan Deepak Kumar18-Jul-05 1:28
Vasudevan Deepak Kumar18-Jul-05 1:28 
GeneralRe: C# with Msaccess datetime problem Pin
Newbie_Toy18-Jul-05 1:48
Newbie_Toy18-Jul-05 1:48 
GeneralProblem in mail sending..please help Pin
pubududilena17-Jul-05 22:20
pubududilena17-Jul-05 22:20 
GeneralRe: Problem in mail sending..please help Pin
Vasudevan Deepak Kumar17-Jul-05 23:09
Vasudevan Deepak Kumar17-Jul-05 23:09 
GeneralRe: Problem in mail sending..please help Pin
mhmoud rawas18-Jul-05 1:57
mhmoud rawas18-Jul-05 1:57 
Generalexit after if statement Pin
Anonymous17-Jul-05 22:05
Anonymous17-Jul-05 22:05 
my application works like this,i have a datagrid,a dropdownlist and a submit button,my
dropdownlist contains a list of intervals eg(100-999)(2100-2199),in order for the user to
add to the grid he has to choose an interval from the dropdown,and the id for the row he's
adding has to be in that particular interval.

i have a method/function that checks if the id is in the chosen interval

private void checkvalue(int value)
{
if(value>=100 && value<=999)
{

}
else
{

label.text ="value is not in the required interval"

}...

and the button clickevent


private void ButtSubmit_Click(object sender, System.EventArgs e)

{
checkvalue(num);

//adding to the grid
collection.add(num);
...


}
when i click my submit button ,and into the checkvalue callfunction,if the value is not in Confused | :confused: the required interval ,it prints the text message but still continues to add the row to my grid
i want it to stop after it prints the message and exit without adding the row to my grid,what do
you suggest i do.i hope this is clear enough
thanks
GeneralRe: exit after if statement Pin
Vasudevan Deepak Kumar17-Jul-05 23:11
Vasudevan Deepak Kumar17-Jul-05 23:11 
GeneralRe: exit after if statement Pin
J4amieC17-Jul-05 23:20
J4amieC17-Jul-05 23:20 
QuestionWhat kind of Control is that? Pin
Fitud17-Jul-05 22:03
Fitud17-Jul-05 22:03 
AnswerRe: What kind of Control is that? Pin
Carsten Zeumer18-Jul-05 0:19
Carsten Zeumer18-Jul-05 0:19 
AnswerRe: What kind of Control is that? Pin
dwatkins@dirq.net18-Jul-05 3:40
dwatkins@dirq.net18-Jul-05 3:40 
GeneralRe: What kind of Control is that? Pin
dwatkins@dirq.net18-Jul-05 3:50
dwatkins@dirq.net18-Jul-05 3:50 
Generalrichtextbox appendtext bold Pin
xrado17-Jul-05 22:01
xrado17-Jul-05 22:01 
GeneralRe: richtextbox appendtext bold Pin
maheswara18-Jul-05 1:48
maheswara18-Jul-05 1:48 
GeneralMultilingual Pin
alok_2k317-Jul-05 20:45
alok_2k317-Jul-05 20:45 
GeneralRe: Multilingual Pin
Vasudevan Deepak Kumar17-Jul-05 23:13
Vasudevan Deepak Kumar17-Jul-05 23:13 
GeneralRe: Multilingual Pin
mhmoud rawas18-Jul-05 2:11
mhmoud rawas18-Jul-05 2:11 
GeneralCancel Events Pin
Beringer17-Jul-05 20:38
Beringer17-Jul-05 20:38 
GeneralRe: Cancel Events Pin
leppie17-Jul-05 20:47
leppie17-Jul-05 20:47 
GeneralRe: Cancel Events Pin
J4amieC17-Jul-05 23:27
J4amieC17-Jul-05 23:27 
GeneralRe: Cancel Events Pin
Beringer18-Jul-05 10:22
Beringer18-Jul-05 10:22 
GeneralRe: Cancel Events Pin
maheswara18-Jul-05 2:17
maheswara18-Jul-05 2:17 
GeneralRe: Cancel Events Pin
Beringer18-Jul-05 10:22
Beringer18-Jul-05 10:22 

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.