VS 2008 [RESOLVED] ComboBoxes

May 11, 2012

I have 3 Combo boxes that have number 1-9 in each, i would like to make it so that if the first one is set to 9 then the and the second it set to 8 then the first 1 is set to 1, i need them to only equal 9 through all the boxes?

View 6 Replies


ADVERTISEMENT

VS 2008 [RESOLVED] ListView Changes Mid Code?

Aug 27, 2009

This one is causing me a lot of frustration, and as far as I can see, it should work. What I have is a form with 9 ListViews (ListView1 through 9), and I want to add items to them.The issue is, I have a routine that sets which ListView to use. Say I have set it for ListView4, it works initially on the first file, but after one line of code. it reverts back to ListView1 for the remaining files. (itmModelItem = lvwModels.Items.Add(ModelName) in AddModel.

[Code]...

View 3 Replies

VS 2008 [RESOLVED] System.Net.Dns.GetHostAddresses

Apr 9, 2010

Yesterday s**ked, and today ain't (sic) looking better. I have an application I have been working on and it can be slow to start when my ISP is down because of DNS. My ISP was down for 3 hours yesterday, so I didn't think much about this piece of code I had added, until I found that it is always slow to start. This code is supposed to return your IP address and my reading of the link suggests that should be immediate, but it isn't, at least on my machine.Oh, and yesterday before the internet went down, I upgraded (oymoron) to XP SP3, and have had other problems.So my questions / request:

1. Am I doing this right?

2. If you run this on your machine does it take 39 seconds to return your IP address? [code]

View 11 Replies

VS 2008 - FTP Exception - The Remote Name Could Not Be Resolved: 'unkn'

Jul 12, 2010

I have another problem:

Sub download()
Try
GetPass()
GetUser()
GetPath()
[CODE]...

Bolded line makes an exception: The remote name could not be resolved: 'unkn' I guess it has to do something with threading, and path doesnt generate correctly username, password, and pth are generated from objects in another form, so i did it like this: Dim newfrm As Form1

And then acces the objects that hold user, pass... like: newfrm.textbox1.text

So, why do i get this exception then if im doing it the right way, and how do i get this to work?

View 4 Replies

VS 2008 : Error - Web-exception : Remote Name Could Not Be Resolved

Nov 22, 2009

I am trying to read in a Web Page, using the code below.However it keeps failing when it runs the line s = client.OpenRead(remoteUri) The error I am getting is

The remote name could not be resolved:[URL]

Imports System
Imports System.IO
Imports System.Net
Imports System.Text.RegularExpressions

[code]....

View 14 Replies

VS 2008 [RESOLVED] Threads And Problem With Form

May 26, 2009

Hi

I have a thread that it calling many processes.

While the processes are executed (spends some seconds or minutes in completing all the tasks) I show form "Please wait to complete all tasks".

But one of these processes I have to show a form because the user has to choose a few data. But the problem is that this form is showed minimized.

Already I have tried to show it maximized and to bring it to the front but it does not do it.

how I can show this form to front and maximized?

My actual code is:




f= New frmLPlantillas
f.WindowState = FormWindowState.Maximized
f.BringToFront()
If f.ShowDialog() = DialogResult.OK Then
value1= f.xxxx
value2= f.zzzzz
value3= f.aaaa
value4= f.bbbbbb
Else
Return False
Exit Function
End If

Thanks in advance.

View 5 Replies

Renaming ComboBoxes Causes Compiler - Cross Linked ComboBoxes?

Apr 24, 2012

this is a subset of a previously posted problem, I have narrowed down my issue and am reposting a question from this thread: [URL] I have apparently confused the compiler by renaming some comboboxes in Visual Basic .net express? (See relevant code below) I think the confusion is in who should handle what, with two routines named with variations of ComboBox1 and one handling the other ( it confuses me just trying to interpret it mentally):

[Code]...

View 5 Replies

[RESOLVED][2008] DataGridView Refresh / Jumps To First Entry

Feb 10, 2009

I'm successfully refreshing my DataGridView/Access DB by using the following.[cod]My only problem is after the refreshes the DGV rolls back to the first entry.Is there anyway to have it refresh but stay on the same line?

View 4 Replies

Filter ComboBoxes DataSource Based On Another ComboBoxes Changes?

Oct 28, 2011

I have a form with 4 comboboxes and a button. The first combobox is enabled, but the rest of the controls are disabled. When the form is opened I fill the first combobox (cbxMethod) with a datatable. When the user selects something in cbxMethod the next combobox (cbxStudy) will be filled and so on. When the last combobox (cbxAnalyte) has a selected value I want to enable the button and give it focus so the user can move forward with the program. I basically want to force the user to move from one combobox to the other, until all are filled.I am currently using the SelectionValueChange event, but this event only fires when the user changes the value with their mouse or hits the Enter key, not when the user hits the Tab key.

Public Class frmCalculatedAnalyte
Private cv_dt As New DataTable
Public Sub New()

[code]....

View 8 Replies

VS 2008 ComboBoxes Comunication?

Mar 18, 2011

vb
Imports System.Net.WebClientImports System.IO Public Class Form1 Dim link As String Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As

[code].....

View 2 Replies

VS 2008 Comboboxes In The IDE Disappearing?

Oct 18, 2010

I have a project where the dropdowns for the Form and controls (left side) and the events (right side) aren't available. I can re-boot, open and close the project or solution and still they do not show. They do show for other projects.how to make them come back?

View 3 Replies

VS 2008 DataGridView Comboboxes?

Oct 3, 2011

I have problem with a datagridview with combo boxes firing unwanted events handlers.I have a datagridview with 4 columns all data bound. All of these columns have comboboxes. Column 2,3,4 has a custom generated combobox with code with on the 'DataGridView_EditingControlShowing event' and have event handlers (Dropdown,selected Etc). (Data in the custom generated comboboxes needs to be filtered and worked on)

[Code]...

View 2 Replies

VS 2008 Select With 3 Comboboxes?

Apr 7, 2011

I need to build a SQL statement.

I have 3 ComboBoxes that i need to use for my SELECT statement. This means that if the user selects ONE of them the SQL statement will be different than when he chooses TWO or THREE.

If none is select, then ALL data is displayed.

View 6 Replies

VS 2008 - Choosing Between Multiple Comboboxes?

Nov 17, 2010

I have a program issue I am trying to work on. I have multiple comboboxes(12 total) on a form.I am attempting to update some settings from what ever the user selects from the combo boxes. I am trying to keep the code as small as possible, so I thought about having all the comboboxes have similar names only different by a number being changed at the end. (ex: cbo_1, cbo_2, cbo_3, etc...)And using a For next loop to advance through each combobox and update the settings as the for next loop advances.(This might be a stupid way of doing it, but its the first idea that came to mind.)

[code]...

View 1 Replies

VS 2008 - Selecting All ComboBoxes In Form

Nov 1, 2009

I need to select all the comboboxes on a form with a for each loop. I have about 19 comboboxes and I need to select each one. I tried to do
for each box as combobox in me.controls
But that gave me an error and i now tried this:
for each box as control in me.controls
if box.name.contains("ComboBox") then
...
end if
next
That selected only the comboboxes but the problem is i need to access some data that is specific to comboboxes (aka the selected item(s), if its blank) but those properties are not present since "box" is a control, not a combo box.

View 1 Replies

VS 2008 A Couple About Listboxes And Comboboxes?

Aug 20, 2009

1) Does this code make text the selected items text? If it doesnt then how would I do that?Dim text As String text = ListBox1.SelectedItem.ToString()

