Combo Box Crashing Form?

Jun 1, 2009

but it's strange. I have a few combo boxes on a form that are fed via select query. They each are populated by their own table. Each of the tables feeding them have a codeassociated with a name, function etc... the code is what is stored in the form's table. I have another select query that converts the code to the name or whatever so that the user does not see the code, but the name associated with it when the form loads.What is happening is: The form loads and if i don't touch any of these combo boxes every thing is fine if i update them, I can't tab off the combo box or move the cursor anywhere, or even close the form. I have one of these boxes with the same code and it works fine.. I don't understand what is going on... I have an after update function that is the same on all of them and it is indeed updating correctly....

Public Shared Function LoadCallSource() As String
Dim sConnectionString As String = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:Documents
and Settingsdiw07My DocumentsDaily Backupsphone memo backend.mdb"

[code].....

View 12 Replies


ADVERTISEMENT

Create A Stopwatch In One Form And Another Form Show My Progress Bar Using A Combo Box

Nov 11, 2011

Im trying to create a stopwatch in one form and another form show my progress bar using a combo box for mins and seconds to show the progress bar on form1 1

[Code]...

View 2 Replies

VB 2008 - Change Child Form Combo Box From MdiParent Form

Feb 23, 2010

In VB 2008, I have a Parent form with a combo box on it. There is a child form also with a combo box on it. I want to be able to change the values on the child form based on what the user selected from the main form. The user launches the child form from a toolbar on the Parent form. The following code is run:

[Code]...

What I want to do is if the Parent's combo box has "Red", "Blue", "Green" values and the user selects "Green", the child form's combo box(With the same values) will also change to "Green". (I do not need to change the Parent form if the child form changes.) I've tried changing the Child's combobox from the combobox's change event on the Parent form, and the code runs, but nothing changes on the child form.

View 5 Replies

Load The Combo Box'values From One Form To Another Form's Combobox?

Nov 15, 2011

how to load the combo box'values from one form to another form's combobox

Example:

form1:
cust(table name)
no(textbox)

[code]....

now i load the form1's name which is the combo values .. to form 2's combo box whixh is name of 'CName'

View 2 Replies

C++ DLL In VB Crashing

Dec 9, 2011

I have a dll that someone made me in C++. I needed to use this dll in VB, in order to do that I had to make another dll in C++ that has functions I can call in VB.

The C++ dll I made has 4 functions. 2 callback functions that retrieve information from the original C++. And 2 functions that I can call from VB to send that information.

I know the original dll works fine as Ive tested it endlessly in a console app.

However when I use it with my dll and VB.. I get random crashes.

There is almost no code in my VB app as its just for testing. It just outputs the information so theres no problem there.

I believe the problem is in the C++ dll I made. I am pretty new with C++.I think maybe a variable gets accessed in 2spots at the same time (is this possible?) and causes it to crash?[code]...

View 2 Replies

Add Stuff Form One Combo Box To Another?

May 11, 2011

i am working on a project! the problem i am having is that i have two combo box first combo box takes stuff form the file and then add it to listfile it also removes that selected file from the combo box.suppose i have four carid in my combo box...when i select one car and then send it to dispatch it removes form tht combo box and add it to the lst file... this much i can do. is i need that carid that removes from the combo box should add in another combo box ... but i cant able to do it

Public Class MainForm
Private strCarID() As String
Private strTime As DateTime
Private strDate As DateTime

[code]....

View 27 Replies

Open Form From Combo Box?

Oct 30, 2009

i have a simple form that allows one to see all forms in project through a comboboxthe problem is i want to be able to open these formsbut i dont want a "hardcoded" command, i want the "form.show" statement to be taken from whichever form is picked in comboboxme and my copadres have tried a dozen different ways and keep drawing blanks and errorsbelow is my load codelemme combo box with list of form names,

Select form name,
Click open button
the selected form opens!

[code].....

View 6 Replies

Repopulate A Combo Box On Another Form

Jun 26, 2009

I have a form that among other things displays a list of customer names in a combo box. Should the person that launched that form not see the customer in that combo box they can launch another form that will allow them to add the missing customer. The 2nd form adds the customer name to the customer table and the customer information to the customer information table - the 2 tables are related by the CustomerID.I have no problem saving the record to each table but in the process of saving the customer name to the customer table, I would like to refresh the combo box on the 1st form so the newly added customer is displayed in the combo box it was previously not found in.Each time the new customer is added I would like to update the combobox with the new customers name so the user of that form can use it to complete the task it was designed for. I have tried "frm.combobox.refresh", "My. frm. combobox.refresh", changing focus to the first form - none of which worked.

View 6 Replies

App Keeps Crashing On 32bit PC's

Sep 5, 2011

My app wont start up on any 32bit PCs. It brings an error. Ive tried all the solutions mentioned like going into Compile and changing the Platform, and other things. I have come to the conclusion it Might just be something faulty with my coding. Here is the only place in my code that could be doing it.

[Code]...

View 1 Replies

My Program Keeps On Crashing

Jan 28, 2009

im creating a project on vb and every time i get quite far into it, it seems to stop taking in commands. For example i have form 1 with loads of buttons and wen i add another one and start debugging the new button (or whatever) wont be their, this has now happend three times and im getting very annoyed.

View 8 Replies

Combo Box Activates On Form Opening?

May 15, 2009

I have created a main form in my program to which I have added a combo box containing 12 months of the year. What I want is when the selected month is changed it should call a subroutine which does a calculation. The procedure works but the combo box acts as if the selected item has been changed as the form is opening which is not what I want as at that time there is no data loaded for the procedure to do it's calculation. So what I want to know is, is there some way to prevent the combo box from behaving this way at start up?

View 5 Replies

Combo Box And A Property Grid In A Form?

Dec 15, 2011

I have a combo box and a property grid in a form. The combo box contains 2 items. If one item is selected, two properties are listed in the property grid. These properties should have a dropdown that contains a list of items. I have two string arrays that contain the values for these properties. Can I use one TypeConverter that inherits StringConverter for these lists to be displayed in two different properties? That is, with one TypeConverter class, can I populate both the lists? I will also have to do the same with the other items in the combo box.

View 2 Replies

Form Show After Select Combo Box Value?

May 13, 2012

when i select 1 week so this frm show after 1 week to the current date

View 1 Replies

Function Key Form Combo Not Working?

Aug 10, 2010

I have a form that displays a graph. From the appropriate toobar button click frmGraph.show is called and it works. But when I call it from the assigned F6 function key the graph hardly ever displays. Sometimes it does display properly, sometime it flickers a one time display of the graph then it's gone, but mostly the form just draws the background but no graph. In debugging this i discoverd that putting a message box just before the call to frmGraph.show the graph will display properly everytime after i click ok in the messagebox. Anyone know how to cure this or at least a workaround that doesn't involve displaying the messagebox? This is the code with the messagebox("here") just above the call.

View 8 Replies

Refresh Combo Box In Windows Form?

Mar 9, 2010

I have a Main form (a window form) in VB.NET which has a Combo Box to display a list of countries. A sub form activated from a "Button" on the Main form allows users to add Countries to their list. But After Adding a new entry the Combo Box on the Main form does not show the update (while it is still open). I have to exit the main form and relaunch it to see the update.

The populate function in shown below. I call this method after adding new countries but still; not good. I have used Invalidate function of combo box but of no use as well.

Public Sub PopulateCountry()
Dim rsLocal As New ADODB.Recordset
Try

[Code]......

View 1 Replies

[2008] Loading Form Name From Combo Box?

Feb 18, 2009

on this program you have a ability to choose items from a list lets say

Apple
Blueberry
Cheese

when you push button1 and have selected an Item from the combo box, it launches That form

Dim times As Integer
Dim name1 As String
name1 = ComboBox1.SelectedItem

[code]....

