o
k
q
u
e
s
t
i
o
n
s
.
c
o
m

[resolved] function returns combobox -

Hi,

On a form I have a combobox that I want to be filled with data.
I fill a different combobox with a dataset and the combobox datasource. I do this in a seperate class-file. Now I want to return this combobox to the combobox on the form. However this results in no data in the combobox on the form.

Are there special things I have to watch out for or is it something else?
Thanks in advance for the help.

I work in VS 2005 vb.net SQL Server

Jeroen

 

[resolved] function returns combobox -
Hi, On a form I have a combobox that I want to be filled with data. I fill a different combobox with a dataset and the combobox datasource. I do this in a seperate class-file. Now I want to return this combobox to the combobox on the form. However this results in no data in the com


Combobox and listcount -
Is the Combobox.ListCount property an Integer? I'm populating a combo box with over 34,000 records (I know it's a lot, but necessary) and if I look at the listcount on the combo box, it shows something like -27020. Anyway to get the true number of items in a combobox other than with


get index of bit -
Hi, I'm using this simple function to return the value of the first bit set #define LBS(aa) (aa & -aa) However, is there a way to modify this so that it returns the INDEX, and not the value? For example, when I call it like this LBS(1) returns 1 LBS(2) returns 2 L


Function that returns a table-RESOLVED -
I want to write a function that returns a webcontrol table. But If I assign the table as in tblTable=myClass.Table I don't get any data in tblTable. Is it possible to assign a webcontrol table to the return of a function that returns a webcontrol table and have the row and cell in


How to setfocus on combobox -
Ok, so my combobox won't execute the setfocus function without erroring out. Is there a reason? whats the work around? for example cmbTest(index).setFocus returns an error.


Locking Combobox ** Resolved** -
I want to be able to lock a combobox when I load a form based upon a specific criteria. I want to prevent the combobox from dropping down when the user clicks on the drop down arrow. I don't want to use the .Enabled property because I want to be able to change the fore color of the co


Combobox Datatable/ Dataview binding -
Hi, I have a combobox on a form. I bind this to a function that returns a datatable and it works fine. When I change the function to return a dataview (returns dvSortedView instead of dtReturnInfo in the code below), it doesn't load any of the data. How is this? on the form: Com


Combobox and API -
Ok, bet no one has this! Heh. I need to know how to make a Combobox function like a Microsoft Access 97/2000 Combobox. I know how to do the DataBinding and all that stuff, I just can't get it to Display more than 1 Column. Can anyone help me? Is there a way to SubClass into th


[2005] data binding issue -
Hi all I have two comboboxes on a form, both with the same datatable object as their Datasource. when i select an item in one of the boxes, the other box also jumps to that item. They need to be exclusive... a change to one cannot make a change to the other. To resolve this, i tried


[2005] Function that return Combobox -
Hi, I've created a function called CreateList that return a Combobox but I need to assign the items that is returned from the function to a Combobox in my form. I've tried me.cboItem=CreateList() but it doesn't work, nothing is added to the lstItem Thanks


Calling Event Functions Dynamically -
Hello, I have a form with 3 comboboxes and I want to call a specific event function of 1 of the comboboxes in 1 of the form's functions. The problem is that I don't know in advance which combobox it will be and therefore I can't know the name of the event function. Example: Suppo


RESOLVED: Access combobox style -
Is it possible to set the style of a combobox on an access form to dropdown only? I dont want users to be able to edit or type in the combobox... I have tried using code to set the combobox.style to 2, but I get an error (method or data member not found). There's also no optio


Sqr And Sqrt -
i tried using the SQR function in VB,and it gave me a wrong answer. i did some search and i got this: # SQR The square function returns the square (ie the argument multiplied by itself) of its supplied argument, SQR( 2 ) returns 4 # SQRT This function return


ComboBox(Resolved) -
Hi, I have a combobox which users can select from options and the records will display in a MSFlexGrid. I set the property to dropdown option 2, so the users are not allow to add or edit in the comboBox. When the user click on the text box, i want the selected option in the comboBox


simple combobox question [resolved] -
it may seem trivial but here's what I need an answer for. I have two comboboxes, let's call them A and B. and simple text files. What I'm aiming at is when I select filename 1, 2 or 3 from the combobox A the content of the file is loaded to the combobox B where each string is an en


Reading AOL's Combobox Help -
I am having trouble reading AOL's combobox. I used many people's code I have found on here but for each item it returns wierd characters and not the item string. Has anyone worked with this before? Specifically I want to read the combobox on the signin screen that has all of the sc


Need to read AOL's ComboBox Items - Help! -
I am having trouble reading AOL's combobox. I used many people's code I have found on here but for each item it returns wierd characters and not the item string. Has anyone worked with this before? Specifically I want to read the combobox on the signin screen that has all of the sc


search combobox for string -
can someone tell me how to search a combobox for a string, and if the string is found the combobox returns a value of true to a variable? I tried using the SendMessage API, but couldn't quite get it thanks -emptywords


******RESOLVED******combobox -
How can I detect the row number that a user has chosen with a combobox? Thanks!


