20,279 Topics
| |
procedure TMSDE2005Fm.ButtonInstallClick(Sender: TObject); Var txt: TextFile; aFileName, s: String; begin aFileName := GetTempDir + '\PROD_Name.bat'; AssignFile(txt, aFileName); ReWrite(txt); s := GetSetupString; WriteLn(txt, s); CloseFile(txt); MessageDlg('Setup will now begin for SQL Server 2005 Express.', mtInformation, [mbOk], 0); ShellExecute(0,'open',PChar(aFileName),nil,nil,SW_SHOW); ButtonCancel.Caption := '&Finish'; end; function TMSDE2005Fm.GetSetupString: String; begin Result := '"' + Trim(wwDBEditSetup.Text) … | |
I'm making a random number game. The user only gets three chances to guess. If the user guesses wrong all three times, a message box should appear asking if he/she wants to restart, if yes then reset the game and it's controls. I'm not sure if i'm suppose to use … | |
Hi DW I'm creating an application in VB.Net which is using the command to complete the tasks the reason why I'm doing this on VB.Net is that I have an interface where the user will be able to type in and also choose the prefered options, the vapplication will then … | |
i am making a reservation system and i am having a a problem with time conflicts(the system must not accept a reservation where in there is already an event reserved art that time. . my table looks like this ![0fac31edf20c874089f52ed4a0be4fb6](/attachments/small/4/0fac31edf20c874089f52ed4a0be4fb6.png "align-left") | |
Has anyone had issues using EASendMail to send to hotmail accounts? I have no issues with any other domain, but hotmail accounts don't seem to go through. There are no errors when the code executes, but the email doesn't show up. | |
Hi all! I have a user interface where I want to filter a datagridview.. I 've achieved to create filters but I 've failed to filter tha data by date.. I have a sql db and the column of date is of datetime type. When I try to filter the … | |
| Hi, need some help. How can I retrieve data from MS Access database into DataGridView that allow me to ADD/UPDATE/SAVE/DELETE? Thanks. Hope someone can help me. |
i am using an access odbc to connect my database to a crystal report , when i ma generating the report up to 10 times successivly the access con stop working , can i know why ?? and how i can make the odbc access more faster and can hold … | |
I have a gridview that is populated and a button outside the gridview that I want to enable editing on the selected row when clicked. I have this in the code behind. What goes in the button event to invoke the grid view editing? Protected Sub GridView1_RowEditing(ByVal sender As Object, … | |
I have a datagridview and a bindinglist. They work together pretty ok, but I want to make the properties appear in the rows´ headers, not on the column. Other thing I want to do is to make the headers´ text be different from the properties name. Is there any way … | |
Hey all, I'm trying to do something and read text from page to listview in columns, problem is i get first row, but second third etc it dont insert idk why, im talking about ROWs here is my code check it out and let me know what is wrong? Try … | |
ublic Class Login Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click If Password.Text = "" Or Username.Text = "" Then MessageBox.Show("Password v likh..", "Banday da puttar ban.. :D ", MessageBoxButtons.OK, MessageBoxIcon.Error) Else Dim conn As New System.Data.OleDb.OleDbConnection() conn.ConnectionString = "Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\CCIMS.mdb; Persist Security Info= False" Dim cmd As … | |
I have 2 forms. One is a typed list having 3 controls (fields) loaded from access database (copied to project as part of .xsd). The values in this list represent recommended values of items and will also be applied to another 3rd form eventually. In the 2nd form there are … | |
Hey, I need help.. Let's say I made an application and gave it to a friend, how can I made a "Control Panel"..? I mean if i'll click a button it'll exit the application in he's computer..? Thx ! | |
i just want to display datagrid value to label but i am getting problem after passing ten line. Label1.Text = Me.DataGridView1.CurrentRow.Cells(0).Value.ToString.Trim Private Sub DataGridView1_MouseClick(ByVal sender As System.Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles DataGridView1.MouseClick Label2.Text = DataGridView1.CurrentRow.Cells(1).Value.ToString Label3.Text = DataGridView1.CurrentRow.Cells(2).Value.ToString Label4.Text = DataGridView1.CurrentRow.Cells(3).Value.ToString Label5.Text = DataGridView1.CurrentRow.Cells(4).Value.ToString Label6.Text = DataGridView1.CurrentRow.Cells(5).Value.ToString Label7.Text = … | |
how to prevent using ALT F4 TO close a vb form | |
i have a txt file that is exported from an attendance software as follow : Date Time s1 s2 EmpiD IN\OUT 07-24-13 12:23:52 001 07 0000020009 0300000000 07-24-13 12:24:02 001 07 0000020010 0300000000 between the columns of this txt file different spaces for example between date and time 1 space … | |
As I was testing the game I noticed that when you try to guess another number for the second time and you guessed it right the "Game over, the correct guess is __" messagebox.show appears. Can someone explain what is wrong with this? Public Class SuperAwesomeGuessingGame Dim ranNum As Integer … | |
Hi I have access database with two tables With a Relationship i can insert records into the first table with no problems but when im trying to insert a record in the second table i got error message Error message : Syntax error in INSERT INTO statement. - Microsoft Office … | |
Hi all, I wanted to load a listbox with items from the database.I just wrote the code using oop. But on the interface i'm not sure how to read and insert the items in the listbox. How can i access the items being read at the client side(interface). Public Sub … | |
good day! im working on a migration tool for mysql to mssql. is there any references or codes that you guys can share to me to create databases and transfer data from mysql to mssql? ive just got this idea of using dump mysql files since they also have sql … | |
My UPDATE vb.net code below displays this error message:conversion from string "UPDATE tblstaff SET fName='name' " to type 'integer' is not valid.Microsoft.visualBasic conn.Open() If conn.State = ConnectionState.Open Then com = New OleDb.OleDbCommand("SELECT *FROM tblstaff ") com.Connection = conn Dim cb As New OleDb.OleDbCommandBuilder(da) da.Fill(ds, "Eeestaffinfo") Dim sql As String = … | |
Hello everybody! I’m trying to create a program in which the user has the ability to move the image with mouse click and ability to zoom in and out by scrolling the mouse wheel. If the user wants to return to the original image size and position, it will be … | |
Hi I am currently working on a piece of code that I am struggling to get working. I have a picture box that I want to move across the screen. At the moment I want it to stop when it gets to a certain point and you have to click … | |
Please help, it keeps on showing the exception msg "Failed" the message send never work Imports System.Net.Mail Imports System.Net.CredentialCache Public Class Sendmail Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click If TextBox1.Text = "" Or TextBox2.Text = "" Or TextBox3.Text = "" Or TextBox4.Text = "" … | |
Hello There, I am Working with Master Detail Database, There Many Tables and Columns with Relationship. One of them 'M_Location' is one Table, and Its Primary Key IS 'LocationID' and Another table is 'D_Trip', so LocationID is used in D_Trip, now whenever gridview shows data of 'D_Trip', and also show … | |
Step 1. Install mysql-essential-5.0 Following Command To install that . start mysql-essential-5.5.12-win32.msi /quiet /norestart Step 2. Set configuration Run Following Command line For That . cd\ cd Program Files cd MySQL cd MySQL Server 5.5 cd bin MySQLInstanceConfig.exe -i -q "-lC:\mysql_install_log.txt" "-nMySQL Server 5.5" "-pC:\Program Files\MySQL\MySQL Server 5.5" -v5.5.12 "-tC:\Program … | |
[CODE]Public Class Form5 Dim connection As OleDb.OleDbConnection Dim mystr As String Dim cmd As OleDb.OleDbCommand Dim adp As OleDb.OleDbDataAdapter Dim ds As New DataSet Private Sub Form5_FormClosing(ByVal sender As Object, ByVal e As System.Windows.Forms.FormClosingEventArgs) connection.Close() End Sub Private Sub Form5_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load mystr … | |
how i could import my txt file into access database 2010 using vb.net . the txt file as follow : 08-14-13 08:09:26 001 07 0000020016 0100000000 08-14-13 13:12:06 001 07 0000020014 0300000000 i should take into consideration the space between columns becauase this txt file is exported from a certain … | |
Hi group, I'm looking through the book "Mastering Microsoft Visual Basic 2010" by Evangelos Petroutsos. I'm trying to work through a chapter on designing windows controls. In the first step the directions read: "Start a new project, and in the New Project dialog box, select the template Windows Forms Control … |
The End.