VS 2008 Visability Of Forms?

Aug 4, 2009

have is, as I progress through my program, I turn off the visability of the previous form as I branch to the next.

(Used most in my programming)
Me.visable = false
Formname.showdialog()

[code]...

View 3 Replies


ADVERTISEMENT

VS 2008 Adding A Method To All Forms Existing Forms Without Changing Their Code?

Jul 28, 2009

just wondering if it is possible to add a method to all forms in my project without having to do it on one form and Inherit all my other forms from that one

View 3 Replies

VS 2008 : Get 2 Forms To Close At Different Times Using A Timer On Each Of The 2 Forms?

Apr 21, 2010

i have a problem with trying to get 2 forms to close at different times using a timer on each of the 2 forms.

This is my form layout:

Quote:
frmMain
Frm1
Frm2



Frm1 and Frm2 are identical to each other. FrmMain has 2 buttons on it. One button to call Frm1 and the other to call Frm2.Frm1 and Frm2 each has a timer. It counts down to 0 and then does a .close(). However, if i pause between clicking the second button they both seem to always disappears at the same time.I would do something like this...

Click on the first button (showing the Frm1 form)

wait about 10 secs...Click on the second button (showing the Frm2 form)they both are shown on screen...hen they both disappear at the same time.... which shouldn't happen since i clicked the Frm2 box 10 seconds AFTER Frm1... So Frm1 should hide before Frm2 does...but it does not.

[code]....

View 6 Replies

DB/Reporting :: Using Vb Net 2008 With SQL Express 2008 R2 In Windows Forms?

Sep 9, 2010

using Vb Net 2008 with SQL Express 2008 R2 in windows forms. that being said, I have a syntax problem in this form, form has 2 texbox an a datagridview and also the 4 components DataSet. BindingSource. TableAdapter, BindingNavigator. When I filter by LastName no problem it work fine (it's a String) but when I try to filter by CustomerID (it's alphanumeric) I get an error "Invalid character" here is part of my code: Private Sub surnameFilterTextBox_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles surnameFilterTextBox.TextChanged

[Code]...

View 5 Replies

Callback To Different Forms In VB 2008

Mar 23, 2011

Situation: i've created several forms with a datagrid:formwithdatagrid1formwithdatagrid2formwithdatagrid3.... These datagrid can be filled manually or with a selection list. I've written this selection list a a new form (frmSelectionList), witch is called with a SQL instruction, now this selectionlist calls a funtion in formwithdatagrid1 to return the selected value. Question:How can the same selectionform being used for all datagridforms?

[Code]...

View 4 Replies

Cannot View Forms In .net 2008

Sep 15, 2008

I am having a strange issue with vb.net 2008. I have two forms that I designed, but I cannot bring them up to edit them. I can only view them when I run the program. I have attached a screen shot of my form showing while my program runs.

View 14 Replies

Forms And Resizing In 2008?

Aug 12, 2009

Currently, my application is comprised of:a Main Form On this Form, lies an array of User controls, (pardon my terminology, i believe the more proper VB.Net term is Collection of controls). Within these controls are pictureboxes that have distinct graphics drawn on them. When I run this program, no graphics are drawn in the pictureboxes or it appears the graphics are overwritten. Also, it seems that the Form resizes uncontrollably varying in size on the screen and hits an infinite loop. I use the Form_Resize function for updating the size of the form. What could be causing this problem. What is the Paint method used for?Currently, to draw graphics on the Pictureboxes i am using the graphics object. I have two pictureboxes within the usercontrol for toggling back and forth for a more fluid refresh upon property updates.

From my reading, vb.net does not allow the ability to create an array of controls on a form, so I attempted to create an array of controls dynamically to try and stay as close to my vb6 application as possible because my knowledge is limited. This works, from what i can tell I know that in the Upgrade wizard the VB6.Compatiblity reference was used to try and mimic an array of controls, but I wanted to steer away from that and program strictly using VB.Net commands.

View 10 Replies

VB 2008 Transparent Forms?

Jun 7, 2008

I want to know how to make transparent form. But my buttons have to stay visible when using the program

View 11 Replies

VS 2008 - Using More 3 Forms In A Project

Jul 28, 2010

I would like to use 3 forms on which there will be various controls. I want the user of the program to complete first the stuff on Form1 then click to Button 1 in order to go to the second form (which is "next" button). On second form, there will be two buttons (Back and Next) and these will navigate it next or previous form. My aim is to have a single window at all times (the user should not see several windows and have the feeling that all these different windows are in fact a unique window with navigation buttons on it).

I know how to make forms visible/invisible or determine manually the location on the screen. But my question is if there is a conventional way of arranging these forms and their navigation. I used codes like "Form2.show" but I am not sure if it is the correct way to show form2 and make Form1 invisible or disabled.

View 6 Replies

VS 2008 Ariable Available In 2 Different Forms?

Jun 18, 2010

i need a variable available in 2 different forms. how to do that?

View 2 Replies

VS 2008 Chart In Forms?

May 10, 2010

Someone knows a way to put a chart (for example pie ou bar), directly in a Windows Forms?

View 5 Replies

VS 2008 Combine Two Forms In VB?

Aug 26, 2009

I would like to know if it is possible to combine two forms in Visual Basic (with or without code written already in them) into one form. So that they are side by side. These are the forms that you start out with in Visual Basic to make your program (Not forums LOL).

View 2 Replies

VS 2008 Forms Disappearing?

Jul 29, 2011

When one of my students opened his project yesterday, the Form he designed for it was no longer available. He could run the program but he couldn't edit the form as it had disappeared. Later he couldn't run the program at all as the error said that the form name wasn't part of the WindowsApplication. What's going on?

View 4 Replies

VS 2008 Maximizing Forms 100%?