[2005]get selected text from combobox -
greetings i am a student and making my final year project on vs2005. i want to get the text selected in the combobox as string. if i add the items in the combobox in the collection then it is retreated by the (selecteditem) but i added the items in the combobox from the database(


INI to Combobox(still not resolved) -
need the code to connect ini file to my combobox...thanks


Populating Comboboxes -
Hi All, I am having a problem when populating a combobox from a table within a SQL Server database. The combobox only returns the first record in the recordset and does not populate the Entire list with the contents of the table. Also, would anyone know how to display both colum


check if combobox has no values inside it and check if listview is empty -
Hi, i need to do a check like this If Nothing is in the combobox then function else lala end if and if nothing is in the listview then function else lala end if (when i said in the combobox, i mean in the list. not the value of combobox.text) thanks!!


*RESOLVED* - ComboBox and Recordsets -
I have a form with a combobox in it. I use this form to modify records. Of course the combobox already has the choices available for one field. When the user selects the record to modify, the form gets filed out with the current data. How can I set the combobox to the value that is


Problem with function in JavaScript -
I have a form with a combobox on and on the onchange event of the combobox I cal a function that will make a db call to get a value depending on what the user selected in the combobox. This is the code for the function: function chkNewHW_profile() { var sSQL var rsMySet


ComboBox help Again -
Hi all what i want is for the user to select an item in the combobox and that item the is removed from the combobox, that part i can do the problen is that the text field is left blank, on run it is populated with .List(0) you can see it populate for a short time but then cle


[2005] resolved - Requery ComboBox DataSource -
So I have a ComboBox on the form, it is Databound, how do I re-query the DataSource and update the items in my ComboBox. This ComboBox lists printers available in the application, if I add one, I need the users to be able to click on the little "refresh" button and show th


Function that returns name of current Sub/Function/Property -
Is there such a method that returns the currently executing Sub/Function/[Let/Get]Properties name? I need this to pass to an error handler.


Day name function -
I'm going to write a function that returns the name of the day. How do I get started?? is there any function like dayofweek??? That returns 1 for sunday, 2 for monday and so on... The code is going to be in ASP. /Smirre


Array size *RESOLVED* -
Is there a built in VB function that returns the size (Number of items) of an array? Something similar maybe to the UBound() function only as far as I know UBound() returns the highest index, not necessarily the number of items in an array. Thanks


shifting dropdown of a combobox ( Resolved) -
I am trying to change the postion of the dropdown window of the combobox. function GetComboBoxInfo gives me the handler to this dropdown window then i am using SetWindowPos to set the new postion of the window , but immediately it returns to its orignal position as the system ta


[resolved] multi column combobox -
we just upgraded to .Net at work and I'm just starting to use it. Hopefully this is an easy question. In vb6 I almost always used a multiple column combobox or the ItemData property to store multiple values in one "row" of the combobox. Can you do this in .Net or do i need to


ComboBox SelectedItem returns System.Data.DataRowView (WIndows Form VB 2005) -
HI, I have a ComboBox in my WindowsForm(Vb 2005). I have a method which binds Datatable to the combobox. I am able to get the SelectedValue of the comboBox without any problem, but when i try to get the SeletedItem I get this "System.Data.DataRowView" Here is my Code:


Horizontal scroll bar for combobox -
By default a combobox does not have horizontal scroll bar when text contained in it is longer than the width of the combobox. I( have researched and found that the send message api function passing the constant CB_SETHORIZONTALEXTEND is suposed to insert a scroll bar if the length


combobox as property -
hi! I need to pass combobox control to form as property, because I think it is better way than to load 200 items to it every time the form loads. but the problem is it isn't visible when the form loads. when I use SetParent function it appears like static window. how to make


How to set the index of combobox with click event firing.. -
Hello, I am able to change the current selected index of a combobox(type:dropdownlist) of external exe using API function-> SendMessage(GetDlgItem(hWnd, 301), API.CB_SETCURSEL, 2, 0) where hWnd: hWnd of exe 301 : control id of the combobox on that exe 2 : inde


Alternative from LostFocus -
Hi, For some reason in my application, i don't use LostFocus Event from TextBox, ComboBox, etc. I made some function that able to detect (logically) whenever the user want to leave TextBox, ComboBox, Etc then do whatever thing it should do before leave (TextBox, ComboBox, Etc). Bu


Listbox and ComboBox Questions *Resolved* -
I have two questions regarding the Listbox and ComboBox Controls: ListBox I have a ListBox control on my form and I have select the Checkbox style from the dropdown list. Can the value of this checkbox be set and changed by the user? ComboBox I have a ComboBox on another for


*RESOLVED* Atn function differs from my calcutor. -
If I call Atn(15) in VB it returns 1.504 My calculator says the arctangent of 15 is 84 Why do they differ by this much? cjqp


GetActiveWindow returns 0 for games.. Why -
I'm making a program to trace which programs connect where. It works fine by listing all processes + it's windows + the connections each process has made. However i'm trying to add a function that will tell the user which process a certaing window belongs to, and this works for all