(it used to be Object instead of string when I dim'd name1)

View 5 Replies

Application Crashing On Sbs 2008?

Nov 16, 2010

An application working fine on Microsoft Small Business Server 2003 (Windows 2003) 32 bit when installed on Microsoft Small Business Server 2008 (Windows 2008) 64 bit crashed with the following trace;SUB: MyApplication_UnhandledExceptionException Type: System.TypeInitializationExceptionMessage: The type initializer for 'IV.modMain' threw an excep

View 2 Replies

Bonjour .Net App Crashing Due To Svchost.exe?

Aug 5, 2011

I developed a .net application which uses bonjour to chat with other instances of the app on LAN. The application works fine on 5 pcs(4 with xp sp3 and 1 with windows 7) out of 6. On one computer (with windows 7 installed) the app crashes as soon as i try to register into bonjour service.

After digging deep into the problem i noticed that too many svchost.exe processes are running on the pc on which app crashes. After carefully terminating the svchost.exe's i came to know that by terminating one svchost.exe which consumes around 50Mb Ram, the app works absolutely fine.

The process path "C:\Windows\System32\svchost.exe"
Process Command Line "C:\Windows\System32\svchost.exe -k LocalSystemNetworkRestricted"

When i terminate the process, app starts working fine.

PS : Even after terminating the process restarts itself and app works fine.

View 2 Replies

C# - Threading In Asp.net Crashing Server?

Mar 17, 2011

I'm trying to get threading to work in ASP.NET but for some reason it keeps crashing my local server, and simply does not work at all when uploaded online. Here's the code:

[Code]...

View 3 Replies

My.settings Is Crashing Game

Jan 30, 2012

this just makes no sense at all right now...the last time that I was debugging my game, this worked fine, now it crashes my game every time I try to load... ok, I have the users chosen font saved to the my.settings file of the game, and now, every single time that I go to launch the game, it crashes upon trying to load this chunk of the my.settings file...

[Code]....

View 2 Replies

No Errors But Program Crashing?

May 11, 2012

for our culminating activity we must make a program that uses a bunch of things etc.

i decided to go the extra mile and make sudoku.

The problem lies in generating the puzzle, the program always crashes, but there is never an error. im sure there are easy ways to make the generator, but from what we've learned this is the only way i know how to do it.


Private Sub FirstBlock()
Randomize()
intNumber(0, 0) = Int(9 * Rnd() + 1)

[Code]....

i made a function for each 3x3 square, and what happens is the block its currently on, checks for interferences horizontally, vertically, and within each 3x3 square, because computers process in order, i set it so that it only checks for previous block interferences, since this is the first 3x3 quadrant, there are no previous horizontal/verticals to check.

The code works fine, the problem is when i run it, it says its running but no form appears, i learned to use a progressbar to try and separate each 3x3 block to generate individually, to try and split the processes up 1 second at a time. the problem is, it does run, but it only generates a certain amount before it crashes, and every time its different, sometimes it generates half the puzzle, sometimes 1/3rd, sometimes only the first quadrant.

View 13 Replies

Program Crashing Using Treeview?

Feb 20, 2011

In a program I have written I have FileSystemWatcher pointed two directories. When there is a change it keys up and using a listbox rewrites the files in the folder to the listbox. This all works just dandy.. however..

I wanted to change the listbox out for a TreeView. When I first initialize the TreeView on program start, no problems, but when the FileSystemWatcher kicks in the program crashes. I have tried running the debug but it crashes without any error, just the windows error that the program has stopped working.

I am running Dual XEON Quads with 8Gb RAM and Win7 Pro up to date on all patches so there shouldn't be a problem there.

Here is the code for the listbox:

'Setup Filewatcher for Scan Folder List
Public scanfolder1 As FileSystemWatcher
Public scanfolder2 As FileSystemWatcher

[Code].....

View 4 Replies

VB App Crashing VS And Destabilising System?

Sep 18, 2011

I am really pulling my hair out on a problem with my VB Windows Forms app, which appears to be overwriting memory and causing everything on my system to start crashing - have to Logoff or Restart to get a stable system back. I have reported this problem on Connect [URL].. but no response as yet. I am hoping that someone can help me understand what I am doing wrong or how I can work around the problem.

View 1 Replies

Why Application Keeps Randomly Crashing

Apr 15, 2010

Is there a way how i can see why my application keeps randomly crashing?

View 9 Replies

Capturing Form/combo Box Data To Mysql?

Jul 28, 2011

Im trying to capture the result of a combo box and time/date stamp this to mysql. I have a working connection between the form and the db able can anyone tell me how to achieve this?

View 2 Replies

Combo Box Items Send To New Form ListBox?

May 9, 2011

Our chapter is all on printing, but the teachers example sends the data to a new form, into a listbox. How do I take the contents of a ComboBox from one form and input it into the ListBox on another form, first adding the line "High School List".

I have this much, but then don't know how to read fromt he ComboBox. Not what is highlighted, but the full contents.

FrmPrint.Show()
FrmPrint.LstPrint.Items.Add("High School List")

View 3 Replies

Form Show Selected Combo Box Values?

May 13, 2012

[URL]

View 1 Replies

VS 2010 Adding Combo Box Into A Windows Form?

Mar 19, 2011

I'm using windows form (vb2010) for data entry.. so now I want to add a combo box into my windows form using sql code because all my connection & Inserting records in SQL command. And other important matter is the combo box should connect to my SQL Server database Table.

Combo table Name : TblPosition
Data entry Table : EmployeeList (with EmpId, EmpName, Position, BasicSalary) fields.

View 3 Replies

.NET 2008 Application Crashing During Do Loop?

Jun 4, 2010

I am writing an application to compare each item on listbox1 to all items on listbox2. If the item is found, then remove it from both lists. The goal is to only have the items that were not found remain on both lists.

The problem is, the application just hangs and I never get any results. I looked at my code several times and I cannot figure out what's going on (programming noob I know.

[Code]...

View 4 Replies

Access The File Without The Application Crashing?

May 17, 2010

I need to check and see if I can access a file(the file is in use) So When I try to access it the application crashes. When I can access the file without the application crashing I would like a msgbox to pop up.

View 3 Replies







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