Preventing Form Minimizing?

Sep 24, 2009

I have two froms when one from is opend it should not be minimized when mouse clicked outside the from like the message box in vb.net

View 1 Replies


ADVERTISEMENT

Minimizing A Form?

Oct 21, 2010

I have a Form inside an application. I need to be able to minimize it from within the code of the Form itself. Any ideas on how to do it? Could not find a minimize function.

View 2 Replies

Minimizing A Modal Form Minimizes Parent Or Main Application?

Jun 2, 2009

Is it possible to have an application where form1 opens a second modal form (form2) and then allows the user to minimized form2 causing the entire application to minimize to the taskbar.(form2 is never shown in the taskbar) A simple example of this is winzip where a second modal progress window is opened which can be minimized?

View 10 Replies

Preventing Multiple Instances Of A Form?

Mar 29, 2009

need help please on how to prevent multiple instances of a form at runtime in vb so tha when a user clicks a button to load a form it loads an if the user clicks the same button again whilst the other instance of the form is running it doesnt open a new one but insted sets focus on the currently running form.br2

View 4 Replies

C# - .NET Expanding An Image While Preventing Clicks On The Form?

Dec 15, 2011

I am developing a WinForm application using VB.NET (I am fluent in C# as well, so post in whatever language) and have run into some trouble. I have an image on my form that I would like to expand when clicked on. I have all that logic set, but I want that when it expands, the user has to click on an 'X' in the upper right corner of the PictureBox to close the expanded image. While the image is being displayed, I don't want the user to be able to interact with the rest of the UI on the form.

Basically I need something along the lines of (pardon me for switching to HTML but I know this works there) creating a div that covers the whole screen, making it opaque, putting another div on top of that, and then putting the image and the 'X' button on top of that. I have tried using opaque forms (didn't work), and panels with a transparent backcolor (didn't work either). I've resorted to taking a screenshot of the form, setting it as the image of a PictureBox, and putting the PictureBox on top of that. However, that seems like way to much overkill.

My current layout is MainForm -> Dynamically create new Form and add it to Main Form -> Add PictureBox to Dynamic Form and set its image to be a screenshot of MainForm -> Add a PictureBox on top of that PictureBox and set its image to the expanded image that I want

View 1 Replies

VS 2008 Preventing Right Click On A Windows Form?

Jul 21, 2010

Im making a maze game where you try to prevent from touching the sides but when you right click you can go through the walls...

View 3 Replies

Preventing Event Handlers From Triggering On Form Load?

Nov 25, 2008

Using VB 2008 Express I have a form in which a number of controls which have event handlers to monitor choices the user is making. The event handlers do work as expected, but the problem I'm having shows up when I load the form.For example, I have:

Code:
Private Sub RadioButton6_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles RadioButton6.CheckedChanged
MsgBox("I got checked!", MsgBoxStyle.Critical)
End Sub

When I load the form in question from the main form of the program, I get the message box, even though the user hasn't actually clicked the radio box. The problem arises when I try to use a call to a function that works fine, as long as the entire form has loaded. Called prematurely, the function fails.How do I solve this so these event handlers don't trigger when the form is being loaded?

View 2 Replies

VS 2010 Stopping Users From Minimizing The Form (even Using "Show Desktop")

Feb 24, 2010

I am writing a little app to take over from Active Desktop as we are using Win7.

I am having problems getting my form to stay open, if the user hits the "Show Desktop" button the form minimises. I need this to stay open at all times in the back ground.

I have disbled the minimise button to stop the users using it.

how I can stop this from happening or if I use a timer to check the windows state it apears normal as it looks like the "Show Desktop" button does not actually minimise the window!

View 2 Replies

FixedToolWindow And Minimizing?

Feb 22, 2012

I have searched now for hours trying to find a solution to this. I am trying to allow a user to minimize a form instead of closing it. I have tried about 5 different things so far in the form_closing event to minimize but have had no success. On another not, is there a way to allow the icon to be displayed? I know I could easily do this by using a different form layout but I prefer the compactness of the FixedToolWindow.

View 2 Replies

MDI Parent Occasionally Not Minimizing?

Apr 6, 2011

I have a MDI parent that opens another form like this:

Dim frm As New Form1
frm.ShowDialog(Me)

That form has a button that, when clicked, does this:

CreateObject("Shell.Application").ToggleDesktop()

The button operates as expected (showing the desktop) most of the time but occasionally does not minimize the MDI parent. All the other windows, including the form above get minimized every time.

View 1 Replies

Minimizing All Windows To Taskbar?

Feb 18, 2009

I have a program that has a main window, and a progression of other windows that all open from each other. I only want the main window to show in the taskbar, and I want to be able to minimize at any window, and have every window minimize to a single item in the taskbarThe problem is: when I set each form's 'SHOWINTASKBAR' to True, every form shows in the taskbar instead of just one. If I set the 'SHOWINTASKBAR' property to False, they don't minimize to the taskbar.

View 1 Replies

VS 2008 Minimizing If Then Statement?

Mar 8, 2010

I have 4 textboxes that a user can input date into, a save button, and another textbox that gets filled automatically depending on what is entered into the 4 text boxes.Lets call the 4 text boxes: Name1, Name2, Name3 and Name4 we'll call the last text box Complete.When you press the save button I want the values to be displayed in the Complete text box like this: Name1="text" Name2="text" Name3="text" Name4="text", BUT, only if they actually have a value.So if they all have some text in them except Name2 then the Complete box would read: Name1="text" Name3="text" Name4="text" - so Name2 wouldn't show up at all.Is there a simple way to put this in an If Then statement without scripting out every possible outcome?

View 8 Replies

Window Keeps Minimizing Onload

May 10, 2012

I have a windows application created using 2005. One of the screens keeps minimizing each time it's loading and I don't know why. when I look at the properties for the form, the window state is set to normal.

I did have the below line of code being used when the user clicked a button on this form because i wanted to minimize the form at that time; however, I've sinced remmed it out because of what's happening now.

View 5 Replies

Minimizing To Task Tray + Notifications?

Aug 16, 2010

Also, once i get that done, How would i make it display notifications?(Similar to that of when someone logs on in MSN messenger.)

View 4 Replies

Progress Bar - Threading - Minimizing Window

Oct 17, 2010

Part of my application deals with creating a number of pivot tables. I pull data from a local database, and store it in a datatable. From here, the data is processed and eventually a pivot table is returned. On small data sets it works well, but on some larger one there is a few seconds of "nothing" until the table is shown.

After a few iterations of trying things to display some form of progress I have ended up with a form with nothing but a progress bar running on it. I spawn a new thread, and run it. It works exactly like I hoped. However, when I call the thread.abort() method to terminate the thread, occasionally, the main form will minimize. I tired having me.show() aftre the .abort() to bring the form into view again, but it appears not to have helped.

Now I understand that it is better practice to have worker background threads, and the main thread for UI, but is there a simple way of ensuring that the main form does not close?

Private Sub LoadProgressForm()
Dim progressForm As New ProgressBar
progressForm.ShowDialog()

[CODE]....

View 2 Replies

VS 2008 Minimizing To System Tray?

Jun 27, 2009

I know how to minmize to systemtray using a button and by the use of a notifyIcon, but i want to minmize to system tray using the minimize button on the title bar of the form. I think it as something to do with the resize event but i dont know what.

View 9 Replies

VS 2010 Freeze Programs From Minimizing?

Feb 23, 2011

I'm making a small version of Spy++ and i would like to recreate the function that finds windows by dragging your mouse over it. Now that is pretty easy but one little annoyance is some windows minimize or loose focus ect when you bring the mouse pointer over them.

I would like to know if you can stop a program from gaining focus or minimizing. And i know i can get the handles of open windows by the EnumWindows function?

View 2 Replies

VS 2010 Minimizing External Applications?

Nov 2, 2009

I am using VS 2010 to create a Mac OSX like dock application.Everything has worked great apart from one of the key features of the dock! So what I want is:When the user clicks the minimize but on any (including external application) it minimize to the dock I have created rather than the windows Task-bar.

View 5 Replies

[vb2008] Minimizing External Application?

Dec 27, 2010

like seen on the web, with both the two following codes:

ShowWindow(Hwnd, SW_MINIMIZE)
ShowWindow(Hwnd, SW_SHOWMINIMIZED)

I can minimize without problems an EXTERNAL application window from it Hwnd.The big problem is that once minimized the application cannot be manually managed: also if I close my program, both left click or right click on the external application taskbar button don't work: I can't maximize it and I can close it only by Ctrl+Alt+Del... why?

View 3 Replies

VS 2010 Automatic Resizing The Application When Maximizing Or Minimizing?

Sep 10, 2011

While the application is running, I want the buttons, text boxes, datagrid, everything thats on the form to resize when the screen is maximized and again resize when its minimized.

View 2 Replies

System.Threading.Timer Fails To Fire After Minimizing Window?

Mar 16, 2009

I have used timers in .Net for a long time now an never had this problem.Start timer to fire every 10 seconds that reads an object and updates the UI using a delegate.This works great until the form is minimized several times, then the timer thread seems to vanish.Anyone come across this before?

Obviously I can roll my own using a thread directly and sleeping it, however this seems like reinventing the wheel when a threading timer class exists already.
Code: Private Sub m_Tmr_Tick(ByVal state As Object)

[code].....

View 5 Replies

Preventing SQL Injection?

Oct 25, 2010

I have this code

UPDATE OPENQUERY (db,'SELECT * FROM table WHERE ref = ''"+ Ref +"'' AND bookno = ''"+ Session("number") +"'' ')
How would I prevent SQL Injections on this?

[code].....

View 8 Replies

Preventing .NET From Saving The Project?

Dec 29, 2009

Is there a way to prevent the VB .NET editor from saving the project whenever IT LIKES TO ? It very annoying ; it so stupid that it saves things that I don't want to and that I didn't ask it to do .If I add a form and then close the editor , when I open the project again , that form is still there though I DIDN'T save it !If I change a declaration from Friend to Public and close the editor without saving , then when I open again the project , my modified code remains modified , though I DID NOT save it !Today I realized that if I delete some controls of a form and then close the Editor , then when I reopen it , the controls are missing for good ! It saved that modification by itself !

View 3 Replies

Preventing A Message Box Repeat

Feb 26, 2012

I've completed an assignment that requires me to search through two listboxes for a particular number.If the number is found, the text on a label changes to a dollar amount, otherwise a message box is displayed letting the user know that the requested number cannot be found.It works well enough, searches through the listboxes, finds the number, and displays the message box when it can't be found.However, the message box shows repeatedly up to five times.After the user clicks "OK" on the fifth appearance, the program crashed and displays the follow message."Invalid Argument = Value of '5' is not valid for 'index'.Parameter name: index."I don't know what's causing this, or how to fix it.I do use the index as a counter at a portion of the program...but I'm not sure where I went wrong with it.[code]Also there are five items in the second listbox...probably has something to do with it.

View 2 Replies

Preventing Application Elevation In .NET?

Sep 20, 2010

I designed an application in vb.net 2005 while using Administrator account on vista.After compiling the application it start requesting for elevation during startup.I will like to prevent this, because the customer is complaning

View 2 Replies

Preventing Coping Project?

Sep 27, 2011

i have develop small project in vb.net and also created setup for it with license key but when i install the project in C drive it can run on another machine with simply copy it how to prevent this piracy

View 5 Replies

Preventing Form2 From Moving?

Jun 28, 2010

I have 2 forms. Form1 and Form2 When the user calls for a new record to be created, Form2 shows modally centered in form1. I have disabled the control box and need to stop the form from being moved by the mouse. I do not see (Movable) in the properties list.

View 3 Replies

Preventing JIT Debugger From Popping Up

Nov 15, 2011

I have a program, I have published it, and I have been actually using it in my PC. Whenever it encounters an error, the JIT debugger comes out. How do I prevent it from popping up using try...catch blocks, or is there any other ways or code on how to do this?

View 3 Replies

Preventing Opening Another Window?

Dec 9, 2009

<VB.NET 2008>I created a MDI frame and I try to open a Winform by clicking menu.I do not want to allow opening same winform which is already opened by user.How do I check whether the winform is already opened or not?

View 5 Replies

Preventing Printing Of WebBrowser?

Dec 12, 2010

I am trying to prevent the user from activating a Print command for the content displayed in a WebBrowser. If the user hits Ctr P, the print dialog appears. I would think I have to trap this, but am not sure how to do this. There is no KeyPress event in the browser, and using the keypress event on the Form does not appear to trigger when text is typed into browser.

View 3 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved