Force User To Use The Topmost Form

Dec 10, 2011

I'm programming a Minesweeper clone in Visual Studio 2010, with VB.NET, as a Windows Form Application, and I'm having trouble with the Game Won and Game Lost forms. When I show those forms, I want the game form to still be visible, so that the player can see where the mines were, but I don't want the game form to be enabled until the Game Won or Game Lost form is closed. Exactly like Windows Minesweeper does when you win or lose.

[Code]...

View 1 Replies


ADVERTISEMENT

Trap Mouse In Form - Force The User To Pick One Of These Buttons?

Jun 26, 2009

I want to create a simple form with 2 buttons, one to end the program and one to log the user off, I have done this successfully and have everything looking and working as it should. However, I want to force the user to pick one of these buttons before using the machine, my idea was to trap the mouse in the form so the only thing the user can do is select a button. My question is how can I do this?

View 7 Replies

TopMost Form - Messages Form Would Be Hidden By The Main Form

Nov 20, 2009

I have a tool window that I want to stay above the main application form, but not stay on top of all windows forms. Similar to the floating properties window for visual studio - it always stays on top of the main VS window, but if I select another program, like internet explorer, the floating properties window will be behind internet explorer.

What I have is an application that has several forms that may be displayed at the same time. I have a Messages form that displays messages generated by the code in the form, that gives the status of the application. Obviously, the user would not normally be working on this form, but they may want it to be visible to see the status messages from the program (File saved confirmations, etc). So, my two options right now are I can set the form to be on top of all other windows forms or, when the user clicks on the main application form, the messages form would be hidden by the main form.

View 6 Replies

Finding The Topmost Form?

Oct 4, 2009

How do I find which form is currently on top? (child forms in a MDI parent form)

View 4 Replies

Interact With Form Behind Topmost?

Aug 25, 2011

I am trying to write a program that displays a medium opacity image as the topmost form. that I can handle, the part that is giving me trouble is that I want windows to "ignore" the topmost picture form and allow me to interact with any forms behind it (mine or otherwise) as if the see-through form isn't there. I have searched all over but cant seem to find a way to do this.

View 8 Replies

Make Form Topmost Just In Application?

Jul 9, 2010

I'm trying to make one form in my application always on top of other forms. Not the 'topmost' property, I want it on top JUST within the application.

View 8 Replies

Set Window TopMost Of Main Form?

Feb 18, 2010

What I need to do is Set my new form to be the top most form of only my application while still having click access to the main form. Right now I have tried the property Topmost = True but the thing about that I really do not like is it puts the form above every single windows form. I only want the form to be the topmost of my application. The showdialog also will not work because I no longer have access to my main form with click events.

View 4 Replies

VS 2008 Embedded Form As Topmost

Sep 12, 2010

I'm trying to embed a form, which works, but it's under all my controls. It should appear on top of everything.

Dim frmEmbedded As New frmLogin()
frmEmbedded.TopLevel = False
frmEmbedded.TopMost = True
Me.Controls.Add(frmEmbedded)
frmEmbedded.Show()

I don't know why this happens, am I missing something?

If I set TopLevel to true, it deosn't show up at all.

View 2 Replies

Set A Form Topmost Setting Only For One Commercial Program?

Mar 27, 2011

Is it possible to set a form Topmost setting only for one commercial program?Say my program is A and commercial program is B... I want Topmost setting for program A will only work when I working on program B, and when I switch to other program than program B the Topmost setting for program A back to false.

View 2 Replies

VS 2010 Make Form Topmost Without Focus

May 17, 2010

I want to make a form the topmost form, but without giving it focus.Alternatively, I could check which window has focus, display my form, then give the original window focus again?

View 9 Replies

VS 2005 : Force User To Input Value?

Oct 26, 2010

creating code to force user at runtime to place values in textboxes. This is what I have so far. I want to be able to force the user to have to place a value in the empty textbox and change the backcolor of the textbox back to default color after a value is placed.

HTML
Public Sub Subjectvalues()
Dim SubjectValues As TextBox() = {Me.subj_ba_txt, Me.subj_bed_txt, Me.subj_dom_txt, Me.subj_gla_txt, Me.subj_levels_txt, Me.subj_lotsize_txt, Me.subj_lp_txt, Me.subj_orglp_txt}
Dim tb As TextBox

