Keeping Form Visible While Switching To Another Program?

Apr 14, 2009

I have a program that shows a small form appearing at the top of the right hand corner of the screen. When I switch to another opened program, the form disappears. How can I keep this form visible when I switch to another program? I set the TopMost property to true but it doesn't work.

View 1 Replies


ADVERTISEMENT

Excel AddIn - Keeping Windows Form Always Visible While Within Excel

Feb 29, 2012

I'm trying to upgrade an Excel VBA workbook to a VSTO Excel Add-in in VB.NET using VS 2010. In the original (i.e.- VBA) version I have a modeless UserForm (called frmMain) that floats on top and is visible at all times while the user is still within the Excel application, but is not visible if the user moves to another window outside of Excel.

For example, within Excel the user can click on any worksheet tab, select any cell, etc. and the UserForm is still visible. This is exactly how I'd like it. The problem is, that in the new VSTO add-in, I can not get the Windows form to mimic this same behavior. I use frmMain.Show() to show the form as a modeless form, but the moment the user clicks an Excel worksheet (i.e.- activates a worksheet) the form becomes hidden behind the worksheet.

[Code]....

View 1 Replies

Disabling VScrollbar But Keeping It Totally Visible

Nov 29, 2009

I'm currently working on an application that detects a color on a defined area on the screen and together with a panel that displays the color I show the values in a label and represent them with a vscrollbar. (The goal of the project is to output the color of the computer screen via an usb to dmx interface to create an ambilight effect) Now I don't want the user to be able to move the scrollbars up and down so I figured disabling them would do the trick but then the little square you click on to scroll it up and down isn't visible anymore.
Vscrolbars enabled:
Vscrolbars disabled:

View 4 Replies

Make Form Visible For The First Time From Another Form (form.visible = True)

Aug 18, 2009

Below is the exception code info. when I try to make form visible for the first time from another form then I get an exception code. something like 'a required variable not set'

Quote:

CODE:

View 7 Replies

Jumping Between Forms - Making A Form Visible And Not Visible

Jul 17, 2009

I'm having an odd problem when making a form visible and not visible and it not continuing to function. Here is what I have happening. I have a main form (frmMain) that is an MDIParent. On this form I have a menu to open a second form (frmCalculate) and populate a listview from Items in the database.

As I click or select items in the listview on frmCalculate the tag is read and data is pulled based on the id stored in that tag and fills in various fields on the form. This works great. However, I also have a context menu attached to the listview that allows me to perform a "what if" scenerio on the items I am calculating. When I select this menu, I hide the frmCalculate and open the frmWhatIf form where I can mess around with values on the item I had hilighted in the listview on frmCalculate. Nothing is pulled from or written back to the database here, all the information is filled in from fields on frmCalculate. It just allows me to look at rising costs and how they will affect my margins.... anyway.

If I then close frmWhatIf, it brings my frmCalculate back by setting its visible propery to true (never closed frmCalculate, just hid it). At this point if I click an item in the listview I get an exception for a null reference. IF however I never hide frmCalculate, I can open and close frmWhatIF without ever having an issue. Why do I lose the functionality to select items just by hiding and unhiding the form? As a test I added two menus to the toolbar on frmMain one called hide and one called show. I then opened frmCalculate with original menu item to populate the listview and selected a few items to test that it was working and then using the hide menu I made the form invisible and the show button to bring it back. This yielded the same exception so without even opening frmWhatIf the problem still occurs.

View 3 Replies

Voice Actor Program Not Switching Speech

Apr 13, 2012

trying to make a simple voice actor program that uses system.speech problem is its not loading the new speech here is code

[Code]...

View 3 Replies

Make A Form Keep The Same Windowstate When Switching?

Mar 11, 2011

Well, I develop a web browser called "Telecom". Instead of using a tabbed browser control, I use multiple forms for tab switching, and most of the tab switches look like

View 2 Replies

VS 2008 - The Program Keeping A Running Total?

Dec 9, 2010

I'm about to pull my hair out with this program. I need the following program to keep a running total of the total amount due by a customer for books bought. The exercise required the use of a BookSale class with 3 attributes(a quantity,price,and total due) and 2 behaviors(a default constructor and method that keeps a running total). Here is the code for the class:

[code]...

My problem lies in the program keeping a running total. The total due is displayed fine for each quantity and price but not the whole running total. For example,if I enter 1 as quantity and 2 as price and click the Add to Sale button,the Total Due value,which is $2.00,is displayed. However,if I change the quantity to 2 and price to 4,which comes out to $8.00,the $8.00 is not added to the existing $2.00. I feel like I'm missing something elementary and it's driving me crazy. I would work on it some more but it's already after 4 AM here and I need to get some sleep.BTW,this exercise is from a college textbook. However,this isn't an assignment that is due. I just got bored and decided to work on a chapter we didn't have time to get to.

View 2 Replies

Installation - VB - Keeping A Program That Is Running On A Network Updated

