Forms :: App Closes Automatically?

May 6, 2009

Actually I have a vb.net desktop application, it's quite a large application , POS actually. It was working fine since last few days, when it started acting up. What happening now is, while running smoothly it just closes automatically, no error nothing?!?

View 1 Replies


ADVERTISEMENT

VS 2008 : Database Connection Closes The Form Automatically?

Apr 15, 2010

I have a piece of code connecting to my database retrieving data. I was just testing the form on another computer and everytime it loads this specific form it closes the form.You can see the lines I had to comment out in order for the form to NOT close on load. Is there something possibly that needs to be installed on this other computer? running XP pro 32 bit.

Dim conn As OleDbConnection
Dim comm As OleDbCommand
Dim dr As OleDbDataReader
Dim connectionString As String

[code]....

View 6 Replies

Forms :: Form Closes The Whole Thing?

Apr 4, 2010

[MyCode]
Rigger.Show()
Me.Close()

Instead of showing Rigger.vb and then closing form1.vb, it closes the whole thing. I need it to leave Rigger open, and close form1

View 1 Replies

Serial Port Closes Between Forms (Classes)

Nov 19, 2009

I'm using several forms, each requiring access to the serial port. When I switch between them the port is deactivated. The port is activated through a special library command. How can I keep the port open and provide access for the other forms? I'm reopening the port triggered by form_load for form2 but that only works when I go to form2. When I come back to form1 the form_load trigger for form1 doesn't open the port.

View 2 Replies

Disable Validation On All Forms When User Closes Application?

Feb 26, 2012

Is there an easy way to disable all form validation when the user clicks on the "X" icon to close an application or when the user clicks on a button in the application that closes the application?[url]...

View 1 Replies

VS 2010 When The Client Closes Sockets The Server Closes As Well

Apr 9, 2012

I have a small problem with sockets (I'm new to sockets). Below is the code I'm using. The problem is that when the client closes, the server closes aswell. How do I stop it from doing that?

[Code]...

View 1 Replies

Forms :: Displaying Forms Automatically On Different Monitors

Jun 13, 2012

I have created an application that uses two forms one is displayed on a touchscreen and is a basic input form, the other is displayed on a large display monitor and is basically an information form, both displays are connected to the same pc. The program works great I have just one annoyance is if the program is restarted it displays both forms on the touchscreen and I have to drag the information form onto the big display. Is there a way to specify on load that each form gets displayed maximized on a certain screen so I don't have to drag one form onto the correct screen?

View 7 Replies

VS 2008 Closing All Forms When Program Closes Vs. Closing All But Main Form

Jun 4, 2010

Dim frm As Form
For Each frm In Forms
Set frm = Nothing
Next frm

The above code is what I used in VB6 to close all forms associated with my programs before my program closed. I have been searching for information on how to make sure all forms are closed when closing a VB2008 program.

I have seen info on using the Project Property Shutdown mode When startup form closes and I currently have this set.

Is this all that is really necessary? Will the garbage disposal close everything else to free up RAM?

Also, if I have several forms open and want to close all from the main form without closing each one individually, what is the best approach? Is there a collection like in VB6, go through the collection, compare it to the name of the main form and close it if it is not the main form?

View 4 Replies

Any Way Of Automatically Resizing Forms?

May 2, 2011

How to make my forms resize automatically. here's the situation. I have my intro screen, which a user may want to maximise. Once this is maximised, the whole program should stay maximised. Again, if the user chooses to restore the window to its default size, the whole program should remain in that default size. However, once the user clicks the button "Press here to start" on the intro screen, the form automatically reverts to its original size if it was maximised. I also need to be able to stretch the contents in the correct ratios to fit the new screen size.

View 9 Replies

Automatically Change The Forms Resolution?

May 4, 2012

So.. I created an full-screen application. It worked out perfectly on my own computer, but at my friend's computer, it was totally ****ed up. I guess it's the screen resolution. So, here's the question: - How do I automatically change the forms resolution, based on the screen size? (I don't want the user to do it manually...)

View 2 Replies

Automatically Fill In Online Web Forms?

Jan 31, 2010

I'm trying to fill in web forms automatically by using the vb.net webbrowser. I'm using code like the following to fill in the name:

Dim elementsInput As HtmlElementCollection = wb1.Document.GetElementsByTagName("INPUT")
For Each element As HtmlElement In elementsInput

[Code]...

The problem is this solution is not global. It will only work on text boxes with the name "OWNER_NAME". Writing out hundreds of variations for every text input there might be for name would not be very smart. There must be an easier solution?

how I can write a program that will work on ANY web page, no matter what the names of the text inputs are?

View 2 Replies

Forms :: Getting A Wait Cursor Automatically?

Aug 25, 2009

