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

C#

 
GeneralRe: Track two types of values within one variable Pin
Paul Conrad28-Jul-12 9:32
professionalPaul Conrad28-Jul-12 9:32 
AnswerRe: Track two types of values within one variable Pin
Northcodedotno29-Jul-12 8:36
Northcodedotno29-Jul-12 8:36 
AnswerRe: Track two types of values within one variable Pin
BobJanova29-Jul-12 23:16
BobJanova29-Jul-12 23:16 
GeneralAdding databound ComboBox into cells of a DataGridView Pin
Dewald27-Jul-12 2:11
Dewald27-Jul-12 2:11 
QuestionHow to make GRIDVIEW as Rounded Corners Pin
mukusingh27-Jul-12 0:33
mukusingh27-Jul-12 0:33 
AnswerRe: How to make GRIDVIEW as Rounded Corners Pin
Richard MacCutchan27-Jul-12 1:57
mveRichard MacCutchan27-Jul-12 1:57 
AnswerRe: How to make GRIDVIEW as Rounded Corners Pin
AmitGajjar27-Jul-12 17:54
professionalAmitGajjar27-Jul-12 17:54 
Questionrefresh result in MDI child Pin
Jassim Rahma27-Jul-12 0:05
Jassim Rahma27-Jul-12 0:05 
I have frmSearchResult and showing it from frmMain like this:

C#
is_form_exists = false;

foreach (Form search_form in this.MdiChildren)
{
    if ((string)search_form.Tag == "BROWSE_PATIENTS")
    {
        search_form.Activate();
        is_form_exists = true;
        break;
    }
}

if (is_form_exists == false)
{
    frmSearchResult SearchResultForm = new frmSearchResult(public_var);
    SearchResultForm.Tag = "BROWSE_PATIENTS";
    SearchResultForm.MdiParent = this;
    SearchResultForm.Dock = DockStyle.Fill;
    SearchResultForm.find_what = "FILE";
    SearchResultForm.find_text1 = (sender as TextEdit).Text.Trim();
    SearchResultForm.find_text2 = null;
    SearchResultForm.Show();
}

and in frmSearcResult_Activate event I am running a coded to populate data.

My problem now, if the form already exist and I am passing vartiable from my frmMain to it then it will not refresh but it will just activate the frmSearcResult form.

How can I solve this?
AnswerRe: refresh result in MDI child Pin
Eddy Vluggen27-Jul-12 0:09
professionalEddy Vluggen27-Jul-12 0:09 
GeneralRe: refresh result in MDI child Pin
Jassim Rahma27-Jul-12 0:28
Jassim Rahma27-Jul-12 0:28 
GeneralRe: refresh result in MDI child Pin
Eddy Vluggen27-Jul-12 0:47
professionalEddy Vluggen27-Jul-12 0:47 
GeneralRe: refresh result in MDI child Pin
Jassim Rahma27-Jul-12 2:52
Jassim Rahma27-Jul-12 2:52 
GeneralRe: refresh result in MDI child Pin
Eddy Vluggen27-Jul-12 2:59
professionalEddy Vluggen27-Jul-12 2:59 
QuestionHow can I attach wndproc to another window and do something when certain wm_event appears ? Pin
Member 964871826-Jul-12 23:57
Member 964871826-Jul-12 23:57 
AnswerRe: How can I attach wndproc to another window and do something when certain wm_event appears ? Pin
Eddy Vluggen27-Jul-12 0:52
professionalEddy Vluggen27-Jul-12 0:52 
GeneralRe: How can I attach wndproc to another window and do something when certain wm_event appears ? Pin
Member 964871827-Jul-12 1:54
Member 964871827-Jul-12 1:54 
GeneralRe: How can I attach wndproc to another window and do something when certain wm_event appears ? Pin
Eddy Vluggen27-Jul-12 1:59
professionalEddy Vluggen27-Jul-12 1:59 
GeneralRe: How can I attach wndproc to another window and do something when certain wm_event appears ? Pin
Dave Kreskowiak27-Jul-12 2:13
mveDave Kreskowiak27-Jul-12 2:13 
GeneralRe: How can I attach wndproc to another window and do something when certain wm_event appears ? Pin
Member 964871827-Jul-12 3:54
Member 964871827-Jul-12 3:54 
GeneralRe: How can I attach wndproc to another window and do something when certain wm_event appears ? Pin
Dave Kreskowiak27-Jul-12 15:28
mveDave Kreskowiak27-Jul-12 15:28 
QuestionStrange behaviour on C# app in Windows 7... Pin
shiokbarnabas26-Jul-12 20:09
shiokbarnabas26-Jul-12 20:09 
AnswerRe: Strange behaviour on C# app in Windows 7... Pin
Dave Kreskowiak27-Jul-12 2:25
mveDave Kreskowiak27-Jul-12 2:25 
GeneralRe: Strange behaviour on C# app in Windows 7... Pin
shiokbarnabas29-Jul-12 22:01
shiokbarnabas29-Jul-12 22:01 
GeneralRe: Strange behaviour on C# app in Windows 7... Pin
Dave Kreskowiak30-Jul-12 1:59
mveDave Kreskowiak30-Jul-12 1:59 
GeneralAccess to the path is denied Pin
Arunkumar.Koloth26-Jul-12 3:35
Arunkumar.Koloth26-Jul-12 3:35 

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.