[code]....

View 3 Replies

Force A Connection String To User Scope?

Sep 1, 2009

I've tried searching and haven't found much useful information on this, I know it has to be possible, but I'm not sure how. I've got an application that bi-directionally syncs with an SQL express 2008 server. right now, I've got a hardcoded sa user in my conection string, however one feature that was asked for was to audit every change made by end users into the database. To implement this, I've created a user login and password for each user that is going to use my app (8 of them) on my sql server, however I now need to change the connection string to include each users name in the string. This is what I've got setup so far:

[Code]...

View 5 Replies

Force User To Close Window Before Proceeding?

May 9, 2012

this maybe an easy one for mos of you! I have a windows that is displayed as full screenThe window contains a series of images (movie posters) and the name below it. When you user clicks on a movie poster a new window appears (smaller window) in the middle of the screen.I want to force the user to close close on the small window before procedding. Currently if the user clicks outside the small window the full screen window comes to the front thus hiding the smaller window.

View 1 Replies

Force User To Input Number Not Letters

Jun 29, 2010

I'm attempting to learn VB in college. My first project is to create a program in Small Basic and then write it in Visual Basic. I'm looking for the equivalent of TextWindow.ReadNumber() from Small Basic in Visual Basic. I want to force the user to input a number not letters. I'm writing this program for the Console. Is this possible? During my testing I entered a word instead of numbers and the program crashed.

View 2 Replies

Force User To Make Combobox Selection?

Jun 30, 2011

I'd like to force a user to make a selection from a combobox.I've tried to test it by Combobox.SelectedText = String.empty as well as another version similar to this but a little different.When I test it, it will tell me that it is still unselected/blank even when I selected something.

View 4 Replies

Create A Small Application That Will Force User To Enter An Even Number?

Oct 5, 2011

I need to create a small application that will force a user to enter an even number but i MUST use a loop. Here's what i've come up with:

Quote:

Dim bynombrepair As Byte
bynombrepair = InputBox("Entrez un nombre pair")
If bynombrepair Mod 2 = 0 Then

[Code]....

View 1 Replies

Force A User To Log Back Into To An Application If No Activity Is Detected For X Minutes?

Apr 22, 2010

I would like to try and implement a feature wherby once you have logged into an application (straightforward winforms application) and had your credetials verified the application would then force you to log on again if no activity had been detected in the application for a certain number of minutes. In essence I want to provide some extra security for those occasions when users get up and wander away from their machines for prolonged periods.

I have all the logic for logging into the application, it's just the checking for no activity over a given period and then forcing the user to log back in again that I'm not having much luck with.

View 2 Replies

Text Box Formatting - Force User To Use Specific Type Of Input

Dec 16, 2009

I have a text box labled QTY, which feeds the QTY column on a datatable. the table then is ran through a function that takes the data and converts it to a string which my production machine can read. My problem is this, and its probably really simple (these problems usually are) how to i force the user to use a specific type of input on the txtbox so they would have to put the QTY in the format of 01 02 03 etc etc, i have it set to default to 00 but i want to force the user to haver to input 2 chars.

View 5 Replies

Force User To Select Minimum Two Check Boxes In Each Section In Gtrid View?

Jul 28, 2010

I have to select checkboxes besed on group column values. If you see below gridview, column 3 (GroupNo) has 1,1,1,1,2,2,2,2....etc (this column data is not static, will change based on page index. i.e PageIndex =2 may starts with 7,7,7,8,8,8,8,8,9,9,9 etc).In every sectio/Group User must and should select minimun 2 check boxes. so If user select only one check box we need to show a pop up message as " Please select One more check box in that particular section" If User skips the message and move to next section we have to show the same message. We have to force the user to select more than one checkbox in the same section. Mainly our intention is the check boxes whatever user selected in each section/Group belongs to one Category.

View 1 Replies

Making The Second Topmost Window The Topmost Window?

Oct 18, 2009

I am making an app that hides the topmost window, but when i do this, it leaves no current window selected. how can i make the highest unselected window selected?

