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

C#

 
AnswerRe: How i can refresh CD/DVD Drive ? Pin
Abhinav S11-Feb-10 22:49
Abhinav S11-Feb-10 22:49 
GeneralRe: How i can refresh CD/DVD Drive ? Pin
Nematjon Rahmanov12-Feb-10 0:08
Nematjon Rahmanov12-Feb-10 0:08 
QuestionWhat invoked the getformattedvalue function in datagridviewtextboxcell? Pin
HideIvy11-Feb-10 21:30
HideIvy11-Feb-10 21:30 
AnswerRe: What invoked the getformattedvalue function in datagridviewtextboxcell? Pin
HideIvy11-Feb-10 22:44
HideIvy11-Feb-10 22:44 
Questiondisplay MailMessage Pin
paschka7611-Feb-10 21:02
paschka7611-Feb-10 21:02 
AnswerRe: display MailMessage Pin
AspDotNetDev11-Feb-10 21:51
protectorAspDotNetDev11-Feb-10 21:51 
AnswerRe: display MailMessage Pin
i gr811-Feb-10 22:48
i gr811-Feb-10 22:48 
QuestionI know how to clear textboxs on my form at one time but what if they are bound? Pin
tonyonlinux11-Feb-10 20:28
tonyonlinux11-Feb-10 20:28 
I understand I can do the following to remove text from controls in this case the textbox
private void add_Button_Click(object sender, EventArgs e)
        {
            foreach (Control control in recordinput_groupbox.Controls)
                    {
                           if(control.GetType() == typeof(TextBox))
                           {
                               //control.DataBindings.Clear(); 
                               control.Text = string.Empty;
                                 
                           }
                    }


but what if they are bound? Notice the control.Databindings.clear();
that works but the problem is after I get done updating records or adding/ I want to reload the data so the user can select another item if they wish via the bindingnavigator to update. when the databinding is cleared then obviously it is no longer bound.

Is it wise to simply make a function to bind the controls back after the update or is there a easier better way of handling this? I tried to search on here and good for it but It never really addressed the per say correct way.
thanks for your time.
AnswerRe: I know how to clear textboxs on my form at one time but what if they are bound? Pin
AspDotNetDev11-Feb-10 21:13
protectorAspDotNetDev11-Feb-10 21:13 
GeneralRe: I know how to clear textboxs on my form at one time but what if they are bound? Pin
tonyonlinux11-Feb-10 21:19
tonyonlinux11-Feb-10 21:19 
Questionuniquely identifies a computer Pin
AndieDu11-Feb-10 19:10
AndieDu11-Feb-10 19:10 
AnswerRe: uniquely identifies a computer Pin
OriginalGriff11-Feb-10 21:54
mveOriginalGriff11-Feb-10 21:54 
GeneralRe: uniquely identifies a computer Pin
AndieDu14-Feb-10 16:07
AndieDu14-Feb-10 16:07 
AnswerRe: uniquely identifies a computer Pin
harold aptroot11-Feb-10 23:28
harold aptroot11-Feb-10 23:28 
AnswerRe: uniquely identifies a computer Pin
#realJSOP12-Feb-10 0:09
mve#realJSOP12-Feb-10 0:09 
GeneralRe: uniquely identifies a computer Pin
AndieDu14-Feb-10 16:45
AndieDu14-Feb-10 16:45 
GeneralRe: uniquely identifies a computer Pin
#realJSOP15-Feb-10 1:41
mve#realJSOP15-Feb-10 1:41 
QuestionHow to prevent from open the same form Pin
nuttynibbles11-Feb-10 19:03
nuttynibbles11-Feb-10 19:03 
AnswerRe: How to prevent from open the same form Pin
i gr811-Feb-10 20:06
i gr811-Feb-10 20:06 
AnswerRe: How to prevent from open the same form Pin
thatraja11-Feb-10 20:22
professionalthatraja11-Feb-10 20:22 
GeneralRe: How to prevent from open the same form Pin
nuttynibbles11-Feb-10 23:42
nuttynibbles11-Feb-10 23:42 
GeneralRe: How to prevent from open the same form Pin
OriginalGriff11-Feb-10 23:58
mveOriginalGriff11-Feb-10 23:58 
QuestionMultiple Resize events, how to prevent them. Pin
Douglas Kirk11-Feb-10 18:59
Douglas Kirk11-Feb-10 18:59 
AnswerRe: Multiple Resize events, how to prevent them. Pin
OriginalGriff11-Feb-10 21:59
mveOriginalGriff11-Feb-10 21:59 
QuestionNightmare with Regular Expression Pin
newproger11-Feb-10 16:19
newproger11-Feb-10 16:19 

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.