Nov 18, 2010

VS 2008 [RESOLVED] Maximizing Forms 100%

View 1 Replies

VS 2008 Navigating Through Forms?

May 30, 2009

I have multiple forms and I want to be able to navigate through each of them using buttons. "Next" and "Back" buttons would be used to navigate through the forms.I know that NickThissen has made a Wizard Control to do this, but I want to learn how to do something like this, but a bit more basic.

View 6 Replies

VS 2008 Timers And Forms

Mar 18, 2011

I have a background application with a couple of System.Timers.Timer running in it. I also have a NotifyIcon that when double clicked brings up a windows form.

My problem is that sometimes my form gets displayed but then for whatever reason it seems like it's losing focus and becomes un-usable (it just sits there in the background).

So here comes the question now... Can the freeze be caused by the form loading (i.e. me double clicking my NotifyIcon) and the timer tick happening the same time?

View 8 Replies

VS 2008 Toolbars On Forms?

Aug 20, 2009

How would i set a toolbar on a form much like the ones a word document?

View 3 Replies

VS 2008 Type Of Forms To Use?

Dec 26, 2011

When opening new windows (forms) in my apps, I have opened then with ShowDialog because I wanted them to have full focus. I want to do the same again but I want to be able to minimize the whole app by the first window which is maximized.

For example, when I start the app, I have the main window which is the background to the program. Then as I open new windows in it, I want them to have full focus but still be able to minimize the entire app when needed. Is this possible? If so, how do I open the new windows from the main one?

View 3 Replies

VS 2008 Using Serialport On 2 Different Forms?

Aug 25, 2009

I'm using one form to make contact with the serial port with the next

Imports System.IO.Ports
Imports Microsoft
Public Class Menu

[Code].....

View 2 Replies

VS 2008 Variable Could Be Used Across All Forms?

Jun 26, 2010

In my previous knowledge of programming, i used to use global.variable = true how could i achieve this so the variable could be used across all forms?

View 1 Replies

VS 2008 Why Can't Use Variables Between Forms

Jul 5, 2009

I am making a program where in form 1, the user inputs data, and the data is used in form 2.[code]There are 12 number boxes and 12 text boxes. I also tried to use a label (label 4) to test if i could even use the variables on form 1. I can't. When you press the button, It clears the text box, and removes the label.

View 6 Replies

[2008] MDI And Child Forms?

Mar 21, 2008

In VB6, MDI applications were possible. You'd create a form and a few Child forms and go with it.

View 7 Replies

2008 - Importing Forms From Another Project?

May 16, 2011

What i want to do is when button1 is clicked it disables tmr1 on the main form, and then opens up an instance of a new form, when that instance form is closed, the tmr1 on the main form is enabled again....how do i enable the timer control when the instance is closed?

View 2 Replies

Create Web Style Forms In 2008?

Dec 11, 2010

How to create web style forms in visual basic 2008

View 1 Replies

Forms :: Basic Calculator In VB 2008?

Dec 14, 2009

I am new to visual basic 2008, and i started with simple project-calculator. I made it to the point where "+" sign works, and "=" sign execute the command of "+" sign.Now i try to make "-" sign work: the problem is, idk how to bind it with "=". Here is the

Public Class Form1
Dim total1 As Integer
Dim total2 As Integer

[code].....

View 1 Replies

Forms :: Custom Dialogue Box In Vb 2008?

Mar 14, 2009

I would like to generate some custom dialog boxes that I can call from anywhere in my project.

The easiest example I can give is of a form that waits for two numbers to be entered then returns their sum. I want to call it like a function ie. sum = add_two_numbers( " Enter the numbers you want to add then click add)This is not what I actually want to do, that is far more complex, this just a simple way to explain what I want to do. If I can do this I can do what I really want.

Essentially I want forms that will accept some input, process it and return a string. A bit like an input inputbox, an openfiledialog box or a fontdialog box. I also need to pass strings to it.I can do it if I use a function declared in a module which calls the form and then returns the value once it is calculated but isn't there a simpler more elegant method?

View 10 Replies

Passing Data Between Forms Vb 2008?

Oct 20, 2010

I need to pass a double from form1 to form2 and have form2 return this value back. My problem is while i can receive the proper value in form2 i can not seem to get the corrected value back in form1 (using byRef in form1). Here is the code snip

Dim AmountPaid As Double = 8
Dim newInvoiceRow As InvoiceDataSet.InvoiceRow
If (MakeAPayment.ShowDialog(AmountPaid) = Windows.Forms.DialogResult.OK) Then

View 4 Replies

Same Progress Bar Show In 2 Forms - VB 2008

Feb 11, 2011

I have 1 form with the progress bar and 4 buttons with the following code. I would like to create another form that shows the same progress bar with the same progress. [Code]

View 1 Replies

VB 2008 Express Forms Disappear

Jun 30, 2009

I just installed VB 2008 Express and started a project.When I saved it, closed it, and re-opened it, my form was GONE! When I try to click on Form1.vb, it's blank.The project still runs properly.

View 4 Replies

VS 2008 .net Database Issue From 2 Different Forms?

Nov 5, 2009

I have done a dummy project to understand how do i have to deal with database with this new visual studio 2008 using VB. The code autogenerated to save new record in a table is:

Private Sub UtentiBindingNavigatorSaveItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles UtentiBindingNavigatorSaveItem.Click
Me.Validate()
Me.UtentiBindingSource.EndEdit()
Me.TableAdapterManager.UpdateAll(Me.databaseDataSetUtenti)
End Sub

I have created my own login form that try to access the table "utenti" handled on the users form (described before).

[Code]...

The problem is that from this code i cannot "see" new users added from the automatically created databinding of the user form...

View 2 Replies







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