View 2 Replies

Force Form To Refresh?

Sep 28, 2010

I'm having an application which has to perform exporting and importing data. At the moment he runs those functions, I want a form to popup with an animated gif, so my client sees that the application is still running.But the animated gif stops sometimes, because he is busy doing stuff (like copying files, etc...)Is there a way to tell the form to refresh automatically every 0.1 sec, so the image runs fluidly. I tried to put a timer in my form, and start the timer as from the form is shown...the timer_tick says he has to refresh, but he doesn't want to do that.

View 7 Replies

Any Way To Force Reload Form For Updating?

Jan 31, 2009

Is there a way to force a form to reload itself? The reason I ask is I have a listview that shows the data from my database. You can add information to the database from another form but when you go back to that form the information is not updated because the information updates on the form load. So my question is there a way to just do the form_load event again?

View 1 Replies

Force A Form To Implement Certain Methods?

Mar 21, 2012

I'm fairly new to VB programming. I have a control which is mounted within a form. I need to implement a callback, so that the control can make the parent form do something. My plan was to create a MustInherit class with MustOverride methods, and make the form inherit the MustInherit class. However, Visual Basic tells me that the form cannot inherit more than one class, which means that it can either inherit my MustInherit class, or System.Windows.Forms.Form, but not both.[code]...

View 1 Replies

Force The Form To Change Its Title Through Code?

Mar 12, 2010

1. How do I force the Form to change its title through code? I tried: Me.Name = "New Title" during a button press, but that didn't work.

2. How do I make it so a form cannot be resized by the user at all? ie. they can't drag the sides.

3. I have made it to when I save in my application the status bar displays "Save Successful". How would I make it stay with that text a few seconds before displaying "Running..." instead?

View 5 Replies

Force A Form Or Component To Redraw At Design Time In Visual Studio?

Jun 22, 2010

I have a component which hooks up with the paint event of assigned control and draws on its surface, Whenever i make any changes to the component i need to resize the form or control at design time in order to see the changes.

I want to ask if there is any other way to refresh the contents of a control at design time which forces it to redraw.

View 6 Replies

VS 2008 Force The Creation Of A Handle Of A Control Before The Form That It Is Contained On Is Loaded?

Nov 24, 2011

I am just wondering how to force the creation of a handle of a control before the form that it is contained on is loaded... I have tried:

[Code]...

View 4 Replies

VS 2010 Force All Threads To End Or End The Process Like In The Task Manager When The Form Is Closed?

Jun 23, 2011

When multithreading in VB, if you close the form while different threads are running, the process itself will not end. Is there a way I can force all threads to end, or end the process like in the Task Manager, when the form is closed?

View 2 Replies

DWM Flip3d Policy TopMost?

Oct 23, 2009

I just read a recent article here at the code guru about the flip-3d feature available on Vista and Windows 7.It allows, you to place an application above, or below the windows being flipped.

Here is a VB example of that code really neat code.

Code:
Const DWMWA_FLIP3D_POLICY As Int32 = 8
Const DWMWA_EXCLUDE_NONE As Int32 = 0
Const DWMWA_EXCLUDE_BELOW As Int32 = 1
Const DWMWA_EXCLUDE_ABOVE As Int32 = 2

[Code]...

View 4 Replies

Get MainWindowTitle From Topmost Window?

Jun 19, 2012

Let's say the user has both Firefox and Chrome running. I'd like to get the MainWindowTitle from the browser that is the topmost, even if none of them have focus.The code below works fine if the user only has one of them running, but I'm not sure how to the get MainWindowTitle from the topmost firefox/chrome window when the user has both of them running.

vb.net
Dim pProcess() As Process = Process.GetProcesses
For Each pr As Process In pProcess

[code].....

View 1 Replies

Getting The 'topmost' Keyword To Work

Feb 4, 2012

I am aware of the 'topmost' keyword in VB.NET for specifying a window to be brought to the front or top of the display windows showing. However, specifying 'xlApp.topmost' is resulting in a compile error in my VB 2010 Express project; most likely because my project doesn't include a reference that it needs for 'xlApp.topmost' to start working. What reference do I need to add?

View 2 Replies







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