.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

maximize, minimize and close buttons on the form should be invisible

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


I do not want to display the maximize, minimize and close buttons on the form.

How can i do this?

Are there any properties to make them invisible on the form?



View Complete Post

More Related Resource Links

How do I trap the minimize and maximize and restore events in a windows form?

Please help!   I can't figure out what event is fired when a user presses the minimize button on a windows form.  It doesn't appear to be in the list of event  in the events pane for the form.  Using VS2005 c#.   Thanks

Multi form Application - Restore, minimize, maximize

Hello, I have a Windows forms application with 4 forms. Only one of the forms is visible at a time. When I maximize/ resize/ reposition Form1 into State1, and then switch to Form2, Form2 is in State2. I would like to see Form2 in State1 -- that is, after switching to the second form, it should be of the same size and at the same position as the first form. Can somebody please suggest the best way for doing this?

Form maximize/minimize click event


I need to know when the maximize or minimize button has been clicked. I am saving the window state so it is in the same state as when the user closed the app. Anyone know how to do this?




single form multiple buttons in MVC


In a single page  has two buttons , ddown and tempname.

I wrote two actionresult separetly each one for ddown and tempname.

I need one is post and another one is get method. so i gave like

1. Get Method


        [AcceptParameter(Name = "button", Value = "tempname")]
        public ActionResult ddown_tempname(string statusName, NewsLetterAdminViewModel viewModel)

return View();



2.Post Method


        [AcceptParameter(Name = "button", Value = "ddown")]
        public ActionResult ddown(string statusName, string button, NewsLetterAdminViewModel viewModel, FormCollection collection)

return View();



if i call the post method its worked well. but if i call the get method, the code does not execute. the brea

center two buttons horizontally in form in C#

I have two buttons that are side by side. I want to center them such that they are equal distance from the left and right sides of the form. I want to do this at design time. This was easy to do in VB6. Not sure how to do this in C#.  If this isn't easily done at design time, how do I do this at runtime?      

InfoPath form web part stops the close on submit

I have successfully published HTML browser enabled InfoPath 2010 forms to form libraries in SharePoint 2010. Users can navigate to the libraries and click new docuiment and fill out and submit forms, and the behavior of submit is as programmed in the form namely I have a concat rule for form name and chose action after submit to close the form with a success message. The problem I am seeing is a little abstract so stay with me while I explain. I'm hosting a number links to web part pages with the infopath web part on them. I use a links web part to aggrigate about 16 forms links on a single page. Users can successfully click on a link, are migrated to the web part page that has the form displayed in the infopath web part and all is well till they click the submit (on the ribbon, or custom button or whatever) The form does successfully get saved into the form library, but the form does not close. I need to make this process very simple for users without any training expended on the process. I'd like to shift focus to the previous web page, or close the form or something dramatic visually to show the user that they have completed the form fill out, and allow them to fill another form. Codebehind examples gratefully accepted! /Robin    

Confirmation buttons in a form.

Hi, I'm looking to change the destination of the browser when it is re-directed by an OK or CANCEL button in a form - e.g. I need the browser to re-direct to a page with a document list rather than a home page. Thanks

Custom Edit form - close modal dialog and navigate to page

Hi, I created one custom edit form for my document library, replaced default save and cancel buttons with input buttons and added the form action to them. Then I set my page as default edit form. When I click edit button, my custom form opens in modal pop up. When I try to save the item by clicking new save button, item gets saved but pop remains as it is. Now, I want the modal pop up to get closed and navigate to page other than the parent page with some parameters after I click save button. How can I achieve this? Thanks!!

How to close a Form...

Hi all, i recently started C++.NET(CLR) and i cant seem to get Form1 to close after Form2 is loaded... after clicking ok button on Form1, Form2 is loaded properly but then i want Form1 to go away.. i tried almost everything, i included the header file of Form1 into Form2 but that just gave me around 6 errors saying that the instance i created of Form2 in Form1 was undeclared, then i removed that and just tried creating an instance of Form1 in Form2 load method but that also just gave errors... Help plz =/

how to close a form using Jquery

(1) how to Close a Parent Form2 how to close a child form(iframe)

how to close a form,subform,iframe and everthing using jquery


how to close a form,subform,iframe and everthing using jquery

Please help Minimize and Maximize Button

Ello Guys!!! This is the Scenario... I have an kiosk application that have 1 button and an internet explorer running at the back of my application or minimized. What i want is when i click the button the internet explorer will be maximized... can some1 can guide me on right direction T_T

how to close a parent form


how to close a parent form

IE 9 Beta & InfoPath 2007 Form Radio Buttons Not Working



Has anyone else come across the IE9 bug that causes the radio buttons in the InfoPath 2007 forms to stop working (i.e. unselectable)?

Did you find a workaround (other than not to use IE9!)?



close popup form and open again

when i click a button, then prompt another form and then i click close button at the upper right corner of the form
the popup form is closed
then i click a button again, then prompt a popup form again
but now when is popup form is prompt at second time,it always trigger form_closing event,why?
how to prevent it?

2 buttons, 1 form, 1 error



Ok, newbie question here...

I have a form with two submit buttons, each required to fire a different event.

Basically the form loads, some data is input by the user, and the first submit button is clicked. The btnSubmit.OnClick event runs and if it meets some condition, a gridview is displayed, and user is asked to confirm their selection before proceding. That's when btnConfirm.OnClick needs to run.

But it won't compile and I get the error...

error BC30506: Handles clause requires a WithEvents variable defined in the containing type or one of its base types.
Validation Complete

I don't particularly want to post to another page - I'd like to keep it all on a single page.

Any ideas?



Programatically close web enabled form after submit


Hi all

I have an InfoPath 2007 form, which is web enabled and deployed to Forms Server 2007.

On the form I have a button. What I want to happen when the button is pressed is this:

1. My custom code behind should be executed. The custom code calls an external aseembly (common to ALL my InfoPath forms) which has a method that includes a dataconnection.Execute which will submit the form.

2. Close the form IF the submit went well.

Currently, I have a code behind and a rule on the button. What I am trying to get working is that the code behind sets a status flag on the form to "Success" and then executes the data connection. If an exception is thrown, I set the status flag to something else ("Failed") and rethrow the exception. In the rule of the button I then check this status field in the condition of the rule and if it is set to Success I close the form. What happens is, that the form is not closed uppon succesfully execution of the data connection. I am not sure in what order the code is run; Is the rule fired first or is the .NET code behind? It appears that the .NET code IS fired... and if the form was closed in the rule, then I wouldn't expect that to happen. So that means the rule is fired last. On the other hand the value set in one of the fields is not present upon validation of the condition of the rule, so tha

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