VS 2010 One Form Infront Of Another?

Oct 27, 2010

I am using this to open a form from a button:Form2.Show()How do I add the old vb6 option of loading the form and not giving access to any of the form behind until the front form is loaded?

View 2 Replies


ADVERTISEMENT

Bring A Form Infront Of The Messagebox (or Switch Betwen Different Forms)?

Dec 12, 2009

When a messagebox pops up, how can I bring a form infront of the messagebox (or switch betwen different forms) and then bring the messagebox back again again if I want to click OK button to proceed with the remaining code?

View 11 Replies

Get 0 Infront Of Any Number?

Jun 23, 2010

I would like to append 0 before a number if it is single digit. ie. it should be 01,02,03... 09, 10, 11, ... and so on I am using vb.net... how can i do that?

View 5 Replies

Add ' Infront Of All Items In Listbox2?

Jun 21, 2010

Im having a bit of a problem here. I need to add a certain string in this case (') infront of every item in my listbox.

So lets say items are :
item1
item2

[code]....

View 3 Replies

IDE :: String Manipulation - Return Number Infront Of X

May 2, 2009

I have a very simple question: I have a string that may say "3x itemname", or "32x itemname". How do I get it to return the number infront of the x?

View 4 Replies

Add Buttons Infront Of The Data Displayed In The Datagrideview For Only Records

Dec 25, 2009

i need to know how can i add buttons infront of the data displayed in the datagrideview1 for only reocrds that has the name "michael" and also how can i put my code under these buttons that displayed infront of the records that has the name "Michael"

View 7 Replies

Program Infront Of Windows Media Player Full Screen Video?

Apr 13, 2012

One of the things my VB.NET program does is play video files using the Windows Media Player component that comes with VB. My program also switches the WMP component to full screen but once in a while the form will be on top of the full screen video. I am hoping that you fine and knowledgeable folks cat this from happening. The problem occurs when the next video file is played automatically. I'll do my best to post a bit of code but since I don't have much of an idea what might be causing this I'll just have to guess. The project has gotten quite large over the years I've been writing it and if any more code ito post any or all of it, though I'm sure no one would like to go through all 1771 lines of it.

Private Sub WMP_PlayStateChange(ByVal sender As Object, ByVal e As AxWMPLib._WMPOCXEvents_PlayStateChangeEvent) Handles WMP.PlayStateChange
If Stopping = True Then

[code].....

View 7 Replies

.net - When Run Code Analysis VS2010 Wants To Add Property Infront Of All Of Public Members (CA1051 : Microsoft.Design)

Jan 24, 2012

When running code analysis on my project, I receive the following message:

CA1051 : Microsoft.Design : Because field 'ClassName.VarName' is visible outside of its declaring type, change its accessibility to private and add a property, with the same accessibility as the field has currently, to provide access to it.

Public VarName As String to this:Public Property VarName As String

I don't understand why the Property keyword is so important in this particular case. Can anyone provide an explanation as to why changing this member to a Property makes a significant difference to code analysis?

View 4 Replies

VS 2010 Detect Shift + Arrow Key In Form Keydown Event In BLANK Form

Mar 27, 2011

I need to detect shift + arrow key in blank form. But it's not working. I also tried overriding IsInputKey method but it only detects single key press (like arrow key) but when multiple key are pressed it simply doesn't work.

View 5 Replies

VB 2010 Project - When A Timer In The First Form(form1) Ticks A Progress Bar In The Other Form Goes Up By 1

Aug 11, 2011

Im doing this project but u have a problem. im trying to make it so that when a timer in the first form(form1) ticks a progress bar in the other form goes up by 1.

View 2 Replies

VS 2010 - Form - MoveWindow API Alternative - Resize & Move A Form Using VB Commands

Mar 22, 2012

What is the best way to resize & move a form using just VB commands? I have a form that I need to set the Height and Top props, problem is that takes two calls and there is a noticable flicker. I tried using SuspendLayout/ResumeLayout, DoubleBuffered, swaping the top and height calls around, etc, but nothing seems to help. The test forms only have one small listview and one or two buttons. [Code]

View 2 Replies

VS 2010 Display Pdf File Inside A Form That Gets Some Values From Form Controls?

Sep 27, 2010

Inside a form, I would like to display a pdf file which is already available in my resources (template file "untitled"). In this pdf file, I have some fields which get their values from some texboxes in another form. My aim is, when the user triggers the button to call this form, it should insert the values inside the pdf file and display the output pdf inside the form.I have written the code to an extend but could not finish it myself after my many trials... Now here are the two things I cannot manage:I can use a directory to read the template pdf "untitled1.pdf". But my aim is to use the file inside my resources. can save the output file in a directory but this is not I want to do. I want to display the output pdf.

View 1 Replies

VS 2010 Set Form Size Longer But After Building Project Form Re-sizing

May 1, 2010

I'm trying to set form size longer, but after building the project form resizing.

View 1 Replies

VS 2010 Sub/Child Form Close When Click On Main/Parent Form?

Jun 5, 2012

i am having some trouble in my Windows form application. i have 2 forms1st Main / Parent Form2nd Sub / Child Form (Menu)

View 7 Replies

Write Text From A Parent Form To The Active Mdi Child Form VB 2010

Jan 28, 2012

It has to be a simple line of code but I do not know how to construct it. Using VB 2010 Express, I have a MDI parent form and many child forms. I want the parent form to determine what child form is active and load data into the RichTextBox1 on the child form. Each Child form has a RichTextBox1. The parent form gets its data by loading a file.

I am close to a solution but just can't get there. You will see in the code below, if I make a direct reference to a specific child form, it works great. What I want to do is to use the Active Form function to determine which form to write to. I have looked at the MS tutorial which gets me close.

Private
Sub OpenToolStripMenuItem_Click(ByVal sender
As System.Object,

[Code].....

View 6 Replies

VS 2010 Addin For Excel 2010 - Getting The Cursor (4 Arrowheads) For Moving The Form?

May 26, 2010

Basics Details:
VS 2010
Making an Addin for Excel 2010
Win 7

Problem:I am not getting the cursor (4 arrowheads) for moving the form.I am using the Panel1_MouseHover to display the cursor. Right now if I choose any other cursor then it is working but the same cursor also displays when I hover the mouse over any other control. I want the cursor to show only in the areas of the Panel where there are no controls.How do I show Tooltips for the images? The play,stop,next, previous,playlist,Hideme(with the smiley),volume are all images and not buttons?

View 9 Replies

VS 2010 : Make A Form With Multiple Buttons Opening Different Things Than Having A Form That Has Lots Group Boxes For Each Tab?

Jul 25, 2011

Is there a better way to make a form with multiple buttons opening different things than having a form that has lots group boxes for each tab. So in the begining each box will be invisible and when you click the button the corresponding group box will become visible. Is there any other way?It will be like a background image and it'll have buttons that will mask it with invisible buttons. when the button is clicked it will open the corresponding group box.

View 5 Replies

VB 2010 Open Form B To Specific Record From Form B Datagrid

Mar 15, 2012

I have form A that has a datagrid on it, I want to be able to double click a row in form A and open form B to that record.

I know how to do that in VBA in Access 2007, but I am having trouble comprehending the procedure for VB 2010.

View 8 Replies

VS 2010 - Form.Activated - Refreshing A Form Bound To Different Tables

Feb 4, 2011

I had issues in refreshing a form that is bound to different tables in a database. Various forms allow the user to change and add and update information on the form via the database. I had created a public sub in that form that the other forms could call, after saving the data, that was supposed to refresh the data on the main form. This was not working so I researched the problem. I came across this page which pertains to Form.Activated: [url]

I placed all of the table adapter fills into this event, instead of in Form_Load, and it seems to work now, when the form first loads, and when other forms update data. My question is does anyone have experience using this and what are the consequences, if any, in using this to reload/refresh the data showing on the form?

View 4 Replies

VS 2010 : Load A Child Form By Default In MDI Parent Form?

Jan 23, 2011

I want to load a child form which is a login form by default when the parent form is loaded.Right now when I click new file on the toolbar of the parent form, then only the login form is loaded but i want it be loaded by default without clicking anything.

View 10 Replies

VS 2010 Child Form Tell Parent Form It Is Closing And Send ID?

Apr 2, 2012

I have a parent form that has a list of items and each item has a unique ID. The user can open one or many of the items in a child form (it is set up in a tabbed MDI), but it can only open one instance of each item at a time.

In the parent form, I was going to make a collection (or something like that, maybe there is a better way) to keep track of which items are open in the child forms. I need to know when each child is closed so that it can be removed from the collection and reopened at a later time. I was thinking that when the child form closes, it somehow does something (like raise an event) that tells the parent form to remove the unique ID from the list of current open child forms.

My questions are, is this a good way to do this and I am pretty sure I would use the form closed event in the child form to update that parent form, but as well, I didn't know if this is the best way of handling it.

If raising the event is a good way, are some examples on how to do it out there? I found some for controls, but not while the form is closing/closed.

View 4 Replies

VS 2010 Load Another Form When The User Closes The Current Form

Feb 26, 2012

I am after some code to load another form when the user closes the current form. I have tried this

[Code]...

View 14 Replies

Connect A Database (created In Access 2010, Saved In An XML Format And Put On Website) To A Login Form In VB 2010?

Jul 16, 2011

it's just for a program registration. i would store all of the registration codes in the access database, then export it to XML, then upload it to my web host. I would then somehow connect it to my Visual Basics login form (Which I have already made). If this can't be done, having them register through the form and having all the allowed codes on the internet (So i can easily edit them)!

View 5 Replies

VS 2010 Does Form.showDialog() Require A Form.dispose

Jan 5, 2012

Quote:

Originally Posted by kaliman79912

Quick note: Close does not dispose of the form if it was displayed using .ShowDialog, but I guess this is not the case.

I did not want to hijack the other thread [URL] but would like to have this clarified for me.

View 5 Replies

VS 2010 Load The Splash And Login Form Twice And Mdi Form

Aug 1, 2011

I have a code which when used, firstly application will run the Splash Screen application. Splash Screen will be active for several second, and then the main of application will show in full screen. Before the user use the application, user must Log in first. This works but the problem is that it loads the splash and login form twice. To worsen the situation, the second login form that appears gives access to the system even when the cancel button is clicked while the first login form just works fine. My codes for the three forms are as listed below:

[Code]...

View 6 Replies

VS 2010 - Create A DDE Server, Windows Form, In VS 2010/11

Apr 20, 2012

With a Windows form that I would like to be a DDE server. I know that DDE is not natively supported in VS 2010/11 so I'm using the NDde.dll to add DDE functionality to this program.

Objective: Create a windows form to act as a Pop-up notification that has a textbox field. This textbox field must be selectable in order for users to copy a text string to the clipboard and paste into another program that does not support DDE.

Overview: A phone system has an on-screen agent program that triggers a pop-up form, the DDE Server, when an incomming call is presented. When the agent accepts the call the agent program, acting as a DDE Client, registers a DDE session, Application=phnserver and Topic=callerid. Then communicates an "OnExecute" command to the DDE Server followed by a number string. This string should be presented on the pop-up form in a text box. Once the call is completed the agent application will issue a command to close the pop-up form.

Below is my current code.

CODE:

View 2 Replies

VS 2010 Can't Seem To Get A Reference To Main Form From Sub Form

Jan 28, 2012

My app has a main form (it's the startup form). It includes a number of menu items which typically open modal sub forms. However there are 2 menu items which just need to open an Outlook Explorer calendar for the user to manipulate appointments. My VB6 version used hidden sub forms to do this and handle the subsequent interaction between the user and the Outlook objects in the Calendar. I need to stop the user interacting with the main form while the Outlook Explorer is open, ie as if the Explorer window were a modal sub-form to the main form. So I manually disable the main form while the Outlook activity is going on, then (try to) enable it when the user closes the Outlook Explorer window. Problem is I can't seem to get a reference to the main form from the sub form to do this, nor pick up an event in the main form which I could use to trigger the enabling of the main form.An alternative might be to delete the hidden sub forms & put all the code in the main form, but this would be quite ugly; I think I would need to maintain two parallel sets of Outlook objects at the top level in the main form for each of the two functions (a number of the Outlook objects are declared With Events). I would have to have for example mobjOutlookExplorerFunction1 and mobjOutlookExplorerFunction2.

View 5 Replies

VS 2010 Form.Leave Vs Form.LostFocus?

Oct 26, 2010

I've read you should use the "Leave" event instead of "Lostfocus" for your code. But if you put something like this inthe leave event,Me.TextBox2.Select()The Leave event fires twiceBut if you put that code in the LostFocus event it only fire once. Is it ok to use the LostFocus or should I add additional code to handle the Leave event firing twice?

View 10 Replies

VS 2010 Updating Access DB From VB 2010 Form

Apr 8, 2010

I've been working on an app for quite awhile and now am at the point where I have to incorporate an Access DB. Tried many things/variations of what I've found...but now am stuck. So here goes:

I have a Form with this

Public Class Form1
Dim objConnection As New OleDbConnection _
("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=|DataDirectory|Test.mdb")

[Code].....

View 11 Replies

VS 2010 Use Print Form Power To Print A Windows Form From Console?

Jun 29, 2010

trying to print a Form that I created using a VB.Net console application. My console application creates an instance of a Windows Form and fills it with data. I then created an instance of the Print Form class from the Microsoft Power Pack and am trying to get the form I filled with data to print but no matter what I've tried it just prints the command console window.

Dim firstPage As New FrontPage 'Windows Form
Dim pf As New PrintForm 'Print Form Power Pack
firstPage.Visible = True

[code].....

View 7 Replies







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