.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

stop flickering when form child appear like normal window

Posted By:      Posted Date: October 07, 2010    Points: 0   Category :Windows Application


I have created an application with a mdiParent and some mdichilds that when are opened they the forms are set like normal window and FormBorderStyle has value 'None'. When I call any child that is set like this, the application seems to flicker (it seems that for a very short time the child appear like a normal window wit the title bar and minimize, maximize and close button) and very quick it's ok (the title bar is disapear and the child take his place on the mdiParent). But I want to stop this flickering it is very annoying.

Can somebody tell me how can I do that? I mention that I have created this application in dot.net

Thank you in advance

View Complete Post

More Related Resource Links

way of calling "javascript function of parent window from child window."

The article way of calling "javascript function of parent window from child window." was added by raja.s on Sunday, June 06, 2010.

Hi,Here i am going to explain how to call the javascript function of a parent window from the child window(pop-Up).Some may know before reading this post.Parent Java Script Function:script language="Javascript" type="text/javascript">

click a button to print current window form

how can i click a button to print current window form? i don't know how to set and define something? anyone give me example for my reference   thanks.

Javascript required to get a pop up window from new form.

Hello Team, Any help regarding this would be helpful. I have a new form. In that form when i go to the first field...it should open up a pop up window which would have a note in that. How is this possible. I think through javascript this can be possible. So please help me. Thanks in advance.

Delphi Win32 MDI Parent with C# Windows Forms child form

I have created an assembly containing a form that i want created as a MDI child form in a Delphi Win32 application's MDI parent control. I can create the .NET form fine from my Delphi code. I can even use the Delphi window handle to let my .NET form be a child in the Win32 application by using the SetParent API. However minimizing the child form makes it disappear (instead of the regular minimize action for MDI children), and it also doesn't cause the MDI container to get scroll bars when you drag the child form under the edge of the MDI container. I have the feeling that the child form is not yet correctly aware that it is a MDI child. For instance, its MdiParent property is null. And i read somewhere that i might need to call some more Win32 API"s to hook everything up correctly. I can't, however, for the life of me not find which ones to call, and where to do it. Is there anyone here that is well versed in hooking up managed Windows Forms with native Win32 applications that can lend a helping hand?

Timeout child window problem

The users of our site have reported a problem where when you have a child window open and click around in the main window, the child window will time out even though there is activity in the main window. We use an encryptedFormsAuthenticationTicket and http cookie that expires after a timeout period using Response.Cookies.Add(authCookie). Is there an obvious problem from this description? We are using the back button prevention like so:   Response.AppendHeader("Cache-Control", "no-cache") Response.AppendHeader("Cache-Control", "private") Response.AppendHeader("Cache-Control", "no-store") Response.AppendHeader("Cache-Control", "must-revalidate") Response.AppendHeader("Cache-Control", "max-stale=0") Response.AppendHeader("Cache-Control", "post-check=0") Response.AppendHeader("Cache-Control", "pre-check=0") Response.AppendHeader("Pragma", "no-cache") Response.AppendHeader("Keep-Alive", "timeout=3, max=993") Response.AppendHeader("Expires", "Mon, 26 Jul 1997 05:00:00 GMT")  Could this cause timeout problems in child windows? Any suggestions?

Call parent window Page_Load when child closes

 I have a popup window that I open using  window.showModalDialog('Popup.aspx'); The client enters some information and then clicks a 'Save' button on the Popup window.  At that point I want the popup window to close and refresh the parent window which I though would execute the page_load event on the parent window. Here is the code that I have for the button click on the popup window. window.returnValue = true; window.close(); The popup window closes and it seems like the parent refreshes, but the page_load event on the parent is not called.  I put in a breakpoint to verify.  I need the page_load event to execute.   Thanks in advance for your help, JZ

accessing form view binded control from child control

I am using a form view control which has two binded textbox. Now at this level it works fine and the textboxes show the values from database. But when i insert a panel inside the form view and move these two textboxes inside the panel, they dont show any values. What could be the reason for this? Thanks!

how to open a subform model Form,Sub Window form using jquery that save the data ajex

how to open a subform model Form,Sub Window  form using jquery that save the data ajex

Need help on Main Form Open Child Form

