Click here to Skip to main content
15,887,027 members
Home / Discussions / C#
   

C#

 
Questionneed help..... How to link the current website that i am browsing to the textbox ? Pin
YiXiang_895-Mar-09 15:04
YiXiang_895-Mar-09 15:04 
AnswerRe: need help..... How to link the current website that i am browsing to the textbox ? Pin
_Maxxx_5-Mar-09 15:12
professional_Maxxx_5-Mar-09 15:12 
GeneralRe: need help..... How to link the current website that i am browsing to the textbox ? Pin
YiXiang_895-Mar-09 15:19
YiXiang_895-Mar-09 15:19 
GeneralRe: need help..... How to link the current website that i am browsing to the textbox ? Pin
Christian Graus5-Mar-09 15:56
protectorChristian Graus5-Mar-09 15:56 
GeneralRe: need help..... How to link the current website that i am browsing to the textbox ? Pin
YiXiang_895-Mar-09 16:13
YiXiang_895-Mar-09 16:13 
GeneralRe: need help..... How to link the current website that i am browsing to the textbox ? Pin
_Maxxx_5-Mar-09 17:41
professional_Maxxx_5-Mar-09 17:41 
GeneralRe: need help..... How to link the current website that i am browsing to the textbox ? Pin
YiXiang_895-Mar-09 18:05
YiXiang_895-Mar-09 18:05 
QuestionHelp on CancelButton property? Pin
Wes Jones5-Mar-09 14:41
Wes Jones5-Mar-09 14:41 
Hi,

n00b style question time... In my form's CancelButton property, I've set it to btnCancel, which is a button on my form, of course.
In the implementation, if I detect changes, I prompt the user if they're sure about discarding changes, and if they say no, the idea is to leave the form open.
Even though I'm not calling Close(), the form still closes anyway, probably as a result of it being associated w/ the CancelButton property. How can I cancel this behavior so that the screen remains open if they don't want to discard changes?

my btnCancel_Click(..) func is implemented like so:

private void btnCancel_Click(object sender, EventArgs e)
{
  if( HasChanges() )
  {
     if( Yes == MgBox: "You sure 'bout that?") )
        this.Close();
     else
        return;
  }
   else
       this.Close();        
}


Thanks!
AnswerRe: Help on CancelButton property? [modified] Pin
Xmen Real 5-Mar-09 15:04
professional Xmen Real 5-Mar-09 15:04 
GeneralRe: Help on CancelButton property? Pin
Wes Jones5-Mar-09 16:01
Wes Jones5-Mar-09 16:01 
AnswerRe: Help on CancelButton property? Pin
_Maxxx_5-Mar-09 15:07
professional_Maxxx_5-Mar-09 15:07 
GeneralRe: Help on CancelButton property? Pin
Wes Jones5-Mar-09 16:01
Wes Jones5-Mar-09 16:01 
QuestionFile Summary Info??? Pin
S K Y5-Mar-09 13:44
S K Y5-Mar-09 13:44 
AnswerRe: File Summary Info??? Pin
Yusuf5-Mar-09 14:46
Yusuf5-Mar-09 14:46 
GeneralRe: File Summary Info??? Pin
S K Y5-Mar-09 14:55
S K Y5-Mar-09 14:55 
GeneralRe: File Summary Info??? Pin
Yusuf5-Mar-09 16:45
Yusuf5-Mar-09 16:45 
AnswerRe: File Summary Info??? Pin
Dragonfly_Lee5-Mar-09 18:01
Dragonfly_Lee5-Mar-09 18:01 
GeneralRe: File Summary Info??? Pin
S K Y5-Mar-09 21:11
S K Y5-Mar-09 21:11 
GeneralRe: File Summary Info??? Pin
Dragonfly_Lee5-Mar-09 21:51
Dragonfly_Lee5-Mar-09 21:51 
GeneralRe: File Summary Info??? Pin
S K Y8-Mar-09 21:14
S K Y8-Mar-09 21:14 
GeneralRe: File Summary Info??? Pin
Dragonfly_Lee8-Mar-09 22:25
Dragonfly_Lee8-Mar-09 22:25 
Questionpermutation Pin
lakshmanriz5-Mar-09 13:08
lakshmanriz5-Mar-09 13:08 
JokeRe: permutation Pin
Yusuf5-Mar-09 13:22
Yusuf5-Mar-09 13:22 
AnswerRe: permutation Pin
Luc Pattyn5-Mar-09 13:27
sitebuilderLuc Pattyn5-Mar-09 13:27 
AnswerRe: permutation Pin
Christian Graus5-Mar-09 13:42
protectorChristian Graus5-Mar-09 13:42 

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.