20,278 Topics

Member Avatar for
Member Avatar for Iamateur
Member Avatar for Animal Mother

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 …

Member Avatar for Begginnerdev
0
196
Member Avatar for Iamateur

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.

Member Avatar for Reverend Jim
0
145
Member Avatar for Subhajyoti_Saha

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 …

Member Avatar for artemix22
0
99
Member Avatar for vijaybrar

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 …

Member Avatar for Reverend Jim
0
151
Member Avatar for bettybarnes

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") …

Member Avatar for Reverend Jim
0
83
Member Avatar for Iamateur

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 …

Member Avatar for artemix22
0
151
Member Avatar for Gus_19

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 …

Member Avatar for Mitja Bonca
0
223
Member Avatar for Gus_19
Member Avatar for adam_k
0
62
Member Avatar for ManafShabbir

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.

Member Avatar for ManafShabbir
0
101
Member Avatar for Iamateur

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 …

Member Avatar for fox_3
0
108
Member Avatar for Iamateur

how to store all items of database to combo box. i.e. store complete column in combo box?

Member Avatar for Mitja Bonca
0
131
Member Avatar for Sawamura

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? …

Member Avatar for Iamateur
0
376
Member Avatar for mistersalty

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 …

Member Avatar for mistersalty
0
236
Member Avatar for mikeybware

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 …

Member Avatar for Unhnd_Exception
-1
1K
Member Avatar for millsasbc

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 …

Member Avatar for millsasbc
0
158
Member Avatar for Pgmer

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 …

Member Avatar for shamy086
0
234
Member Avatar for ZeroZen

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 …

Member Avatar for hericles
0
204
Member Avatar for bilal_fazlani

#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

Member Avatar for ZeroZen
0
141
Member Avatar for bigzos

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!

Member Avatar for bigzos
0
95
Member Avatar for Iamateur

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?

Member Avatar for Iamateur
0
99
Member Avatar for Iamateur

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 …

Member Avatar for Begginnerdev
0
112
Member Avatar for jamshi213

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 …

Member Avatar for Begginnerdev
0
124
Member Avatar for Iamateur

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 …

Member Avatar for Begginnerdev
0
134
Member Avatar for CaptainRon

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 …

Member Avatar for CaptainRon
0
105
Member Avatar for toomutch

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 …

Member Avatar for toomutch
0
430
Member Avatar for zhouy

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) = …

Member Avatar for zhouy
0
245
Member Avatar for Pamilerin

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 …

Member Avatar for thines01
0
96
Member Avatar for smitty68503

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 …

Member Avatar for smitty68503
0
182
Member Avatar for Gus_19

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 …

Member Avatar for Begginnerdev
0
199

The End.