2)How would I make it so that if in combobox.items there is an item with the same text as the listbox selecteditem it is removed? This is what I have and it doesnt work.

If ComboBox3.Items.Item(text) Then
ComboBox3.Items.Remove(text)
End If

View 3 Replies

VS 2008 File Names From Comboboxes?

Nov 28, 2010

I have a ComboBox with several names within it. The names are sourced from a database. Once the user has selected a name from the ComboBox, he must input the no. of hours from another ComboBox and then he is able save it to a .txt file through a streamwriter.

Here is a little image I just put together:I want the file name of the .txt file to be whatever is selected from the first combobox. So, by using the example shown above, the file would be called bob.txt. Is this possible?There shouldn't be any save file dialog or anything, I want it to be automated and the name of the .txt file to be selected from the ComboBox.

View 2 Replies

VS 2008 [RESOLVED] Clear Error1The Item "objDebugArtScheduler_2.ImagePreview.resources"?

Mar 29, 2011

This showed up this morning in my error list.

Quote:Error1The item "objDebugArtScheduler_2.ImagePreview.resources" was specified more than once in the "Resources" parameter. Duplicate items are not supported by the "Resources" parameter.ArtScheduler_2 What I did this morning was add a filter line to my openfiledialog in the ImagePreview form and deleted the settings in the designer Looked in project properties under debug and resources and don't find anything.Looked in the objDebug folder on drive and it listed two of the same files, same size and timestamp. Deleted one. Still get same error.Program runs (F5) after clicking yes, accepting that there is an error and to still run.Have not tried to publish. Don't know if this would corrupt the working version already published or not.

