20,278 Topics
![]() | |
How to get get complete column from database to combo box ? | |
How do I find the number of USB ports available, and what their references are. Example there are 6 USB ports on my motherboard what code would I use to find their reference like, port 1 is called 0 and port 2 is called 1. I want a user to … | |
I have created a Combo box with the 3 items. And one more Combo Box with the 9 items. When one item of 1st combo box selected,the 2nd combo box should show only 3 items out of 9 items. how to do this? I tried but not getting it. | |
Hi, I am trying to create a custom listbox control by inheriting the default system.windows.controls.listbox class which would automatically select the item based on keyboard input. Currently the listbox provided in Visual Studio is capable of searching only on the first letter, but I am trying to create onw which … | |
hi There please help me in these program because the character only moves 1 time but it must be like this input: abcd output: dabc then when i click forward again output cdab output: bcda output: abcd like this and also it must be in backward to when i click … | |
Hi I have a program in java that outputs 1000 hello world without using iterators (for, do while etc).. I tried to translate my code into vb.net and here's my code: `Module Module1 Sub Main() printToThousand(1) End Sub Public Function printToThousand(ByVal i As Integer) Dim r As Boolean Console.WriteLine("Hello World") … | |
I have got menu bar. In that there is Logout option also. When the user clicks on Logout then it should pop up the msg that "successful logout" and close the current page and redirect to login form. I wrote this code: Me.Close() MsgBox("Logout Successful") Form1.Show() Form1.TextBox1.Text = "" Form1.TextBox2.Text … | |
My textboxes and labels are fine in design view, but when I switch over to Debug or Build, a couple of the textboxes are pushed together and the labels aren't in their original spots. Haven't seen this before and was wondering if anyone has any suggestions as to why and … | |
Is there a way to check the x and y coordinates of a label in debug view? | |
I am making a project for my final year, asp.net with vb.net ( Beginner ). i upload the file using the fileupload control of asp.net on the server. Now how will the client be able to download that file? Would appreciate help. | |
I have added 2 Combobox on form. Combobox1 and Combobox2. I have connected databasetable to Combobox1. i.e. Showing items of Combobox1 from database table column A. i.e. displayed one column of databasetable in Combobox1. Same way I have connected same databasetable but different column B to Combobox2. So,What I am … | |
how to store all items of database to combo box. i.e. store complete column in combo box? | |
hi all, this my question again.. i need to load data from database and it will show in combo box. if i want to load id_user from database i will get all id user fill the combo box item, so i can choose the user. how can i do this? … | |
Hi, I'm kind of new to VB and I'm trying to make myself a little game to help me get into the swing of VB (I know some java). Basically what I'm trying to do is this, I have 20 statements in a Select Case (right now they're just labels … | |
I have a form that has a tabcontrol (TabControl1) and within that tab control is another one (TabControl2). I have textboxes on the main form as well as in each of the tabcontrols. In my savebutton event I have the following code: If CheckIfDirtyAfterLock = "Just Unlocked" Then CheckIfDirty(Me.Controls) Else … ![]() | |
Hey Have a real problem here, I am making a simple calculator and it's saying InvalidCastException was unhandled when I try to debug it, here's the code, please tell me whats wrong with it: (and yes I have renamed the textboxes to addequals etc... ______________________________________________________________________________________________________ Public Class Form1 Private Sub … | |
Hi all. im writing function to find and replace the string. Im using 2 textbox's one for keyword which is to find and one to to replace. im having having two buttons btnfindnext and btnreplace. if i click on replace button it should select the text first and agin if … | |
Hello Daniweb! I'm an amateur programmer who's learned quite a bit from online references, and usually searching eventually reveals the problem but I'm stuck! I've overcome many obstacles when creating a custom button on the Ajax Editor control, namespace issues, registring the controls properly etc. I resist the temptation to … | |
#What do u think is wrong in this code???# ##no textbox is being affected :(## For Each ctrl As Control In Panel1.Controls If ctrl Is GetType(TextBox) Then CType(ctrl, TextBox).Text = "" End If Next | |
I have a database of asset information with asset age as one of the columns..now i wish to display all the assets which crossed 4 years in the current year ..any suggestions will be appreciated! | |
There is combobox and few textboxes. With the help of insert sqlcommand I can store textboxes values in the database. But with the same insert sqlcommand I need to store one more combobox selected item too.. How to do this? | |
The combo box will show the category. Suppose there are 2 categories A and B. When we click on A then the code given inside 4 buttons should work. I tried in this way ,I checked the condition of selecteditem based on that added all 4buttons sub code. But it … | |
Dim cmd As OleDbCommand = Nothing Dim smd_search As String = "select * from Old_info where UG_PG='BSc'" Dim con As OleDbConnection = New OleDbConnection("Provider=Microsoft.ACE.OLEDB.12.0;Data Source=E:\Bavu's\project\vb files\dms\SPA_Database.accdb") Dim myDa As OleDbDataAdapter Dim mydataset As DataSet cmd = New OleDbCommand(smd_search, con) myDa = New OleDbDataAdapter(cmd) mydataset = New DataSet() Try If con.State … | |
Whenever I run the form and complete the procedure then I need to go back to sql database and click on execute. I want to avoid everytime going back and executing each entry because if I don't execute everytime then the further other [b]form data [/b]will not be[b] retrieved[/b] properly … | |
How can I copy a datagridview to a gridview.. I only ask b/c I need to use the rendercontrol and its not available using datagridview. And Gridview is not an option for me to use in a windows application.. BUT the class is.. very odd but anyway. All the colors … | |
Hi All, Don't know if this is the right forum for this query, but couldn't find anything more suitable. I have written a new app in VB.net as a front end to a mySQL database held on a PC on the LAN running Windows XP. This worked fine for a … | |
Dear All, I have two arrays (array1 and array2)with double type data. I want to sort array1 to ascending order, and array2 with corresponding to the array1 indexes. Is this possible? Example below, Array1(0) = 2.30 Array1(1) = 4.20 Array1(2) = 1.90 Array1(3) = 0.20 Array1(4) = 0.88 Array2(0) = … | |
I am currently working on a stock market monitoring application and I was wondering if anyone cold help me by giving me a guideline on how to create a new portfolio(sort of a personal account) for each user that accesses the system such that 2 different users do not have … | |
I am currently stuck on a project where I am populating a datagrid from a series of labels and textboxes. I have that part down. Now for the part where I actually add it do the database, I am having a problem. It is actually adding everything to the database … | |
I was wondering if anyone knew of a good tutorial for parsing data from a text file and then populating the data into multiple text boxes. I have a text file with information pertaining to my form. The text file consists of key identifiers for each piece of information needed … |
The End.