20,284 Topics

Member Avatar for
Member Avatar for s98samman

Using Microsoft Visual Basic Express 2010 This is the code i used: Dim b As Integer = TextBox1.Text Dim c As Integer = TextBox2.Text Dim a As Integer = b * c MsgBox(a Why does this visual basic code not work and how do i fix it to make it …

Member Avatar for JGorard159
0
561
Member Avatar for bigzos

One of the problems with datediff function is that even if the two dates are 31-12-2011 and 01-01-2012,it will show the difference as 1 year.How to overcome this problem????

Member Avatar for poojavb
0
133
Member Avatar for PillowChicken

Hi! I need to disable a key in vb.net, such as the e key. So i would open my application and tab off of it, and go to internet explorer and try to go to google and it would come out as goolg . How would i do this?

Member Avatar for Coolboy6839
0
377
Member Avatar for dimmslider

Hi all, I am writing a service to get a count from a table on an SQL server. THe SQL box is in the same domain, and the service is runnign under the same account as the SQL box. The box service is running on is Win 2008 in the …

Member Avatar for adam_k
0
172
Member Avatar for kiyu2keith

Hi, I am hoping you guys could help me with this. I am trying to loop number into something like this. 0 12 345 6789 here is my code: Dim i As Integer Dim j As Integer j = CInt(TextBox1.Text) For i = 0 To j label1.text = i Next …

Member Avatar for kiyu2keith
0
566
Member Avatar for ShaggyDogg

I wonder if someone can point out where I'm going wrong with this code. My aim is to control the visibility of an UpdatePanel with a CheckBox. The CheckBox is located on the same form, but not adjacent to the UpdatePanel. ScriptManager is present, but when browsing, checking the CheckBox …

Member Avatar for Philippe.Lahaie
0
544
Member Avatar for UltimateJacob

Hi guys, So I'm making a random sentence generator that takes subjects, predicates, etc. from user input, stores them, and then randomly chooses one value from each category and prints it in a textbox. Or at least, that's how it's supposed to work. But I just can't seem to get …

Member Avatar for Begginnerdev
0
169
Member Avatar for ZER09

i created a dll file using vb.net then it has a shared function that will execute a stored procedure of mysql but my code is something long and when accessing it, it has a big risk that it can produce an error if there is an incorrect string input, i …

Member Avatar for thines01
0
529
Member Avatar for sonia sardana

I have added three images to ImageList..I want to show tooltip....On listview item... [code] Public Class Form2 Private Sub Form2_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load ListView1.View = View.LargeIcon ListView1.LargeImageList = ImageList1 For lcount As Integer = 1 To 3 ListView1.Items.Add(lcount.ToString, lcount - 1) Next End Sub …

Member Avatar for scstetro
0
2K
Member Avatar for Mr_Man

hi, im making a program and i need it to start when the computer sarts could someone give me some guidance thanks for reading (and hopefuly answering) Jack

Member Avatar for M.Waqas Aslam
0
2K
Member Avatar for mysteriousMan

Hi All, new to this quality forum. Beginner in VB hoping to become a professional, hopefully one day ;) got this code from googling: Private Sub DataGridView1_CellValueChanged(ByVal sender As Object, ByVal e As System.Windows.Forms.DataGridViewCellEventArgs) Handles DataGridView1.CellValueChanged If e.RowIndex <> -1 AndAlso e.ColumnIndex = Column1.Index Then Dim cell As DataGridViewComboBoxCell = …

Member Avatar for adam_k
0
242
Member Avatar for StateUnknown

Hey guys. I'm new to this vb.net programing, and was trying to build an Email-client where you can change the SMTP server, adress and password and then it saves it to a config. But my problem is right now that, the textbox wont accept any inputs. So if anyone could …

Member Avatar for StateUnknown
0
103
Member Avatar for abc_123abc

hi all.. i have the option to save the contents of the listview that was saved into text file. now i would like to load the text file into datagridview in vb.net but i have no idea how to do it as this is my first time in doing it …

Member Avatar for Begginnerdev
0
3K
Member Avatar for honeybee2090

how to filter textbox text? i use this code to copy webbrowser text in textbox3 TextBox3.Text = WebBrowser1.Document.Body.InnerText it show all text in textbox like this crypo.freeforums.org Advanced search Board index ‹ Socks Change font size E-mail friendPrint view User Control Panel (0 new messages) • View your posts Arcade …

Member Avatar for thines01
0
417
Member Avatar for oskole

hallo programers ok this code will save data withc is URL from textbox and load it to listbox , but i want it save first name of uRl like google then in other textbox put URl and save so when its load data its shows only name like Google not …

Member Avatar for thines01
0
159
Member Avatar for ghawanmeh

please help me i need to create a hash table using a multiplication method and i need to create an array of linked list **so how i can to create array of linkedlist in vb or c# ????**

Member Avatar for kvprajapati
0
102
Member Avatar for beforetheyknew

Hi guys, I'm quite unsure of what i'm doing here and could use some guidance. I've searched but haven't found any links that were focused enough. My objective is to connect my application to a database for the first time. I've never done this before so it's essentially a learning …

Member Avatar for wen_cai
0
231
Member Avatar for sdevanab

Hi. I am having connection issue while connecting to using below string provider=IBMDADB2;Data Source=XXXX.XXXXX.COM:5000;Database=C2RCU0;Uid=s858;Pwd=cccc Getting error like database not found. But What i found was connection to mainframes it self was not happenning. Do i need to provide any other information or what i am missing here.. sConnection As String …

Member Avatar for Begginnerdev
0
1K
Member Avatar for rashid_khan

Hey , i am new to visual basic.NET , i want to recognize a barcode device in VB.NET , further have to generate some barcodes using VB.NET and recognize barcodes through barcode device. so anyone can help me... Thank you

Member Avatar for Jeff-Bennett
0
174
Member Avatar for poojavb

Hello Friends... I need help on regular expressions.... I tried the following way but it did not work for me....please help me to create a regular expression... ^.*(?=.{8,})(?=.*\d)(?=.*[a-z])(?=.*[A-Z])(^[a-zA-Z0-9@\$=!:.#%]+$) My requirement is -> Min 8 to 15 characters - this I will do with the length validation or by including in …

Member Avatar for poojavb
0
248
Member Avatar for STP_Captain_Slo

Hi I am wrinting a program which takes customers details and their order details, each order line is added to a DGV and eventually saved to a MDB, a Crystal Report Viewer than queries the information back and displays it in the format I setup in the report i created, …

0
169
Member Avatar for GH23

I'm developing a VB.NET application that is going to be checking if a table has been changed and if it has get the data and send it off to another application. I was looking into ways for an application to know that there has been new data added to the …

Member Avatar for francis994
0
263
Member Avatar for irishsailor

I am having problems trying to center some text. I created a printdocument and it has a company name and title and then other information I have the information fine but I wanted to center the company name and I can't seem to do it correctly here is what I …

Member Avatar for irishsailor
0
591
Member Avatar for mancode1007

halo guys, I having problem executing the SQL statement in the visual studio but when in the MySQL it work fine. Here are my code. Dim sql As String = "SELECT * FROM (SELECT @row:= @row + 1 AS rowNum, std.* FROM Student std ,(SELECT @row:= 0) r) AS t …

Member Avatar for wen_cai
0
165
Member Avatar for faizzul_77

i want to create column headers now in my first array have this http://uitm.x10.bz/!/1.png array CSC238,8.00-9.50 MAT183,1.00-2.00 ECO120,2.10-4.00 BEL311,4.10-6.00 MAT183,8.00,9.50 then second array, i want to do like this http://uitm.x10.bz/!/2.png array 8.00-8.50 9.00-9.50 10.00-10.50 11.00-11.50 12.00-12.50 1.00-2.00 2.10-3.00 3.10-4.00 4.10-5.00 5.10-6.00 6.00-7.00 7.00-8.00 8.00-8.50 9.00-9.50 hope can help this problem …

Member Avatar for francis994
0
194
Member Avatar for eongchin

hi, i started using VB 2008 recently (with perl background, its a big leap) and having a problem with database. i am trying to access a database that is attached to a different form. i managed to get my code to work if i was writing on the same form. …

Member Avatar for adam_k
0
96
Member Avatar for bigzos

Hey,,I tried the following code to retrieve data from an excel file,apply query and save the result of query to another excel file. Now there are two problems: One,I am getting the required data but some reduntant unwanted data too. Second,It only works if the excel file, from which the …

Member Avatar for bigzos
0
614
Member Avatar for zeqe

Hi there. I'm having trouble passing variables between Forms. Let me explian my self by an example. I have a Form1, the user types a "Client ID" in a textbox if it's not a valid one, it opens a Form2 in which the user selects the correct "Client ID", once …

Member Avatar for zeqe
0
177
Member Avatar for collin_ola

Hi, I have a form in VB which is scrollable (using autoscroll) and when I currently click 'print', it only prints what I can see; it takes a screenshot of the viewable information. Here's my code: [CODE]Private Sub btnPrint_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnPrint.Click Dim settings …

Member Avatar for n71423
0
2K
Member Avatar for prancode

I have this code which displays a login form, i want to encrypt the password before it stores into the sql database and should also be able to verify the pwd when a user logs in. Please help me, it'll be very greateful of you, Thank you. Private Sub Login_Click(ByVal …

Member Avatar for Reverend Jim
0
243

The End.