I'm developing a big VB.Net Winforms application. Every now and again, processing or db connections take some time and therefore I'd like a wait cursor (hourglass) to appear sometimes. I know I can do it like in this thread (in case someone needs the code):Hourglass?- technical discussion - developer Fusion - ASP.NET, C# Programming, VB.NET, .NET Framework, Java and Visual Basic Tutorials However, I have LOTS of code and I don't know when the user will need to wait. So, what I'd really want is to tell my ApplicationEvents file or the like to globally intercept after say 0.3 seconds and turn the arrow (default cursor) into the hourglass and at the same time disable mouse clicks and the like.

View 4 Replies

Automatically Match Checkboxes On Two Different Forms After Loaded

Jun 3, 2010

I have a form that opens another. I want the second form's checkbox to match the first form's after the second has loaded. I tried using MyForm2_Load, MyForm2_Activated and MyForm2_Shown but the checkbox checked state of the second form always changes the checkbox in first form. The code below works if I check the checkbox in either form, the other changes to match it. The problem occurs only when MyForm2 is first loaded. How can I get it to work the way I want it?

[Code]...

View 5 Replies

Forms :: Datetimepicker Pop-up Calendar Does Not Disappearing Automatically?

Oct 27, 2010

I am using datetimepicker control.

Initially I am setting
DateTimePicker1.CustomFormat = " "
DateTimePicker1.Format = DateTimePickerFormat.Custom

[code].....

View 1 Replies

Forms :: Getting Code To Run When Returning From Dialogbox Automatically?

Feb 27, 2009

i got two forms

form1 (frmUserDetails)
form2 (frmSearchForm)

when i click the search button in form1, form2 appears.i get the information i want from form 2 and store it in a variable.when i close form2 and form1 is active again i want this code to run automatically:

Me.userIDsearch = frmUserSearch.NuNameTB
Try
'TODO: This line of code loads data into the 'SoftwareLookupDataSet.tbl_software' table. You can move, or remove it, as needed.
Me.Tbl_softwareTableAdapter.Fill(Me.SoftwareLookupDataSet.tbl_software)

[code]....

how would i get the above code to run when the focus is back on form1?

View 8 Replies

Use A WebBrowser Control To Automatically Fill Forms?

Mar 26, 2010

I need to automatically fill forms in a WebBrowser Control. There are TextBoxes and CheckBoxes. How can I automatically set their value programatically? Language: VB 2008?

View 2 Replies

Forms - WebBrowser - Automatically, Randomly Fill Data

Jan 18, 2009

I'm currently making a Program that will automatically and randomly fill in Username and stuff like that, in a webbrowser. A yahoo account maker. and i'm stuck at the part with that image. I want to copy the image to a Picture Box inside the Visual Basic 2008 program. [Code]

View 3 Replies

Forms :: Automatically Update Value When A User Changes The Listbox Item?

Feb 17, 2009

how can i automatically update my value when a user changs the listbox item. At the moment i have a button click when the user changes the list box item and press the button the values get updated, everytime the listbox item get changed i have to repeat it click the button to update the value. I want something where automitically as soon as the listbox item selected the total value in the text box to change without clicking the button:

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
If ComboBox1.SelectedItem = "Seafood" Then
TextBox1.Text = 3.5 * ComboBox2.SelectedItem

[code]....

View 6 Replies

The Code Automatically Generated By VB Forms When Adding Controls

Mar 27, 2012

In the early generations of VB.NET visual studio, I used to see an automatically generated region named "Windows Form Designer generated code" that includes the code that generates the controls at the surface of a form. But what happened with VS 2008, I can't see that region any more ? Where are the lines of code that are automatically generated that create controls and set there properties ????? Luai Alrantisi, BSc in Computer Engineering, University of Ottawa 2007, Canada. IT Manager of MTN Mobile Telecom.

View 2 Replies

Forms :: Automatically Assigning Alphanumeric Roll No In Datagridview Column?

Sep 28, 2011

i have a datagridview on a form which contains studentname (in alphabetical order) and a blank rollno field according to the particular class.Now what i m suppose to do is to assign roll no on button click, starting from first student to last student.

Roll no is like 11DCE001...For eg:-
Roll No StudentName
11DCE001 A

[code]....

View 1 Replies

Forms :: Automatically Resize A Windows Form To Fit A Smaller Display?

Jul 13, 2009

Is there a way to automatically resize a windows form to fit a smaller display? I created a program on a computer with a 12" display, everything works fine. However, when I load the same program on a computer with a 8" display, I am not able to view all the contents on the windows form. Is there a way to correct this without manually resizing all the contents on the form?

View 1 Replies

VS 2008 - IDE Bug - Make Certain Forms Automatically Close After A Timeout Period

