20,285 Topics
![]() | |
Hi all! i am trying to copy a file from 1 location to other location with a new name. The new name should be like "Oldname + date & time". I wrote the following code but getting error that the Given path format is not supported [code] Imports System.IO Public … | |
Hello, Currently I can connect database through local area network by using IP address on the SQL string. Then I read about security things that it require ssh/tunneling ? I also wanted my computer can connect to mysql database server not only through LAN but also through the Internet. So, … | |
Hello All, I have a question regardind=g accessing shared resources. I have a for loop in which i am creating many threads.. And each thread at some point of time they call this function : [code] Public Function UpdateMailJobs(ByVal con As Data.DataRow, ByVal jobid As String, ByVal varName As String, … | |
Can Somebody please help a newbie ? I`ve searched high and low for an answer, but just can`t seem to get it working ! I`m trying to write a programme ,in VB2008 Express, to receive Serial Port Ascii data ( from a Multimeter) and display it as Hex Data in … | |
Hello, I Got problem in using delimiter by using vb.net 2008 Please take a look at my code [CODE] Dim array As String() Dim IPaddr as String Dim r As New System.IO.StreamReader("config.ini") Dim rline As String = "" Dim s As String = "" While r.Peek <> -1 rline = … | |
hello i have an appl. in vb2008 with a datagridview. when i import my data from excel (colum with text and numbers)it only imports the numbers or the text , not the both. example : 120 150 set25 160 "set25" is not imported example : set120 150 120 set130 "150 … | |
I'm trying to LINQ two tables based on a dynamic key. User can change key via a combo box. Key may be money, string, double, int, etc. Currently I'm getting the data just fine, but without filtering out the doubles. I can filter the double in VB, but it's slooooow. … | |
Private Sub Save_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Save.Click conn.Open() Dim cmd As New OleDbCommand("Update (SELECT Employee.empno, Employee.emplname, Employee.empfname, Employee.empmidname, Employee.contactno, Admin.description FROM Admin INNER JOIN Employee ON Admin.adminNo = Employee.adminNo) Set emplname=?, empfname=?, empmidname=?, contactno=?, description=? where empno=?", conn) cmd.Parameters.Add("empno", OleDbType.Integer) cmd.Parameters.AddWithValue("emplname", OleDbType.Char) cmd.Parameters.AddWithValue("empfname", OleDbType.Char) cmd.Parameters.AddWithValue("empmidname", … | |
Can anyone tell me what is wrong with the following Code. I am trying to launch a form on a different thread because the form takes 10+ seconds to load. The code I am using follows: [CODE] Public Class frmAdjustments Inherits System.Windows.Forms.Form Dim gVariant As Guid Dim gsUID As Guid … | |
hi everyone kindly help me with my code, my form isn't showing my newly added records in the database but when i close it and then open again it will show. I want to know how to add refresh button and it will automatically refresh itself.. Thanks in advance! | |
How to store and retrieve images from VB.NET and Sql Server 2008 | |
I'm re-posting this because I forgot to put code tags around the code. I'm trying to make a form with a thermometer painted on it. I want the thermometer to go up each second. I tried the code below and it sorta works, but not really. It does the For... … | |
Hello people, can some one explain me how i can plot distance based graphs.., like i have x,y and z vlaues in three files , i calculate distances cause x and y are latitude and longitude now i need to plot them using zed graph.., i can plot them but … | |
Here is my Prob- we have a main router from which we use a distributor or hub for internet connection distribution, ever computer connected automatically obtains IP address of format say - 180.50.50.xxx to access net connection. if any connected computer has different IP format than the given one, it … | |
How do get a dll's resources By resources i mean the stuff that you can put in like Images,files,icons ect. How to you call the resources:) | |
please give me full coding for searching data from textbox and display it in gridview. | |
hi i guess the title pretty much states the question but i will give the senario to be more clear. i have a mousemove() event which i add in my program programmatically and i need a way for raising that event (again) programmatically too. raiseEvent control_mousemove() doesn't work as it … | |
I play a game called Hyperiums... long story short, the fleets cost money depending on your planets race, production and government type. And you can have it by how long it's going to take and what the fleet AvgP is going to be or see how much the upkeep will … | |
I need to return a class which inherits List(Of ) in a webservice. The consuming application simply views it as an array of the class, not a list. In fact, the Collection class is not even available to derive an object from. Class Definition: [CODE=VB.NET] Public Class TestResultCollection Inherits List(Of … | |
I've got a vb.net 2005 form that calls a stored proc to load a combobox with eligible sales reps. There are approximately 40k sales reps available...I know that's a lot, but that's what I'm dealing with. I'm trying to figure out why it's taking this form 15 seconds to load. … | |
im going to try and explain this as easy as possible, this is something i have never done with .net before there is a login form at [url]http://www.ritani.com/salespersons/login[/url] it uses the post method to login. i have a web browser control in vb.net that I want to have automatically log … | |
can someone tell me how to get the [U][B]icon[/B][/U] of a webpage. i can get the icon of a webpage and set it as an image but i want to take it and set it as the icon for my application. here is the code to get the icon and … | |
I'm having trouble trying to update or delete records from my database. Basically, I have a datagridview(DGV) in my form and the following is what I wanna do. The user could directly change/edit the values in the DGV and just click the update button to update the database. And the … | |
Hello all, This code works fine on my Win XP machine, but not on Win2k. I have tried overriding the webrequest function in Reference.vb with [code=vb.net]Protected Overrides Function GetWebRequest(ByVal uri As Uri) As System.Net.WebRequest Dim webRequest As System.Net.HttpWebRequest webRequest = CType(MyBase.GetWebRequest(uri), System.Net.HttpWebRequest) 'Setting KeepAlive to false webRequest.KeepAlive = False GetWebRequest … | |
Which datagrid should I use in vb.net? Which grid works like mshflexgrid? I have used mshflexgrid in my vb.net project as a result it shows error when I am trying to build my project! Please check my code & tell me which grid will support my code. Please add example … | |
I just want to know if is it possible to connect to a SQL server using a data link file in vb 2008? how will i create a valid data link file? How will i call the data link file in my program? please help me.. | |
I'm trying to figure out how to pass a parameter to a report in VB... [URL="http://screencast.com/t/MjBhYjYxOTM"]http://screencast.com/t/MjBhYjYxOTM[/URL] I've looked at the microsoft library on the report viewer class, but it's only slightly better than a boat anchor... does anyone have any other useful tips on how to figure this out? | |
I have visited [url]http://msdn.microsoft.com/en-us/library/k3bb4tfd(v=VS.71).aspx[/url]. I have learned many things. But it didnt make clear about those files what I have used there in my program. I know I can add additional files. Does it mean that I have to add those files there in additional file dialog box what I … | |
I'm trying to populate my textboxs with data from my database when the user name is selected but I'm having trouble getting the code right. Help Please! table users (there is a textbox for each of these fields) password lastname firstname Using upcmd As New SqlCommand("SELECT * FROM users WHERE … | |
I Have a PDF Folder containing pdf files with the names ( sp_1.pdf , sp_2.pdf etc.....) In my word files , I have the text : " and it was created under the rule sp_1 in order to acheive the level we are working for that is sp_2 " so … | |
hello guys..i have a question..Is it possible to make the time running in datagirdview? and also if it is possible to make the update of two form combine in 1 form for example you have a customer form that you save, update in database and another like for employee that … | |
In the past I have been able to simply read the physical pinouts on the: Games Port (DB15) (using PEEKS and POKES) . . . . . . . . . . . . . . . Parallel Port (DB25) (also using PEEK and POKES(888)) . . . . . … | |
in my problems, i want to use event keyboard press 'Enter' on textbox, i'm very confuse because in event property from textbox there was Enter, but after I double click and read statement in that, after i test my program, there was nothing , please help thanks before :) | |
Hi, i would like to share you my problem in order to get solution `cause i gonna be crazy :( Actualy when i do click to insert button in my form i get this error: [ATTACH]17077[/ATTACH] the strange is when i close this window and i do click again the … | |
I'm using Mastering Visual Basic 2010 <book and it tells me... In a button's Click event handler, declare two variables as follows: Dim a As Single, b As Double Then enter the following statements: a = 1 / 3 Debug.WriteLine(a) Run the application, and you should get the following result … | |
Hi all, I'm fairly new to VB. I'm working on a Windows forms app that will average a set of numbers, the only catch is that there are 10 textboxes(4 in the example for times sake), and not all of the textboxes could be filled with a number... I know … | |
[code] hi, i have been having an endless problem with the save button for some time and i am also new in here. Actually, here's how my problem defines: i was developing my own project in the university so what i am stack is to have save button which firstly … | |
Dear Mr or Ms: Nowadays, I have started to learn a programming and my subject that I have chosen is VB.NET. but I am very afraid whether I can learn it well or not. thus, I want to ask all of you that, How can I learn it well and … | |
hello...how can i make my post thread solve if it is already answer? | |
If there any solution on how to choose specific column..what is the code?? i'm using VB.Net [CODE] If e.Row.RowType = DataControlRowType.DataRow Then Dim CellValue As Decimal = Convert.ToDecimal(e.Row.Cells(4).Text) If CellValue < 5.0 Then e.Row.Cells(4).BackColor = Drawing.Color.Orange End If End If [/CODE] | |
So, this might be simple but I seem to be missing it. I am trying to figure out how to use variables to define which object to update. I could of course use a case statement to pick the object based on a variable, but it seems to me like … | |
i use a Button on tool strip menu any one can help me to write a code(function) so when i click it i get what i want i dont want to use the mouse | |
hello geeks, this is my first post, and my question is... i have some text files from which my app reads and process data, these text files are in hundreds and i am now providing them in a folder, but these should not be accessed by others, how i can … | |
i have a problem with saving data to access database this is my code [CODE] Private Sub btnSave_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnSave.Click If inc <> -1 Then Dim cb As New OleDb.OleDbCommandBuilder(da) Dim dsNewRow As DataRow dsNewRow = ds.Tables("Personnel").NewRow() dsNewRow.Item("PerID") = txtPersonnelID.Text dsNewRow.Item("FirstName") = txtFirstName.Text … | |
I want to know about the tool strip Control. Can i Use Tool strip button in all the Win form. Like, I put the delete button in all the window form, but I want to put only one button in the tool strip and remove buttons in all the window … | |
anyone can help me to separate a database horizontally instead of potrait. as example... BEFORE: Quarter 1=20 Quarter 2=10 Quarter 3=15 Quarter 4=35 AFTER: Q1 Q2 Q3 Q4 20 10 15 35 | |
i want to implement this feature : if i have a following sentence : {my name is james vick and iam a {member|user|visitor} on this {forum|website|site} and iam loving it | iam admin and iam a {supervisor|admin|moderator} on this {forum|website|site} and iam loving it} on a click of button i … | |
i need help, i am making a web browser in vb 10 and i have a built in media player and i want to make a play list. i got it to work with a listbox but not anything else. For the menustrip [CODE] Private Sub PlaylistToolStripMenuItem_DropDownItemClicked(ByVal sender As System.Object, … | |
I am new to vb . Now i wan to create a standalone program to send datagrid data via email . izit any way to send the datagrid to email body ? below is my code. [CODE]Public Class Form1 Dim oLapp As Object Dim oItem As Object Private Sub Form1_Load(ByVal … | |
Hi, I'm trying to create multiple instances of a child form. This form has an event that feeds a string variable back to the parent so I'm declaring it with WithEvents which is declared outside of the Sub - meaning multiple clicks will not open multiple forms. Any idea on … |
The End.