19,728 Topics

Member Avatar for
Member Avatar for muhammad.ibraheem

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 …

Member Avatar for muhammad.ibraheem
0
272
Member Avatar for jdaniel13

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 …

Member Avatar for urtrivedi
0
148
Member Avatar for TeaYou

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 …

Member Avatar for poojavb
0
186
Member Avatar for salam786191
Member Avatar for G_Waddell
0
31
Member Avatar for jhedonghae

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

Member Avatar for jhedonghae
0
120
Member Avatar for trevor.hood.921

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

Member Avatar for trevor.hood.921
0
1K
Member Avatar for hdeo1235

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 …

Member Avatar for Reverend Jim
0
270
Member Avatar for kenomote

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 …

Member Avatar for adam_k
0
186
Member Avatar for SaaDwTk

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

0
162
Member Avatar for karthik82vk

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 …

Member Avatar for Reverend Jim
0
239
Member Avatar for ulasoc

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 …

0
96
Member Avatar for SaaDwTk

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 …

0
79
Member Avatar for SaaDwTk

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?

Member Avatar for Reverend Jim
0
118
Member Avatar for SaaDwTk

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

Member Avatar for Reverend Jim
0
662
Member Avatar for jaimin4829

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

Member Avatar for jaimin4829
0
109
Member Avatar for joshl_1995

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

Member Avatar for Begginnerdev
0
290
Member Avatar for faroukmuhammad

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.

Member Avatar for Prince Vinnette
0
98
Member Avatar for SaaDwTk

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 …

Member Avatar for Reverend Jim
0
939
Member Avatar for vasuv

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.

Member Avatar for Reverend Jim
0
82
Member Avatar for SaaDwTk

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

Member Avatar for Reverend Jim
0
1K
Member Avatar for timon.bijl

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 …

Member Avatar for timon.bijl
0
263
Member Avatar for jjones41

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 …

Member Avatar for Reverend Jim
0
133
Member Avatar for khair.ullah

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 …

Member Avatar for Begginnerdev
0
127
Member Avatar for ZeroZen

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 …

Member Avatar for ZeroZen
0
2K
Member Avatar for pratik65

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 …

Member Avatar for Reverend Jim
0
183
Member Avatar for lulu79

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 …

Member Avatar for lulu79
0
205
Member Avatar for soweto007
Member Avatar for kRod
0
52
Member Avatar for Gus_19

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 …

Member Avatar for Reverend Jim
0
209
Member Avatar for timon.bijl

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

Member Avatar for Reverend Jim
0
323
Member Avatar for veeeeebeeeee

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

Member Avatar for Icone
0
116

The End.