View 13 Replies

VS 2008 - Matching Comboboxes With Main Form

Jun 13, 2010

I have a combobox on my main form and it lists geographical locations that the user creates. How do I make the combo-boxes on the sub forms match the one on the main form?

View 1 Replies

VS 2008 : Making ALL Comboboxes On A Form ReadOnly?

Sep 3, 2009

Is there a simple way to make all comboboxes on a form to be readonly upon form load?

Rather than doing:

ComboBox1.ReadOnly = True
Combobox2.ReadOnly = True
And so on...

View 29 Replies

VS 2008 Dataview Filter Multiple Comboboxes?

Feb 15, 2011

This post is a continuation of my other post concerning 'List(of) with multiple comboboxes refill problem.'. I threw the list overboard and began anew with a Dataview.

So far I (finally) managed to get 2 comboboxes (will be more, but if it works for 2...) loaded with the same data using different dataviews (DataView1 & DataView2) so I can select a value from each combobox without the other following the selection.

But now I want to filter out the selected value from the other combobox.
This also works.

The only thing is this: If I select in combobox1 the value 3, and select in combobox2 the value 4, combobox1 will change to the value 2.

If I select in combobox1 the value 2, and select in combobox2 the value 1, combobox1 will change to the value 3.

It works also the other way arround. I can't seem to get my hands around the problem..

Does somehow the index of the items in the combobox play's part? I don't use the selectedIndex, so from my point of view it can't be..

The code I use:
(with the item 0 as 'neutral' option)
Public Class Form1
Dim dTable As New DataTable

[Code].....

View 4 Replies

VS 2008 List(of) With Multiple Comboboxes Refill?

Feb 10, 2011

I'm trying to make a program in which I can import an excel file, read the whole thing and save it in another format. So far so good: can import the file, read it, skip first line or not etc.But.. Now I've been thinking about a sort option.What if the column order of the excel file is in another order than the export file must be in. In stead of opening the excel file and rearrange the columns manually, I would like to sort it in the program. Just for the sake of trying to make it work and gain experience

So, i read the first line which contains the column names and put them in several comboboxes where I can make a selection. No problem here.Now, the selection of combobox1 has to be removed from the other comboboxes and so on, to avoid double selections on one column. That's where my listOld comes in. Everytime a selection is made in a combobox, a sub is called to create the listOld and create the listNew (which contains items you can still choose from).As I make more selections the listOld gains more items and the ListNew grows shorter.But here comes the part where I'm puzzled.In the part "refill the comboboxes" (bottom part) when I disable "cmb2.Items.Clear()" the listOld (previous selected items) contains all selected items correctly.

[Code]...

View 1 Replies

2008 - Draw Random Numbers From Comboboxes For Dealing Cards