Sep 14, 2010

I caused the VB.NET2008 IDE to do something extremely odd and unintentional with some code I was writing. As some of you know, I mostly write programs for industrial equipment. On one of our products, I needed to make certain forms automatically close after a timeout period. To do this, I began programming a usercontrol with a Timer on it (interval = 1000) and a ProgressBar. Timer.Enabled was set to the Enabled event so I could toggle it. When the control counted to it's timeout period, it would call Me.ParentForm.Close

So I build my project, and drop it on a form in the IDE and I see it begins counting! Huh... I had no idea timers were active in the IDE. I wonder what happens when it hit's it's trigger? I figure probably nothing since Me.ParentForm was actually the designer. When it triggered, the whole IDE crashes without save. I tried it twice now. Here's my

[Code]...

View 4 Replies

Forms :: Make The Pixel Move Automatically Until A Stop Button Is Pressed

Mar 30, 2011

I currently have a working program that creates one colored pixel in a Bitmap, displays the bitmap in a pictureBox, and "jiggles" the pixel by making it move in a random direction by 1 pixel every time a button is clicked. I want to make the pixel move automatically until a Stop button is pressed.

[Code]...

View 2 Replies

Forms :: Resize And Already Open Window To Automatically Accomodate A New Open Window?

Feb 24, 2009

if you guys have used office 2003 or better( i am sure all) then you would have seen that when the help window open it causes the active windows say of MS WORD to change accordingly so that this help windows fits with it along the right side and this functionality i want to implement in my VB windows application and have no idea how to do it Also i have seen this feature in GOOGLE DESKTOP GADGETS...

i want to implement that when my application opens which ever is the active window( of any application) snaps to the left and allows my application to fir in the right hand side i am developing my application in VS 2005 using Visual Basic.

View 1 Replies

App Closes When Minimized Or FocusChanged?

Nov 30, 2011

I am making an application that manages a MySQL DB on a server. Its working perfect and no errors...The problem is if I have the application opened and I do one of the followings:-Minimize the application-Change focus to another window like MyDocuments Folder, Internet Explorer or whatever I have opened.-It not only happens while in the VB.NET environment.Also to the final compiled executable.-Continue after verifying a variable with a Break Point (F9), just closes the application.-If I make the application form minimize through code it also closes the application (WindowState Minimized)

View 8 Replies

As The New Form Opens Up Everything Closes?

Jan 23, 2010

when you login it is the meaning that another form opens. But as soon as the new form opens up everything closes. The code i used is this:

Public Class Form1
Public Goldhave As Integer
Public UserName2, Password As String

[Code].....

View 4 Replies

Console Closes Too Soon After Error?

Mar 25, 2009

I am in the process of moving a program from development to deployment. Program built with VS2005 and .NET 2.0. On one of the computers I need to deploy on, I'm having a problem. Very early in the program, seemingly before the main form_load routine begins, I'm getting an exception. But I can't see the information about it, except for a fleeting split second.As a part of its normal operation, my program (a Windows Application) creates a console for itself, using AllocConsole. This takes place as part of the constructor of a global variable, so it comes before form_load. The console appears, without contents. Then pops up a window saying, "<program> has encountered a problem and needs to close. We are sorry for the inconvenience." When I click on the Don't Send button, a full page of "unhandled exception" information appears -- for a fleeting moment, far less than a second. Then the console closes, because the program has closed.I've tried everything to get at this information. I tried running the program from a cmd console, instead of letting it create its own console. No output appears at all. I'm still working on remote debugging, but I can't get that to work either.

View 2 Replies

Detect If .net Application Closes?

Nov 15, 2011

I've been looking around the internet and I haven't really found any solution to my problem. Is there a way to perform a function when a user closes the form either by pressing the X button in the top right hand corner? I am using a database that saves what form the user is currently looking at, and when the application is closed I want to say "offline."

View 4 Replies

Detect That A Form Closes?

Jun 10, 2012

I have one form which stays open, and lots of other forms which can are opened and closed regularly how can i detect that a form has closed on the main form?

View 6 Replies

Dialog Box Closes Without Permission

Jul 28, 2009

I'm writing an application in which a user can add, change and delete members from a list of members, and the adding and changing is done in a dialog box with some input fields.The problem is that when the user presses the OK button it should test whether some combobox is still empty, since this will otherwise return nothing and that will create an error somewhere else in the program. I do this within the OK_Button_Click event of the dialog box by testing whether the selectedItem is equal to nothing, if not it calls me.close, but if it is equal to nothing it displays a messagebox indicating that the user should still pick something from that combobox.Now the problem: when the OK button is clicked in the messagebox the dialog box also closes, even though the me.close isn't executed. [code]

View 2 Replies







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