20,278 Topics
| |
Can anybody tell me where i can find the connection string for using on a asp.net form. I am trying to connect a mysql database to it, and wanted to connect a access database to test the main functions. But i am having a hard time finding any of these … | |
Hi, I was wondering if anybody could help me with printing a displayed form to a printer. This is my current code. (I am using the PrintForm visual basic PowerPack.) [CODE] Private Sub btnPrint_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnPrint.Click cPrintForm.PrintAction = Printing.PrintAction.PrintToPreview cPrintForm.Print() End Sub[/CODE] This … | |
I have a number like 6511 and I want to round it up to 7000. How do I tell the computer to round the numbers to the thousands place. I know how to round decimals but not whole numbers. Thanks for you Please help! | |
Hi guys, I am wondering how would I copy files into a jar, as well as delete folders from that jar. Would I have to decompile it then recompile it? Would sharpziplib do the trick? Any help is appreciated, -Toxikr3 | |
I am trying to populate a text box by taking the first 8 characters of a string in a list box. I have heard of a left mid and right function. Does anybody know how to use these functions? Thanks in advance :) | |
Hello I'm trying to send emails using smtp and getting an error This is my code : [CODE]Imports System.Net.Mail Public Class Form1 Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load SendEmail() End Sub Public Sub SendEmail() Dim client As New SmtpClient() Dim sendTo As New MailAddress("shtrees@gmail.com") … | |
Hey I want to control a textbox to only allow numbers, backspace and a certain length. Ive tried with the IsNumeric function but I cant seem to get it to work. Thanks. | |
im a beginner wid vb .net and need to clear the air wid connecting a database file created on sql server 2008r2 wid vb.net 2008 for a project..plz nebody help from scratch regardng retriving,insertng n modifyng data using vb.net code..awaiting.... | |
How i can; Get a image from webcam with a sub or Function i dont want dll or anything just a sub or function. Thanks now | |
So I made a script to upload a file : [CODE]<html> <body> <form enctype="multipart/form-data" method="post"> <input type="hidden" name="MAX_FILE_SIZE" value="1000000" /> Choose a file to upload: <input name="uploaded_file" type="file" /> <input type="submit" value="Upload" /> </form> <?php include 'global.php'; //Check that we have a file if((!empty($_FILES["uploaded_file"])) && ($_FILES['uploaded_file']['error'] == 0)) { //Check … | |
Hi all! I m trying to filter a datagridview (connected to sql server). I have used if statements in order to take all the possible combination but now I have 8 textboxes into which the user should insert values and filter the datagridview.. it is too complex.. I have asked … | |
Hi all I m trying to filter a sql db with many filter criteria which inert the user in textboxes .. i ve tryed this query [CODE]query = "Select * from T_INCIDENTS1 where IFF (txtPostcode.text is notNull) then Incident_Postcode='" & txtPostcode.Text & "') and iff (txtDMA.text is notNull) then Incident_DMA='" … | |
Hi Guys, I am having a little programming jam at the moment. i have a datagridview set up whenever the user selects a row i am able to capture the necessary details but what i really want is the next row providing that the user selects the previous row. example … | |
Hey all, I'm trying to show some concatenated data in a CheckedListBox so that users are able to select the data for use later on. Here is the code I am using currently: [CODE]Dim con As New MySqlConnection Dim theQuery As New MySqlCommand Dim theTables As New DataTable Dim theAdapter … | |
[CODE]Option Explicit On Option Strict On Public Class workschedule Public Sub Start() Dim choice As Integer = -1 While (choice <> 0) WriteMenuText() choice = Convert.ToInt32(Console.ReadLine) Select Case choice Case 0 Case 1 Week() Exit Select Case 2 Nights() End Select End While End Sub Public Sub WriteMenuText() Console.WriteLine("-------------------------------------------------------") Console.WriteLine(" … | |
hello ! i am working on an application and i want to connect it with mssql database , i dont know about the version of installed mssql server at the pc , how can i get the version of installed mssql server so that i can connect my application with … | |
I have an application which calls an external process. I would like this process to be open as soon as it is called. i.e. with no user interaction. This is because I would like to send Keys to it to interact. I know how crude this is but this is … | |
Hi all, I need help with a code to search Sheet1 and copy to Sheet 2. I have attached a Workbook to simulate what I want to accomplish. I want to press a button on Sheet2 which would run the macro a search dates on Sheet1 and copy the name … | |
Hi, I'm currently trying to program a sudoku solver. As a beginner I wrote pseudocode to establish what I'd have to do. One of the first things was to make sure each number in each of the 3 x 3 grids aren't equal to any of the others. Here is … | |
I'm writing the following bits of code for a SaveFile Dialog box in Visual Basic 2010.NET. The code works well as the XLSX file is created and opens in Microsoft Excel. However, the problem that I am having is that if the program overwrites a file, the user is getting … | |
[CODE]Public Class CurrencyConverter Private summation As Decimal Private sum As Decimal Private curryncy As String Private exchange As Decimal Private final As Decimal Public Sub Start() WriteProgramInfo() ReadValuesAndSumNumbers() WriteResult() End Sub Private Sub WriteProgramInfo() Console.WriteLine(vbLf & "++++++ Finnish input type 0 ++++++") End Sub Private Sub ReadValuesAndSumNumbers() Dim done As … | |
Do you know how to use an http post using this code? This code is given by nowsms to use their mms sending but I don't know how to use it in my vb.net application. Here's the code: [B]POST / HTTP/1.0 Accept: */* Content-type: multipart/form-data; boundary=”–boundary-border–” Content-length: xxxxx (size of … | |
Hi, I seem to be having a problem with displaying data in a second form. I've created a linear search algorithm which works just fine - it locates the records from the database. I now want to be able to display the record in another form, I've attempted this using … | |
hi daniweb members I am using visual basic 2008. i have a listview and a datagridview which have both 3 columns like ProductCode,ProductName & ProductPrice. Now i want to pass listview values to datagridview in the same sequence. I want that when i double click on any row in the … | |
Can anyone help me by giving out a complete tutorial on the step by step way a connecting to a database using VB? | |
I currently have the following bits of code: [CODE=VB.NET]Public Class MainFrm Private _storage As New List(Of StopwatchStorage) Public TotalParticipants As Integer Private participantLbl As Label Public participantName As TextBox Private participantClock As Label Private participantContinuation As New Stopwatch Public ParticipantStop As Button Private participantContinue As Button Private participantTimer As Timer … | |
Hi i have the following code. Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim con As New OleDbConnection Dim da As New OleDbDataAdapter Dim ds As New DataSet Dim dsnewrow As DataRow Dim cb As New OleDbCommandBuilder(da) Dim a As String con.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=F:\DB.mdb;Jet … | |
hi everybody! i already know how to save in excel using openfiledialog. but what i want to happen is that when i save another file, i want it to be saved in my existing file but in a different sheet. can you guys help me? this is my code for … | |
Hello, I'm need to create a small report to be send automaticliy from VB.NET Windows application. I have wrote below code which is workin on my private PC, and with Gmail settings, such as username + password + smtp.gmail.com, etc... But with, my work informations, like my proxy ID + … | |
Hi all, I need my form to automatically select the first entry in the datagrid view when it is loaded. I am having trouble finding the correct way to code it. [CODE] Private Sub CustomersForm_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Dim cust = From customers In … |
The End.