Feb 5, 2010

I'm looking for suggestions on keeping a program that is running on a network updated. Installation consists of 15 users, each have the program on their local pc, but they all access same date from sql server. I am looking for a clean method that would allow me to update one folder on the network and for each computer to get updated when they run the program and the programs sees a later ver on that folder on the network. (Obviously I can do this inside the program itself since it won't allow being overwritten while opened.)

View 3 Replies

Closing A Form But Keeping The Information In The Form?

Apr 28, 2010

I am working on a project that has the user building scrapbook pages through several different forms. When the user selects something a presses a button I have the information about the selection load to a list box which is on a CheckoutForm. One of the options I have is for the user to save what they have made (this includes the information in the list boxes) and return to a previous form to build another page. I have been trying to use the Me.Close() but it does not save the information and using Me.Hide() displays the wrong elements on the forms.

View 5 Replies

Keeping Counts Win Form App. Has Run?

Apr 23, 2010

using Vb net (2005) Wandering if it is possible to use AppSettings in this case: Keeping counts how many time my Win Form app. has run, could someone show me if this can be done

View 4 Replies

Keeping Form Above Fullscreen?

Nov 9, 2011

Basically i'm coding a application that can be used as a crosshair.How do I keep this above the game which runs in fullscreen. I've tried

View 5 Replies

VS 2008 Keeping A Form In The Screen

Dec 27, 2009

I'm just doing a quick little application and was wondering how I can keep the user from moving the window outside of the working area I tried this

[Code]...

View 1 Replies

Keeping Multiple Form Instances Separate?

Sep 16, 2009

When I create more than one instance of the same form and I call a method on any of these instances, the code only fires on the most recently created instance. Even when I click a button on that form, it executes on the other form. How can I call these and keep them as distinct objects?

For example: if I build Form1 with a public method called ChangeMyColor and a button to call that method. Then in the main app I set MyForm1 = New Form1
and MyForm2 = New Form1, then call MyForm1.ChangeMyColor, the color changes on the second instance. Even if I click that button on the first instance, the color still changes on the second.

View 8 Replies

Transferring Data From Second To First Keeping The State Of First Form?

Dec 19, 2010

I m working with a appliction in VB.net

I have a three forms .Menu form which i have set IsMdiContainer as true

Through this form I m opening a new form named " Query"

This form has two drop down and one textbox and some other controls

When user selects ths first dropdown (States)second gets filled with City

When use selects a city I wat to open a New form named as parameter.parameter

form has two textbox and user will enter the paramater and click the submit button.

I want the text of these two textboxes in My "Query" forms 's text box and I want the drop down as it is(filled with city and states)

View 3 Replies

Program Won't Become Visible?

Aug 10, 2009

if i set the "window State" to "normal" then my;

Private Sub NotifyIcon1_MouseClick(ByVal sender As System.Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles NotifyIcon1.MouseClick
If Me.Visible = True Then

[Code]....

works fine, however, if i set the "window State" to "Minimized" then clicking the notify icon no longer makes the app visible? :s

View 1 Replies

Set Calling FORM Visible = False By CALLED FORM

Sep 6, 2010

Requested were made by Businese Analyst to set the few Main FORMs VISIBLE PROPERTY TO FALSE when the POPUP FORM is loaded.

[Code].....

When the MAIN FORM loads the POPUP FORM, on the FRMPOPUPCUSTOMER-FORMLOAD even, it has to set the MAIN FORM Visible to False.

When FRMPOPUPCUSTOMER FORM IS UNLOAD it has to set the MAIN FORM Visible = TRUE.

How to the coding is to ensure that different MAIN FORM when loaded FRMPOPUPCUSTOMER it will turn the MAIN FORM Visible to FALSE.

View 2 Replies

Mdi Form And Show Form - Error "Form That Is Already Visible Cannot Be Displayed As A Modal Dialog Box"

Jan 26, 2010

I'm new in .Net and I have an application with windows form "LOGIN" When users enter the user and password and click "ok", then if user passes validation then I have the code Show(MDIMainMenu) (I'm trying to open an mdi form), but I receive the following error: "Form that is already visible cannot be displayed as a modal dialog box. Set the form's visible property to false before calling Show. Error Number 5"

[Code]...

View 2 Replies

Make PictureBox Visible In Program?

Jun 25, 2009

I have written a VB2008 program in which I want to put graphics output in a PictureBox but keep the PictureBox hidden until a "Show Graphics" button is pressed at runtime. I have done this by setting the PictureBox's Visble property to False at design time and then adding a line in the Button Click code (before the main graphics code) to make .visible = true. Now when I press the button, the picture box becomes visible but stays blank. I have to press the Button a second time to get the graphics to show. It doesn't matter where in the Button code I place the PictureBox1.visible = true line, the result is the sdame. WHY ? Other VB Controls, eg RichTextBox will stand being made visible and then display output with only one click of the button, why is PictureBox different ?

