20,285 Topics

Member Avatar for
Member Avatar for gunzaddict29

I'm quite difficult to understand how could I control DataGridView in MS Visual Studio. I've read many articles in the internet but it seems that none of them could help me. Can somebody help me with this?.. Thanks Alot.

Member Avatar for gunzaddict29
0
126
Member Avatar for Galbatorix

hello guys, how do you write app.path in vb.net coz it works in vb6 but not in dotnet

Member Avatar for Pgmer
0
82
Member Avatar for shredder2794

Hello all, How would I go about copying all the files out of a directory and lots of subdirectories and moving only the files somewhere else?(say C:\Test\file1.txt). I dont pretend to be an expert so a full explanation would be helpful. Thanks!

Member Avatar for Oxiegen
0
115
Member Avatar for jbutardo

Hi, I have this program that validates error and then logs it in a text file, but here is the problem, I want to know how show the text file that has been made after the logs have been written, for example, I have validated all the errors, and then …

Member Avatar for jbutardo
0
338
Member Avatar for Mike Bishop

I have an application that needs to know how many excel rows are in a worksheet before they are imported into my application. at the moment I am asking the end user to enter this into a text box, but would like my application to do this can anyone suggest …

Member Avatar for Phasma
0
2K
Member Avatar for Hawk123

hi, i really don't know what exactly it is called :P , but i'll try to be clear on what i need. i have a text box and a listbox. when the text box get focus, it loads the listbox and displays the content. What i need my code to …

Member Avatar for hericles
0
679
Member Avatar for Mike Bishop

I have an issue with some new code that I am trying to thread, I am using the code below to start my thred [CODE] Dim t As Thread t = New Thread(AddressOf Me.Main) t.Start() Panel2.Visible = False [/CODE] in my me.main I have a counter using a var, if …

Member Avatar for adam_k
0
214
Member Avatar for benedict3578

Hi, I need to have two pieces of software, made in vb where one encrypts the contents of a .txt file, and the other decrypts it, and then picks one word at random and displays it each time a button is pressed, but never displays the same word. Or, if …

Member Avatar for Reverend Jim
0
154
Member Avatar for Alex_2011

Hi, I'm trying to write a program that selects an item (Area Code) from a combobox and this list gets the city that was associated with this area code (another comnbobox list). Do you have a sample code like this so I can built up on it ? Thanks.

Member Avatar for Hawk123
0
82
Member Avatar for Mike Bishop

I have the following code that works fine, it opens and excel file and uploads it into SQL. these excel files can have over 120 thousand records. I would like to put a progress bar on the upload so the end user knows how long the upload will take. The …

Member Avatar for Mike Bishop
0
230
Member Avatar for aishapot

I want to have an alternative way to increment my student no. the current way I'm doing to is in my database, mssql. there's a property called Identity Seed(201200001 - my studentid format) and Identity Increment (1 - no. of increments). The 2012-is the school year, while the 00001- is …

Member Avatar for Reverend Jim
0
199
Member Avatar for shredder2794

Hello all, So lets say I have a folder and in it I have 3 files. How would I go about Identifying the biggest(in bytes) and moving it somewhere else on the hard drive, say C:\BiggestFile.jpg? Thanks in advance! Shredder2794

Member Avatar for thines01
0
381
Member Avatar for jbutardo

I have this question. I have already imported all the excel data in the datatable, but now I want them stored in a 2 dimensional array, meaning I want to have this kind of thing in the array, something like array[x][y], where x is the row and y is the …

Member Avatar for Oxiegen
0
151
Member Avatar for Alex_2011

Dear All, I have the following code but I need to make the users add text to my (Combobox) drop down list. [ICODE]Public Class Form1 Private Sub Button1_Click(sender As System.Object, e As System.EventArgs) Handles Button1.Click Dim userMsg As String userMsg = Microsoft.VisualBasic.InputBox("Enter New City", "New City", "", 500, 500) End …

Member Avatar for Jx_Man
0
132
Member Avatar for midnite11

I receive large pre-formatted XML files. Each XML is formatted the same way - in that they all have the same Parent Nodes and Child Nodes. Each Parent node has at least one Attribute (sometimes 3 or 4) and some fields also have attributes. In my opinion, the formatting of …

Member Avatar for ChrisPadgham
0
257
Member Avatar for VB 2012

Ive got a listbox here i add a process but sometimes with its size but for some reason here on framework 4 (framework 3.5 it worked if im right) its not getting the same size as in task manager so anybody who can help will get point :) And plus …

Member Avatar for Reverend Jim
0
214
Member Avatar for azzdog_dev

it took me ages to find it. i googled "add controls at runtime" and not one single result gave me the intstructions on how to add code to the controls. kinda useless with no code, ehh? all results only told me how to add the control, that's it. well, this …

Member Avatar for VB 2012
0
266
Member Avatar for fvere

Hi there, I am very much interested in learning vb.net or programming. Can someone help me how I can go about and learn basic? Thanks' Fvere

Member Avatar for VB 2012
0
129
Member Avatar for Alex_2011

Hi, I'm totally new in using VB and I want your help. I need a sample code that has a (combobox) and an (add) button that makes the user clicks on the (add) button to add text to the (combobox). Thank you.

Member Avatar for Reverend Jim
0
110
Member Avatar for SeniorAlexandro

Hello, I have a login form which accesses to my website by WebBrowser. You have to put Username and Password in the two Textboxes to login... It works fine and it loggs me in to my site...but how can I tell if the password is wrong or not? How can …

Member Avatar for SeniorAlexandro
0
131
Member Avatar for Rincy20
Member Avatar for priyamtheone

I am inheriting my own datagridview (say MyDataGridView) from the standard datagridview control. What I want is that certain properties of MyDataGridView should have a different default value than what its base have. For example, AllowUserToAddRows, AllowUserToDeleteRows, AllowUserToResizeRows properties should have the default values of False; so that when I …

Member Avatar for Oxiegen
0
190
Member Avatar for jbutardo

Just want to ask, how can i create a log file on vb.net, what libraries should i need for this to work,. thanks

Member Avatar for jbutardo
0
19K
Member Avatar for vivekanandaan

Hi, This is my situation. I am entering a value in textbox and click the find button. In the button click i've written the following code, but it does not yield any result. Kindly help. [CODE] dbprovider = "PROVIDER=Microsoft.Jet.OLEDB.4.0;" dbsource = "Data Source = D:\sprrg.mdb" con.ConnectionString = dbprovider & dbsource …

Member Avatar for vivekanandaan
0
145
Member Avatar for teambiohazard

hello all, how can I add a user to a table in a mysql database without datagridview ? I already have this: [CODE]Dim conn As MySqlConnection 'connect to DB conn = New MySqlConnection() conn.ConnectionString = "server=localhost; user id=root; password=test; database=test_addtable" 'see if connection failed. Try conn.Open() Catch myerror As MySqlException …

Member Avatar for adam_k
0
149
Member Avatar for Hawk123

Hi, I have a form where i can enter new product. In that same form i have listbox where i show the current product from the database. I want to know how to update that listbox as i enter new product into the database so that user can see the …

Member Avatar for Hawk123
0
129
Member Avatar for clflyer

I have a program that I wrote that creates a database in SQL Server called States_02 as a sysadmin user. Later on I want to grant SELECT permissions to that database to another user, web I always get an error that it cannot find States_02 or I don't have permissions …

Member Avatar for bluehangook629
0
174
Member Avatar for PF2G

Hi, i'm doing a registration form and i have problems checking if the username exists in the database. [CODE] Imports MySql.Data.MySqlClient Public Class Admin_Reg Dim server As String = "Server=localhost;Database=escola_musica;Uid=root;Pwd=;" Dim con As New MySqlConnection Private Sub Admin_Reg_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load con.ConnectionString = server …

Member Avatar for adam_k
0
124
Member Avatar for prathapsv3

Hi all, Someone please tell how to print invoice. I dont have printer, is it possible to print a sample bill in notepad?

Member Avatar for Reverend Jim
0
358
Member Avatar for rhone0809

i am new to VB.net. just want to check an id number in my textbox if its aldready existed in my database. this is my condition: if textbox1.text = ds.tables("employees").row(0).item("id") then msgbox("ID already exist") end if

Member Avatar for Begginnerdev
0
213
Member Avatar for bluehangook629

I have a connection string for my SQL database connection called my.settings.GCRConnectionString which was created when I created my dataset for the application. I want to change the value of the connection string but it give me an error saying it is ready only. Is there a way to update …

Member Avatar for bluehangook629
0
2K
Member Avatar for Poongundran

hi experts During my development progress i was stuck up with a problem. I used a class MyList and with the Help of this MyList the combo box named cboCity was filled with City Code(like 1001,1002,etc..) as Value member and City Name (like Canada,California etc...) as display member. [CODE] Public …

Member Avatar for Pgmer
0
175
Member Avatar for jbutardo

Hi, I have this sort of problem whenever the datatable has an empty cell, it shows cannot find column 6 or depending on the number of the datatable column cell. Why does this happen and how can I resolve this? Thanks

Member Avatar for jbutardo
0
2K
Member Avatar for splitter66

I want to disable shortcuts in a menu. This dont work. Even though I dont have any shortcutkeys it automatically chooses the first letter in every menuitem. This I dont want. I found very little about this on the net. Below is a link where they finally concludes it with …

Member Avatar for splitter66
0
199
Member Avatar for poojavb

Hello All, I have 3 combo boxes on my form 1. Doctor Start Time 2. Doctor End Time 3. Doctor Appointment Duration I want a 4th combo Box that will Start from Doctor's Start Time upto Doctor's End Time with the interval of Appointment Duration eg. Suppose the Start time …

Member Avatar for poojavb
0
798
Member Avatar for jbutardo

Hi, How can I create an array of a class that I have declared? I have this class named parts with properties of frame, engine and date, and i want to know how could I store them in an array .. thanks

Member Avatar for Reverend Jim
0
170
Member Avatar for Rudner D. Diaz

please help..i need a basic code in printing using vb.net..the scenario is..im going to print a delivery reciept..the data will be came from my tables...i need the code on printing..basic printing.. thanks in advance rudner

Member Avatar for AverageStudent
0
2K
Member Avatar for jbutardo

Hi, I have this fileupload in my program and I want to set it's extension to .xls only, Is it possible? If yes, how can I set it so it's file filter will only be .xls? Thanks

Member Avatar for jbutardo
0
196
Member Avatar for sheepboi

Hi, i have been working on a questionnaire that will allow me to show a question and then have three possible answers in the form of radio buttons. Users will have to select one then hit the NEXT button to move onto the next question. I have managed to use …

Member Avatar for archelle
0
147
Member Avatar for amf101

Guys i always get an error in this...it says "Syntax error in Update Statement" please help... [CODE] Sub updateaccount(ByVal Username As String, ByVal Password As String, ByVal FName As String, ByVal MName As String, ByVal LName As String, ByVal Restrict As String, ByVal FullName As String) connect = New ADODB.Connection …

Member Avatar for BitBlt
0
208
Member Avatar for markdean.expres

Guys just wondering how can I create a program that does specific actions just by pressing any of the alphanumeric keys on my keyboard instead of the very traditional clicking of a button in a GUI. Example, I want to close the window just by pressing the letter x on …

Member Avatar for Reverend Jim
0
92
Member Avatar for Wolxhound90

Hey guys, So, I have a CheckedListBox that will be used to choose what columns they want to select from a database. Is it at all possible to display it in the format of [Table Name].[Column Name]? So far I have this: [CODE]con.Open() theQuery.Connection = con theQuery.CommandText = strColumns theAdapter.SelectCommand …

Member Avatar for Wolxhound90
0
196
Member Avatar for Wolxhound90

Hey all, Apologies for this question, as I imagine it will be very easy. I'm creating a form that will be used to update fields in a table. I don't want the user to be able to update primary keys though, so I'm trying to disable the textbox so it …

Member Avatar for Wolxhound90
0
257
Member Avatar for yumyam09

I am creating a login form together with sql as may databse but when i run may program an error occur at "myData = myCommand.ExecuteReader()" stating that "Connection must be valid and open" what should i do on that to make it fix?? someone help me please thanks in advance …

Member Avatar for archelle
0
170
Member Avatar for jbutardo

Hi, My title may be wrong but I would like to explain this process that I need here, Here is my Process, I already have imported excel file and inserted it in the datatable, and then I also validated it's format before inserting it in the database. Now Here is …

Member Avatar for adam_k
0
547
Member Avatar for jbutardo

Hi, I just want to know how can vb.net validate the format of a certain string for example, i have a string with 2011/13/02, and I want to check if it's format is in yyyy-dd-MM format,. how can this be done? Thanks

Member Avatar for Reverend Jim
0
2K
Member Avatar for poojavb

Hello Friends, I need to retrive a part of the value present in combobox. Suppose the ComboBox stores the Time values in it. eg. 00:00 00:30 01:00 01:30 Then how can I retrive only the hours value or the first two values separately from the Combo Box. Is there any …

Member Avatar for poojavb
0
73
Member Avatar for jaimin4829
Member Avatar for M.Waqas Aslam

Hello ! i m developing a application i want that my notification form will pop up just like messengers , anti virus , and other applications forms pop from right bottom of the screen what can i do for it , i m using this code for it [CODE] Me.Location …

Member Avatar for phoenix911
0
687
Member Avatar for amf101

hi, am doing my thesis entitled Automatic Exam Scheduling System. this works when button "GENERATE" is click. that would initialize the automatic assigning of proctors and rooms to classid.....plz help...i can't filter the conflicts of proctors and rooms since it is automated...early tnx...ur response will be greatly appreciated..tnx so much:)

Member Avatar for amf101
0
201

The End.