Disable Excel Maximize Button?
Sep 10, 2010This is my code to disable excel maximize button:
Option Explicit
Declare Function GetSystemMenu Lib "user32" (ByVal hWnd As Long, ByVal bRevert As Long) As Long
[code].....
This is my code to disable excel maximize button:
Option Explicit
Declare Function GetSystemMenu Lib "user32" (ByVal hWnd As Long, ByVal bRevert As Long) As Long
[code].....
Is there a easy way to maximize a window in VB when the maximize button is pressed so that everything that is contained in the Window (Forms, Panels) will also automatically resize to the screen size?
View 4 RepliesHow can I disable the form maximizing when double clicking the titlebar?
View 4 RepliesI'm attempting to recreate the windows maximize/restore button, where when clicked it will either send the window to its previous state or put the window in full screen BUT fitted with the taskbar visible.
View 7 Repliesto disable right click and to disable the start button and task bar?
View 4 RepliesI cannot begin to explain how often I have tried to remove the Maximize button from the top of my form window.. I know that it can be disabled via properties, also that it can be removed if I disable both the maximize and minimize buttons, BUT I need the minimize button, just not the maximize button
View 10 Repliesi made a borderless form and when i use my maximize button it goes fullsrceen and covers the taskbar how do i overcome
View 5 RepliesHow do I remove the maximize button from a form? I've already disabled it but it still shows up, it just doesn't work. I want a form with only the close and minimize buttons. It's a Windows Form Application and I'm using Visual Studio 2010.
View 3 RepliesI Have Made A Program That I normally Want To Be Small (520,680). But for someone that has trouble seeing it and wants to expand it, I cannot figure out how to make everything on it also expand when the Forms maximize Button is clicked. Everything stays the same size and moves to the right, top corner.
View 11 RepliesI want to maximize my form size when i maximize my window. means when i double click on window to maximize then my form also get maximize with window, i used dock property bt still not getting proper result.
View 16 RepliesI am currently working on a program in VB that is 480,600 and am using a panel with a picturebox inside of it so that I can use scroll bars to view a chart in the picturebox since my form will be so small. Since viewing a large chart is pretty irritating using scroll bars to some, what properties can I enable or disable to get the panel and picturbox to expand also when the Form Maximize button is clicked rather than staying the same size up in the top corner?
View 2 RepliesIs there is any option to send a message to a window to "press" on the maximize button? I thought using the sendmessage API but I don't really know how, I alreday got the window handle, the problem is how to send the message?
View 2 Replies[code] Actually,I m doing notepad application,my problem is when ever click the form maximize button automatically form is resized .. same like that my richtextbox control also maximized. this is the my scenario.
View 1 RepliesI has some vb.net code to export some data into Excel format. I had set one of the column to date format. But I want to avoid user from changing the format because they can easily right click the Excel cells, and choose Format Cells. How can I disable this option in Excel via vb.net code so that user will always follow my format?
worksheet.Cells(intCnt, 19).NumberFormat = "dd/MM/yyyy;@"
worksheet.Cells(intCnt, 19).Style.Locked = True
I use the above code to locked it but seems to be not working.
How can I disable Save As button, I can open Ms Excel through vb net but the thing is I also want to disable the 'save as' as the Ms Excel Open.But not in Macro.. Here's my code:
Imports Excel = Microsoft.Office.Interop.Excel
Dim oXL As Excel.Application
Dim oWB As Excel.Workbook
[code].....
I have an application that browses through Excel-files, changes color in some cells if they are in a wrong format etc.When my application is saving the changed file I get this alert about compatibility issues that can occur, and this alertbox has to be agreed or cancelled to move on to the next file.
How can I disable this compatibility check programmatically? Or is there any way to ensure there are only Excel 2003 compatible colors in the document before saving?
I have a button called "btnContinue". then, i have a textbox beside it for the user to enter a name. If the user has not entered anything, i want the button to be disabled from being clicked. But once the user entered a character into the textbox, the btnContinue will be enabled for clicking.
View 8 RepliesI have developed a Windows application using C# 4 and SQL Server 2008,
My application works very well.This application is using by six users at the same time.
I want that, whoever click button first from these six users, the button on other 5 user's PC must be disable till the user finishes adding data.. then it must be enabled...
something..
btn.disable = true;
data saved
btn.disable = false;
so, it cant be duplicated..
I have a vb.net based windows application, where when "GO" button is clicked a bunch of data is loaded into DB. So in my application as soon as "GO" button is clicked I want to just disable it and would like to enable it back when the uploading has completed.Now in my specific method for btnGo_Click() I have:
btnGo.Enabled = False
as first line and
btnGo.Enabled = True
[code]....
How can i disable a button after i click it and shows another form, and enable it after i close the form that was opened.
View 3 RepliesYes is There AnyWay To Disable The Start Up Button Like This:
Yea like IS there A Source Code To Disable It? _-THxxxxx
Ok Im making a webbrowser and I need transparent buttons and they are kinda transparent its just they still have a backcolor. Is there any way I can disable the button backcolor?
View 4 Replies1- I need to de-activate or make the button invisible after it was used once so the user can not return and use the button again.
2- What is the code to create an exit button. This is additional to the X button in the upper right corner of the Form.
I would like to disable a button. Eg. I will press a button and after 3 times the button is disable. Now for that I used this
[Code]...
Now, when I closed the program and re-opened it, the button was enabled again. How could I make that button, to be disabled forever after 3 presses.
How can I disable the Excel export option when I generate a report, via the ReportViewer, in my winforms application? In particular, I want to hide the toolbar button that refers to Excel output/export task, and not .the one that handles to the pdf export option.
View 3 RepliesI have an application that browses through Excel-files, changes color in some cells if they are in a wrong format etc.When my application is saving the changed file I get this alert about compatibility issues that can occur, and this alertbox has to be agreed or cancelled to move on to the next file. How can I disable this compatibility check programmatically? Or is there any way to ensure there are only Excel 2003 compatible colors in the document before saving?
View 13 Replieshow can I disable the Page_Load sql query if the button1 is clicked.
Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim StartDate As Date = txtStartDate.Text
[Code].....
How would I go about disabling a button while the ListView is empty?
View 2 RepliesI want to Disable Close command on System Menu and Title bar.I wrote this code by get Error on Line that Highlithed by Red[code]...
View 2 RepliesCan we disable the close button on a form ? I can remove the minimize/maximize, but cant find anyway to disable the close button.
View 11 Replies