19,728 Topics
| |
Imports System.Data Imports System.Data.SqlClient Partial Class test Inherits System.Web.UI.Page Protected Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click Dim txtName As String = TextName.Text Dim txtcomment As String = TextComment.Text Dim txtemail As String = TextEmail.Text Dim con As SqlConnection Dim cmd As SqlCommand con.ConnectionString = "SqlData Source=(LocalDB)\v11.0;AttachDbFilename=App_Data\library.mdf; Integrated … | |
I'm trying to do, an order and some orderline. Imagine that the user come and select several item from the shop then when he click on the checkout, the reference number in the order is send back to the several item in the orderline table. How would i insert that … | |
Hello! I'm very new to visual basic and I'm stuck at transfering the text from one label on a form to another via a button click event I have 2 forms which I will call A and B. On form A I have a menu which when clicked brings up … | |
How I Can USe HTML And XML STREAM SOURCE CODE....? I Will Be Very Thankful To You... | |
i want to add dates from two datetimepicker...for example the user chooses the date 1/1/2012 in the first picker and chooses 1/3/2012 in the second picker the answer should be 3 that will be shown in a textbox.. this is the codes that i tried: Dim dt1 As Date = … | |
**Background**: I have a friend who lets me use his MySQL database on hostedresource.com. He has successfully accessed the database with this snippet of PHP code: `mysql_connect ('dbname.db.1234567.hostedresource.com', 'dbname', 'password')` I tried to access the database with the following vb.NET code: Imports MySql.Data.MySqlClient Imports System.Data Public Class classDataConnector Private connection … | |
hey guys! i have a problem, for my GCSE i have been given the task of making a prixe draw program, which allows the user to add 10 names then select a name at random. i have come to a problem when i have tried using a for loops to … | |
hey guys i need some help on my Search button It seems that it is not accepting the data on the cboSI.text which contains the Field Names of the Table Heres the Code: Private Sub cmdSearch_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdSearch.Click Try Dim d3 As New … | |
I have created a function to add the text from a file inside another text file, if I had to add only one block of code it would be okay, but the problem is when I have to insert more than one block into a same source file. Example: FileDest1.txt, … | |
Hi, I am working on a tool for my project that will compare two contents pasted in two different datagridviews. I have previously created the same in VB6.0 and it worked fine. I am a beginner of .net and I dnt know how to get each cell values from datagridview … | |
i need to get source of facebook video page. Unfortunately i can't reach whole contents related video links. page link "http://www.facebook.com/photo.php?v=360736417354431" for example i cant get this " ["video_src","http\u00253A\u00252F\u00252Fvideo.ak.fbcdn.net\u00252Fcfs-ak-snc6\u00252Fv\u00252F232405\u00252F104\u00252F360736417354431_28435.mp4 " Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Dim sourceString As String = New System.Net.WebClient().DownloadString("http://www.facebook.com/photo.php?v=360736417354431") RichTextBox1.Text … | |
I remember that I had a code of a multithread that you could start it how many times you want (it had no arrays). And I remember I only had to get the "Dim t1 as....(I dont rembemer)" line and insert t1.start to make it work. Also, it auto-dispose when … | |
How can I unzip an archive using VB.NET? Actually I'm using this method, but it takes too long to extract: http://www.codeproject.com/Tips/257193/Easily-zip-unzip-files-using-Windows-Shell32 Do you know a faster way? | |
Why this command wont execute the path properly? The path have spaces, but with the path inside quotes, it was suposed to work. Why it's not reading the fully path? Path: 'C:\Users\Administrador\documents\visual' is not recognized as an internal or external command Dim myProcess As Process = New Process() myProcess.StartInfo.FileName = … | |
Hi i m trying to connect with .mdf database file from vs2005. it gives error failed to create user instance .....i hv installed visual studio managemant express2005 | |
Hello Community, I was wondering if there is a way to programmatically import a dll containing a form. Example: When i press a button it will open the form from the dll. NOTE: I need to programmatically import the dll. Please help | |
Hi guys, I'm designing an e-learning software that will teach kindergarten kids alphabets, numbers and shape. I need suggestions, reference, head-ups, etc. | |
I have tried this command but is not working, can someone tell me why? Dim myProcess As Process = New Process() myProcess.StartInfo.FileName = "cmd.exe" myProcess.StartInfo.Arguments = "/C " & "rabcasm.exe " & "\Source\" & "3.3.0-1\3.3.0-1.main.asasm" myProcess.StartInfo.WindowStyle = ProcessWindowStyle.Hidden myProcess.StartInfo.CreateNoWindow = True myProcess.Start() myProcess.WaitForExit(1000) If Not myProcess.HasExited Then myProcess.Kill() End If … | |
Hi All, We are planning to write automation script to install oracle. Can you please let us know is it possiblw to write any script for the above requirement,if yes please share your thoughts. Thanks, Vas. | |
How can I write to a specific line in a text file? Can someone make me a function sWrite(filePath as string, noLine as integer, newText as string)? | |
Hello , I was actually very interested in making a server or ftp server in VB.NET but it needs so many functions and events that i even never heard of so i was wondering if you guys knew a good site for me to learn it or i also have … | |
I know you guys are normally not usually willing to mess with stuff like this because it is so beginner, but i'm in need of major help. I have already created the code for the game it self, and it works perfectly fine. I now want to know how to … | |
i made a login table and i am filling records in it through my datagridview but when i delete all the records and make the table empty and then when i put the record in the login table it takes 1 no ahead of last deleted record .i want it … | |
Hey Folks! I'm using a windows hook to scroll horizontally through a listview. I have it aligned so it only adds items horizontally. I have 2 big buttons I'm using to scroll right and left with nice bitmaps on them... The problem is the listbox has scrollbars appear when I … | |
i made a login table and i am filling records in it through my datagridview but when i delete all the records and make the table empty and then when i put the record in the login table it takes 1 no ahead of last deleted record .i want it … | |
Hi, I want to get last working day data from database(SQL database). For example, if today is Tuesday, I want to get Monday data. I can get the data directly using strtTime = Date.Now.AddDays(-1).ToString("yyyy/MM/dd") & " " & "06:15:00" But the problem is if today day is Monday. Since the … | |
In vb.net how to convert months into days without decimal point | |
I would like to, if cleanly possible, start a timer after a textbox length has reached a set amount of characters. The timer interval would be set at 'x' amount of seconds and would call my save feature, but I haven't really done anything with timers and not totally sure … | |
Hello , I was wondering if I could move my form or any other object with my arrowkeys in vb.2010? I found out how to do this in vb6 but this function can't be used in vb.2010 and can't find the replaced function anywhere. If anyone can help me , … | |
-My code sutomatically adds a hyphen at certain positions in the string, but I am unable to delete the second hyphen if I want to edit what I've typed in before that. Is there a way to fix this? Private Sub txtISBN_KeyPress(sender As System.Object, e As System.Windows.Forms.KeyPressEventArgs) Handles txtISBN.KeyPress If … |
The End.