View 15 Replies

Set Form.Visible=False In Form.Load?

May 12, 2010

Based on code that executes in Form.Load, is it possible to disable displaying that form after the handler for Form.Load is complete? I'd like to have a commandline switch that disables showing the form, but still runs the application. I've tried this, but it doesn't work:

Code:
If InStr(Environment.CommandLine.ToLower, "/trayonly") Then
Me.Visible = False

[code]......

View 6 Replies

Make Program Property Visible Only Within Specific Namespace?

Apr 20, 2009

I got some set of base classes within one namespace and few sets of derived classes in other namespaces. Everything in one project.[code]...

OK, it can be done declaring .SubElements as Protected in BaseElement class. But in this case I cannot access this property from other classes in Base namespace that are not derived from it.

I tried adding Friend keyword, but it made this property visible when I'm instantiating derived classes too.

So... any way to hide some properties when using derived classes while being able to use them using base class?

View 2 Replies

Big Panel Visible And Not Visible Based On Selections Made By User

Jan 28, 2009

I've got a panel - that's in a group box. All of this - with lots of other textboxes on labels - is in another panel (the big panel).I make the big panel visible and not visible based on selections made by the user.This small panel - that's in the group box. I cannot seem to make it appear.Even if I leave it VISIBLE at design time - the objects in it will not appear.Is there some kind of nesting problem that I'm not aware of!

View 9 Replies

Making Menu Item Visible Or Not Visible In Master Page

Jan 25, 2011

I have five menu items that i have created as a user control and placed on the master page. Now i want one of the menu items to be visible only for particular user role and not visible for others. Here is what I did. Its not working though.

[Code]...

View 6 Replies

Visible Status Of Form?

Apr 3, 2011

I have a different kind of issue inside my code. I can not use my code as era. I have a simple code to make form drop from visible status but it is not working. I could not manage this problem.

//This is my code
Public Class Form1
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles

[code].....

View 3 Replies

Transparent Form But Visible Controls?

Dec 21, 2009

if I set the property Opacity = 0, a form becomes transparent... but become transparent all it controls, too!how to make transparent ONLY the form and let the controls, labels, buttons etc. visible??

View 3 Replies

Button On Form - Visible To Invisible?

May 18, 2012

I understand the properties to change a button from visible to invisible, but I need to be able to have two buttons alternate visibility when the first button is clicked.It's for a game. The first button is to "Begin Game" and on open, the invisible button that sits over it is called "Begin Again" which I would like to only appear once the Begin Game button has already been clicked. This would then trigger the "Begin Game" to become invisible.

View 3 Replies

Form Transparent But Controls Visible?

Aug 20, 2010

When I make my form Opacity 0% everything disappears including controls that I know will happen im not dumb ok so I tried another method using Transparency Key I had success BUT my problem there is that when I have a picture box and an image IN the picture box around the image is the Form Background color so lets say I picked Maroon for Form1.BackColor, The edges of my image is Maroon

View 6 Replies

Transparent Form But Controls Visible?

Feb 16, 2012

I am having trouble finding a way to make the form transparent but the controls still visible. The only transparency I have been able to get to work on the form is

Me.Opacity = <value between 0 and 1>

but that affects all the controls on the form Is there a way to make the controls not inherit this property from the form? Is there another way to make the form transparent? I have buttons and a checkbox that I don't want to be affected by the transparency at all, and a picturebox that I do want to be able to control the level of transparency. Currently, I'm using a slider bar, and controlling the opacity of the form, but that makes everything on the form transparent. I'd actually like for the form itself to be completely invisible, and for my slider bar to control the opacity of the picturebox only.

View 3 Replies

Forms :: Random Functions - When Start Program And Click Picturebox - Same Card Will Always Come Visible

Mar 30, 2011

Okay, so I'm doing a card game and I'm trying to set that when picturebox (PictureBox1) is clicked, a random card from 13 cards will come visible. Problem is, that when i start the program and click the picturebox, the same card will always come visible. As you can see i've put a button (Button1) which will hide every card. If I press Button2, then Button1 and then the PictureBox1 it will show differend card, but the cards which come visible are always the same.

e.g i press PictureBox1 (which will make card visible), then Button1 (which will make PictureBox1 non-enabled) and then Button2 (which will hide every card and make PictureBox1 pressable). Lets say i pressed the PictureBox1 four times and i got cards: 9, 6, 7, 3, then I close the program, start it again and press PictureBox1 again 4 times and it will show the same cards (9, 6, 7, 3). How can this be done that it will not show the same cards always?

Here's my code...
Public Class Form1

Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click
End

[CODE]....

View 3 Replies

2008 : Transparent Form But Visible Controls?

May 1, 2012

if I set the property Opacity = 0, a form becomes transparent... but become transparent all it controls, too!how to make transparent ONLY the form and let the controls, labels, buttons etc. visible??

View 2 Replies







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