Hi, I've 2 form which is frmA and frmB. frmA have a 1 button and 1 label named Button A and Label1. frmB have a 1 button named Button B. frmA is a Main Form. frmB is a Child Form for Form A. My objective is when frmB is closed, then Label1 in frmA showing the value. My code in frmA as follow public partial class frmA : Form { public frmA() { InitializeComponent(); } private void button1_Click(object sender, EventArgs e) { frmB oFrm=new frmB(this); oFrm.ShowDialog(); } public void PerformRefresh() { label1.Text = DateTime.Now.ToLongDateString(); } } My code in frmB as follow, public partial class frmB : Form { frmA _owner; public frmB() { InitializeComponent(); } public frmB(frmA owner) { _owner = owner; this.FormClosed+=new FormClosedEventHandler(frmB_FormClosed); } private void frmB_FormClosed(object sender, FormClosedEventArgs e) { _owner.PerformRefresh(); } } At this level, i can call function in frmA from frmB after closed event. My problem is when Button A in frmA clicked, frmB not showing like frmB as per design. It's display a windows without Button B. I'm stuck. Really need help

I want to open a web page (.aspx page,child window from parent window) without titlebar how can we d


Hi All,

i have some special requirement like , i want to open a web page (child page) without a title bar for this i am following the below approach but it is not working, to open child window from parent window i am calling this javascript function to the of href of anchor tag...

function OpenChildWindow()

but the child window is opened with titlebar, but i don`t want any titlebar.

the titlebar property i was used in the above method is not working why?

how can we do this, can anybody help me...


Burepalli V S Rao.

Problem on opening child window on third time



I have a button that having an attributes as follow:

btnAddColumn.Attributes.Add("onClick", "selectDetailColumn('Type1',1); return false");

It will open a child window with the following assignment.

<script language="javascript" type="text/javascript">

        function selectDetailColumn(area, testType) {
            scLeft = (window.screen.availWidth - 600) / 2;
            scTop = (window.screen.availheight - 700) / 2;
            window.open('Details.aspx?, 'PopUp', 'width=600,height=700,top=' + scTop + ',left=' + scLeft + ',toolbars=no,scrollbars=no,status=no,resizable=no');

On this details.aspx, I have button to close the form as below:

<asp:Button ID="btnClose" runat="server" Width="80" Text="Close" OnClientClick="window.close();" />

What I did is when I open the child window, I will click on the Close button. I will repeat this process again. And on the third time I open the child window again, it wont open it, but instead the page "stays loading...".

Seems like the IIS is not responding.

C#Net2008 Window Application - F5 launch wrong FORM


Hullo Good Friend,

I encounter another interesting problem.

I need your help. Please help me.

I am writing a new C#Net2008 Window Application. The first FORM that was created is FrmSales.cs

Then I created another FORM FrmMainMenu.cs which is the Main Menu form with 6 command buttons to load other forms.

When I pressed F5 to launch the application, FrmSales.cs appears instead of FrmMainMenu .

What must I do to make FrmMainMenu the initial form to lauch. Which provide menu options for the user to select and load other specific FORM.

i want to disable the entire parent window when the child window is opened?



 i am using the master page from the master page i am opening the child window.so, when ever i opened the child window i want to disable the entire parent window(all the controls present in the parent page) .how can we do it.


Burepalli V S Rao.

Creating a Child Window in WPF GRID



I'm using a grid that has a WindowsFormHost element in it and in the WindowsFormHost I have a win32 ActiveX control running this is working fine. I would like to place a set of WPF controls over the ActiveX object, I understand that the ActiveX object will always be the top most item so in order to place my controls on top I will need to create a separate window and put the controls in to it. I have looked at using a popup but would have to write extra code to get it to follow the main window if it's position changes and also size. What I'd like to do is create a new window and make it a child of the Grid to display the controls in. My questions are:

1) Can I attach the window as a child of the grid?

2) Would I need to change the zorder of the child window to ensure it was above the activex control?

3) Example code if possible would help.



How to stop Hibernation and suspend by .NET at Window CE


How to stop Hibernation and suspend by .NET at Window CE

I want "when my problem is running, PDA do not have sleep mode or Hibernation.

Please, reply my question.


ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend