Working With Different Forms?

Mar 31, 2009

i am involved in a project where i have four forms. access,oracle,sql and display resptly. the fourth form is common form for the other three forms. in the fourth form i have to write a code that opens connection to oracle database if its previous form is oracle or opens connection to sql database if its previous form is sql.

View 1 Replies


ADVERTISEMENT

Convert Already Designed And Working Forms To MDI Child Forms?

Dec 11, 2009

I build my first Project composed of several forms and it�s working just fine. Id like now to redesign the project as a MDI Application. Once created the parent form, I can create child forms but thats not what I need. What I would need is convert my already designed and working forms to MDI child forms. How can that be done?

View 1 Replies

Working With 2 Forms?

Feb 8, 2010

So on Form1 I got a TreeView, and on Form2 I have a Button. What I want is when I click the Button on Form2, it adds a Treenode to the Treeview on Form1... How do I do this? Do I use inheritance or partial class or what?

View 4 Replies

Forms :: Working With Threads?

Jan 9, 2010

Public Class ThreadSearch
Inherits frmStDetails 'Windows form which contains my control
Public Event finishedSearching()[code].....

This is the procedure I used to start the thread. It doesn't generates error but the problem is 'IT DOES NOTHING'.

View 9 Replies

Working With Multiple Forms

Oct 4, 2010

I am currently making a book shopping cart. look at the pictures to get an idea.(main is the first form "file books" is when the second printbook opens and user selects. The application has four books and calculating the subtotal of them. The user can choose to buy any ammount of books. The "Add book to Cart" button calls the module1 Module1.main1()

And this is the module1 code ( I tryed using a select case)

Module Module1
Public Sub main1()
Dim Print As Decimal

[Code].....

View 7 Replies

Working With Multiple Forms?

Feb 18, 2009

I have a couple of questions regarding the use of multiple forms within a single project.I'm currently using a button to load a second form so that the user can select different options and then load those options from the first form.Basically, I have a check box on form2 and I want form1 to be able to know if it is checked. I thought I could just use:

if CheckBox1.Chcked = True Then
Etc.
End If

But, when I do, I get an error saying it can't identify the object I'm referencing.Also, when I open the second box and I click my "OK" or "Cancel" button, the page reloads and then I must press it a second time for it to actually close.This is the code I'm using on my first form:

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click

Dim frmDialogue As New frm2Toolest
frmDialogue.ShowDialog()
If frmDialogue.ShowDialog() = DialogResult.OK Then

[code]....

The second form that has the buttons:

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnOK.Click
Me.DialogResult = DialogResult.OK
End Sub

[code]....

View 11 Replies

Console.Write Not Working In Win Forms App?

Apr 14, 2010

I created a VB.NET Windows Forms Application in Visual Studio 2008. When I run my program from the command-line, I get no output (only the next prompt).

Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Debug.Write("Foo")
Debug.Flush()

[code]....

EDIT: Can a program have a form and a console?

EDIT2: However, the output appears on the next command-line prompt. Can a Winforms application tell the command-line to wait until it's finished instead of immediately returning?

View 6 Replies

Forms :: Bgcolor Not Working Properly?

Mar 27, 2009

I designed a software in which I used active captionas background colour. Now It works on my computer or current OS but not working properly onto other computers or OS. I mean to say that the background colour

View 1 Replies

Forms :: Dispose Function Not Working?

Mar 10, 2010

Loading another form increases the memory usage of the application and after closing is not combing back to normal? dispose function at formclosed event is not doing that

View 12 Replies

Tabbing Not Working In Vb6 Forms Called From .NET?

May 23, 2010

the message pumb of vb6 forms is taken by the hosted application (.NET) , we are currently in a process of calling our system from .NET but after using ShowWindow Lib "user32 API i stuck into same problem of Tabbing not work in correct way as it had been set in design time , ChaosTheEternal solution dosnt show form as modeless which its reuired to me?

View 1 Replies

VS 2008 Working With Multiple Forms

Mar 15, 2010

Im very new to programming all together, but Ive recently been messing around with Visual Basic 2008..

1. When using multiple forms, how do I make a form be the form that opens with the program (default form?)?

2. How do I assign a button to open a second form?

With what I'm trying to make, I have both forms ready, I just need form2 to be the one that is the first to open when running and I need the code for a button to open form1.

View 7 Replies

Working With MDI Parent/child Forms?

Feb 28, 2011

I am using a parent for with child forms and i have made the option to "Float" the child windows outside of the parent form and "dock" them back in if you want.I'm doing this with a button on the child form to float/dock it. On the other hand I'd like to use a checkable item on the menu to choose if they are docked or floated from the opening point.

View 6 Replies

Forms :: Cancel Button 'Esc" Not Working

Sep 12, 2011

I have a login form (startup form) with OK/Cancel button, and each set on the form as Accept/Cancel button - works fine.

After login my main form loads, it has keypreview on. This main form opens a new form (after user clicks a client search button) with an OK/Cancel set up the same as the login form.

On this search form, the Enter key works (it calls the OKbutton click just fine), but the Esc key does not.

The cancelbutton property if set to the cancel button, and this form does not use keypreview.

The form has focus, I clicked it to be sure, but in any case the enter key works.

View 3 Replies

Forms :: Create A ControlArray Instead Of A Non-working For-Function?

Aug 7, 2011

My Problem is, that I have some Buttons, Labels and TextBoxes I need to generate after the User told a number of Players. With the Code I'm using now only the last Player will have these Controls working, because they are moved - for example - from Player 1 to Player 3. how to create such a ControlArray The biggest Problem I have is, that these buttons have to have names like "1", "2", "3" and so on (or if it works somehow to read out the Index of a ControlArray the names will not be necessary).

This is the code I am using right now to generate the Controls, but as you see it won't work, because the properties will be changed when the For-Function restarts.What I need is a hint on how to get these Controls/Buttons into a Control-Array and then read out the Index-Number to use them in the Functions that are called.

Public Class Form1
Private btnTestNumButtons() As System.Windows.Forms.Button
Private Sub CreateButtonArray()[code]......

View 1 Replies

Forms :: Listview Itemactivate Stops Working?

Dec 23, 2009

I have two forms frmA, frmB. I have a listview on frmA with a couple items with tags. In the listviews Itemactivate event I get the FocusedItem's tag and open frmB. Everything works fine until I close frmB and come back to frmA. The original item is still selected but the Itemactivate no longer opens frmB. I can step right into the frmB.Show line on frmA, it's just that frmB nevers shows.

Private Sub ListView1_ItemActivate(...) Handles ListView1.ItemActivate
Select Case ListView1.FocusedItem.Tag
Case "showfrmB"

[code]....

I've tried adding Hides, Activates, etc. with no luck.

View 4 Replies

Forms :: ProgressBar ProgressBarStyle.Marquee Not Working

Dec 11, 2010

I have the following sub that displays the progress (the Animation speed is 50 - but I've tried with other values)

[Code]...

I should mention that the control is created dynamically and placed on a dynamically created TabPage that in turn is added to the main tab control that is on the static form (Form1) that is refreshed - but I do believe that 'Refresh' should ripple though to all sub controls?

View 5 Replies

Going Back & Forth With Two Forms - Working With DropDownList Item

Oct 17, 2010

So here is the deal. I am making my own program for fun, and I have this road block. Basically I have a 'Parent Form' which we'll call 'frmMain' and I also have another form which we'll call 'frmSchedule' (work with me here)

[Code]...

View 1 Replies

Make Child Forms Working At The Same Time?

Feb 9, 2010

In this example I want the loop button works in all mdi child forms at the same time; now in the first mdi child form it will work, but when getting a new mdi child form with that, it will stop in the first one!

View 3 Replies

VS 2008 - Working With Two Forms (Focus On Both) At Same Time

Jan 18, 2011

I have a form from which I am visually representing data (from access database). I have set up a user log on a separate form (allows user to make comments as they scroll through the data and see any points of interest etc). The second form is linked via a textbox in terms of a common field in this case the field name is "Datetime".

What I want to do is be able to scroll through the data and make notes on the second form and add them to another table in the database. I have managed to do all the above but obviously loose focus of the second form when i scroll through the data on the first. Is there any way of being able to interact with both forms at the same time?

View 6 Replies

Working On A Windows Forms App That Will Average A Set Of Numbers?

Jun 13, 2011

I'm working on a Windows forms app that will average a set of numbers, the only catch is that there are 10 textboxes(4 in the example for times sake), and not all of the textboxes could be filled with a number...I know that if i had a given set of numbers:

Dim a, b, c, d As Integer
a = t1.Text
b = t2.Text
c = t3.Text

[code].....

View 2 Replies

Forms :: Tabcontrol1.tabpages.remove Not Working In A Particular Event)?

Jun 15, 2010

I have an event called "worksheet_selectionchanged" which occurs when a range/cell is selected in an excle file.When the event is triggered, all the tabpages in a tabcontrol should be removed.The code is given below:

Private Sub myWorksheet_SelectionChange(ByVal Target As Excel.Range) Handles myWorksheet.SelectionChange
for each tabpagesToRemove as TabPage in tabcontrol1.tabpages
tabcontrol1.tabpages.remove(tabpagesToRemove)

[code]....

but when ever i select a cell in the excel file, the tabpages seems to be "not removed".

View 4 Replies

CompileExecutable Function Working For A Windows Forms Based Application?

Nov 16, 2008

I refer to the CompileExecutable function at.>> [URL] I have attempted to try and get it working for a Windows Forms based application from about my 4th post in this thread.>> [URL] Has anyone had any success in using it or a variation of it? links to VB.Net tutorials see here.>> [URL]

View 1 Replies

Forms :: Double Click Handler Not Working On Dynamically Created Picturebox

May 12, 2011

I have a Winform application where i added picturebox's to a flowlayout panel dynamically from code. I have successfully managed to add a handler for doubleclick and click events the problem i have is that when i add both together it only seems to work with the click event and not the double click. where I could bee going wrong? Iam using VS2008 .NET 3.5 my code looks a bit like this :

Public Class Class1
Dim WithEvents picturebox1 As PictureBox
Private Sub Brochure_Creator_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

[Code].....

View 3 Replies

Forms :: TextChanged Code And Button Click Code Not Working?

Jul 2, 2009

I have made an application in VB.NET.The Button click codes are working fine. I have made a small modification in the code. I have commented the line 'Me.Close'But still my form gets closed. I think the application is executing from elsewhere.

View 8 Replies

Forms :: Making Inactive One Form While Working On Another Form

Feb 12, 2010

suppose i have two forms form1 and form2

and i clicked on button which lead me to the form2

i want i shouldn't be able click on form1 untill and unless i close the existing form window(i.e form2)

View 2 Replies

UnhandledExceptionEventHandler Samples From Msdn Working, In My Code Not Working?

Sep 3, 2009

I found on msdn samples and modified (add Thread.GetDomaind.UnhandledException)

<SecurityPermission(SecurityAction.Demand, Flags:=SecurityPermissionFlag.ControlAppDomain)> _
Public Sub Main()
' Add the event handler for handling UI thread exceptions to the event.[code].....

View 1 Replies

VS 2008 Cannot Seem To Get A Working Filter In Working Order

Jun 18, 2009

It appears that my favorite thing in the world is tackling projects that are beyond my current knowledge and abilities. I have a little project that I am working on which is a simple image viewer stocked with (upon completion) your standard Load..., Next/Previous, Zoom In/Out, Actual Size, and Full Screen capabilities. However, I am running into a few snags:

(1) I've been able to get my "Load..." button to display a file dialog box, but I cannot seem to get a working filter (with which only image file types are allowed to be selected) in working order.

(2) I have a PictureBox object (entitled PictureBox1) that displays the image selected via the file dialog box, but it loads images in their full size (1:1/100% zoomed) state without scrollbars, etc. to allow me to navigate the loaded image. I would like to have it load the image, initially, to fit within the dimensions of PictureBox1 and from there be able to zoom in/out via my "Zoom In/Out" and "Actual Size" buttons and be able to scroll if the zoom level is beyond the dimensions of PictureBox1.

(3) It dawned on me that I haven't the faintest idea how to get my "Next/Previous" buttons to allow the user (me) to navigate, in succession, the images contained in the folder in which the currently loaded image is stored. [code]

If it is deemed that this thread is inappropriately requesting help, I ask that it be locked/deleted quickly as I recognize that this is a large community with many discussions going without need of unwelcome posts.

View 9 Replies

Basic Application(windows Forms) Doesn't Exit Properly After Navigating Through Forms

Jul 9, 2010

I have a basic three form application. It doesn't seem to close after navigating through forms. If I were to open the application, and the main form is displayed. If I press the X button, the application closes fine(Goes from processes) If I were to open the application, and then navigate from the main form to another form using me.hide & form1.show, and press the red X on Form1, the application again, closes fine.

[Code]...

View 6 Replies

Forms :: Visual Studio 2010 Windows Forms App Screenupdating Property?

Jun 4, 2011

.NET developing and have a simple question, i've been stuck on this for a while and searched many forums first with no solution so i'm posting myself. In VB for excel i've used Screenupdating=false to disable the screen updating however now i'm creating a visual studio 2010 windows forms application and its not showing up as a property. Here's the code i've tried.

[Code]...

View 4 Replies

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







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