Jan 23, 2009

I'm trying to make a program that'll play the card game "War". I've started to code the dealing process, but it doesn't seem to be working. I currently have 3 comboboxes on the form each with numbers representing different cards, 1 that contains all the cards to be dealt, 1 that contains the user's cards, and 1 that contains the computer's cards. I plan to just draw random numbers from these comboboxes for the dealing. However, nothing happens when I click the tool-strip button that's supposed to deal the cards. [Code]

View 5 Replies

[2008] Disallow Changes To Two Comboboxes Unless The User First Clicks A LOCK Symbol On The Screen

Jan 31, 2009

I want to disallow changes to two comboboxes unless the user first clicks a LOCK symbol on the screen. I pop a Y or N into the tag of the picture box when they click it...I've got this - combobox is called LanguageTo

Private Sub LanguageTo_Enter(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles LanguageTo.Enter
If Me.languageLock.Tag.ToString = "Y" Then
MessageBox.Show("Click LOCK symbol to allow changes to the Language Pair!", "Language is Locked!", MessageBoxButtons.OK, MessageBoxIcon.Exclamation)

[code]....

How do I "cancel" the attempt to change that combobox?I don't want to ENABLE=FALSE the combobox - as I don't want it's image to visually change. I want to allow them to attempt the change and then abort it if they didn't unlock first.

View 2 Replies

Resolved How To Play Sounds In Vb 9

Oct 29, 2009

i wanted to make a piano with visual basic 2008 and i searched around the internet to see how to play a sound but my search returned results relating only to visual basic 2005 & 6 so i am again forced to waste your time (sorry about that) oh and i also have the wav soundfiles i only want vb to read them in the final exe

View 3 Replies

VS 2005 The Remote Name Could Not Be Resolved?

Feb 19, 2010

When trying to connect an URL, thru my vb.Net application using System.Net.WebClient object,I got the following exception

View 6 Replies

[RESOLVED] Application For 64 Bit Computer?

Apr 2, 2009

I wrote a small application for a friend that opens a Excel sheet, get's some data from it and stores that data into a file. I compiled it for AnyCPU (I also did a compile just for his 64 bit machine, same result).Here is the problem:He is able to run the program on a 32 bit computer without any problem, it just won't work on his 64 bit computer.Here is the error he is getting App failed to initialize properly (0xc0000135)

Is this my problem or could this be his problem? As far as I can tell I'm all up to date with VS2008.Is there somewhere I can look specifically what the latest build is for VS2008? I am using VB2008.

View 7 Replies

[RESOLVED] How To Make A Key Generator

May 3, 2011

I m new to VB and i just need a special keygen which i dont know if exists yet or not.First off i'd like to mention that i dont want to make a keygen that will generate a random key out of keys that i have to manually code in (cases) E.G.

[code]...

I want to know how to make a keygen that will generate a letter/number randomly out some example letters which would need to be defined.E.G.Random number out of 0-9 (0,1,2,3 etc) Random letter from A-Z (A,B,C etc) And then obviously display generated key in TextBox. Ideally i would like to improve this more but if i could get the basics then i would move on from there

View 8 Replies

[RESOLVED] Looking For A Word In A Sentence?

Oct 14, 2009

I am looking for a way to display a whole sentence if a word that Iam searchign for found in that sentence:Here is an example:

[Sun Aug 30 2009 04:01:12] Ping failed.
[Sat Aug 29 2009 04:01:10] Ping failed
[Fri Aug 28 2009 04:00:37] Ping failed

[code]....

View 4 Replies

[RESOLVED] Run Exe As Embedded Resources?

Nov 19, 2011

I am wanting to use a vnc installer as an embedded resource, and if the computer running the program does not have vnc installed then typing in a password will install vnc. I have tried everything I can think of and running the process from my computer works, however when ran on a different computer i get the error "File not Found". I am sure I am not calling the embedded resource correctly. I am using Process.Start(" ightvnc.exe /S")

View 24 Replies







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