20,899 Topics

Member Avatar for
Member Avatar for Matigo

Hello guys I have got a little programme that been written in Python, I did connect it to an application been created in Visual Basic 2010, But to run the Python file, Of course you will need to install the Python software/Format to be able to run the python file, …

Member Avatar for Matigo
0
240
Member Avatar for Jawow

Private Sub chktop_Click(Index As Integer) 'read toppings PizzaTop = chktop(Index).Caption End Sub Private Sub cmdBuild_Click() 'message box Dim message As String Dim message2 As String Dim I As Integer Dim b As Double Dim e As Double Dim PizzaSize As String Dim PizzaCrust As String Dim PizzaWhere As String If …

Member Avatar for Reverend Jim
0
171
Member Avatar for akash.kotecha1

I want to send the message from my PC to my mobile usnig vb.net...... please help me.... it's urgent...... and if possible please provide the code.... thank you for your help in advance.... :)

Member Avatar for akash.kotecha1
0
185
Member Avatar for savedlema

Hi all! I have a table with (StudentID,Physics,Chemistry,Total,Average) I want to pull values of Physics,Chemistry and calculate Total and then Average for a specific StudentID. With the following code: "SELECT SUM (IIF(ISNULL([Physics]),0,[Physics])) As Phy, SUM (IIF(ISNULL([Chemistry]),0,[Chemistry])) As Chem, SUM([Physics])+Sum([Chemistry]) as Total FROM tblForm1 WHERE StudentID = '" & Trim(Me.txtSearch.Text) & …

Member Avatar for savedlema
0
1K
Member Avatar for lulu79

I want to display datatable result in a label. I have something like this : PLEASE TAKE ACTION FOR LINE **LABEL** But i want the result to be like this: PLEASE TAKE ACTION FOR LINE **Z3, Z5, Z8** I try to use loop but still cant get the result that …

Member Avatar for lulu79
0
842
Member Avatar for lulu79

I want to perform an UPDATE query but i'm getting this error: ![errorHAVING](/attachments/fetch/L2ltYWdlcy9hdHRhY2htZW50cy8zL2Vycm9ySEFWSU5HLkpQRw%3D%3D/500 "errorHAVING") This is my Sub in vb.net: Public Sub changeStatus() Dim Sqlstr As String Dim connectionString As String = "server=xxxx;uid=xxxx;pwd=xxxx;database=xxxx" Dim strtTime As String Dim endTime As String strtTime = DateTime.Today.ToString("yyyy/MM/dd") & " " & "06:15:00" endTime …

Member Avatar for lulu79
0
911
Member Avatar for Matigo

Hello everyone In my app i'm using the counter and timer, But im stuck with resetting the counter My code is: If Timer2.Enabled = True Then counter = counter + 1 Label1.Text = counter If Label1.Text = "180" Then Timer2.Enabled = false Timer3.Enabled = true End If End If End …

Member Avatar for Matigo
0
793
Member Avatar for DyO1

Hello, I need a code that will check if a certain text exist. This is how it's now: If TextBox2.Text = ".sys\clock" Then TextBox1.Text = TextBox1.Text + Environment.NewLine + ("It's") + DateTime.Now End If and I want to make something like this If TextBox2.Text = ".sys\clock" Then TextBox1.Text = TextBox1.Text …

Member Avatar for Reverend Jim
0
223
Member Avatar for joshl_1995

Hello Community, I was wondering if there is a way to make a program that will copy text from an excel spreatsheet and place it in another using visualbasic.net not vba? Please Help

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

Hello , i was kinda getting interested in a keylogger so can anyone maybe copy paste a keylogger code just an easy 1 . If you type something it just has to appear in a textbox if you can help me , please do it! thx

Member Avatar for pritaeas
0
113
Member Avatar for sundar.mjk

hi it 's working but the Grid view not disp.lay the details Dim cn As OleDbConnection = New OleDbConnection("Provider=Microsoft.Jet.Oledb.4.0;" & "Data Source=D:\Task_one_one\TaskNew\TaskNew\App_Data\db1.mdb") cn.Open() Try Dim myTable As DataTable = New DataTable("MyTable") 'Dim ds As DataSet = New DataSet myTable.Columns.Add(New DataColumn("Emp Id")) myTable.Columns.Add(New DataColumn("Start Time")) myTable.Columns.Add(New DataColumn("End Time")) myTable.Columns.Add(New DataColumn("Hours")) myTable.Columns.Add(New …

Member Avatar for G_Waddell
0
174
Member Avatar for dr.syroj
Member Avatar for Programmer629

* Hey ppl! i was wondering if anyone could get me started with a project in VB.NET 10. the project i wanna create is a program lik outlook 2010. its prob a long shot but i want it to be in *COMPLETELY* VB. i have VS 10 .net and u …

Member Avatar for Programmer629
0
183
Member Avatar for bballdrew45

I am currently working on a program for a higher or lower card game. I have my game set up and in place, however I am having trouble keeping track of the cards that have already been drawn from the deck. I am only playing with one deck and need …

Member Avatar for gianni.joris
0
272
Member Avatar for joshl_1995

Hello Community, I was wondering if there is a way to replace a cell value from one excel spreadsheet and save it as another spreadsheet but with the replaced cell value. Please Help

Member Avatar for joshl_1995
0
1K
Member Avatar for ebrahim1

Hi all Im trying to send integer value from combobox in form 1 to textbox in form 2 I try use this code on form2 : me.textbox.text = form1.combobox.selectedvalue This code works with a textbox **does not have a data source** but when I **set** the data source for the …

Member Avatar for ebrahim1
0
147
Member Avatar for EmpK

For a project i have to create a program that is able to write and read a sequential file and list the contents into textboxes. So far i am able to write to the file but the problem is i am not able to retrive/read the information from the file. …

Member Avatar for xerohomicide
0
230
Member Avatar for pratik65

i have textbox in my form and i want it take only numbers from 1 to 12 only and not any thong else...i am trying but iam not getting the logic for it

Member Avatar for Reverend Jim
0
112
Member Avatar for EmpK

How do i make a label display if the textbox value that was entered is invalid? This is my code so far and when i press the button to find the invaild source the label is suppose to appear but nothing is happening when i click the button. Private Sub …

Member Avatar for Reverend Jim
0
188
Member Avatar for magord86

I'm trying to switch "M" to "Mr." and "F" to "Ms." when the last name is selected in the listbox. When I clicked on the first name it worked, but when I clicked on anyother name, I got this error message: --Additional information: Index was outside the bounds of the …

Member Avatar for magord86
0
287
Member Avatar for Bliper

Hi All, On my form I have a datagrid. From this form I initialise a new instance of my data access class and using a dataadapter I return a datatable from my sql server database. The datatable is then set as the datasource for my binding source and intrurn the …

Member Avatar for khair.ullah
0
151
Member Avatar for EmpK

So far i have a code that only allows you to enter numbers but how do i limit the value from 0 - 9999. Also how would i be able to display a message label if the user is doing something illegal. Right now i have the messagebox setup but …

Member Avatar for EmpK
0
748
Member Avatar for 404notfound

I found a tutorial online that so far has been aswesome. I downloaded the access db and so far can read and browse through it. However, when I try to write back to it (btnSubmit_Click), nothing happens. All other buttons work fine, I can still browse, and I get absolutely …

Member Avatar for XEN0
0
181
Member Avatar for adam.n.halpin

I am trying to print all the contents of a combobox in a program. For example: ComboBox1 Contents: Yes No Maybe No opinion My code so far for PrintDocument1: Private Sub PrintDocument1_PrintPage(ByVal sender As System.Object, ByVal e As System.Drawing.Printing.PrintPageEventArgs) Handles PrintDocument1.PrintPage Dim horizontalPrintPosition As Single Dim verticalPrintPosition As Single Dim …

Member Avatar for Begginnerdev
0
221
Member Avatar for mikeybware

I have the following code which prints my datagrid nicely. The problem is that it only prints the first page and cuts off everything thereafter. I know I need to implement the e.HasMorePages = True in some manner but I am unable to get that working. Here is my code: …

Member Avatar for robtrue
0
320
Member Avatar for VirusHeart
Member Avatar for renzlo

Hi, All, I am running out of options and I can't fix it. I am loading a form with webbrowser control which loads a java applet in another form, it is working but I can't type in the textbox, what am I doing wrong. Attached is the project solution, hope …

0
91
Member Avatar for x38class

I have an app that fails because mscorlib is not installed from Net Framework 2 SP2 Without it, I get the following error: Could not load type 'System.DateTimeOffset' from assembly 'mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'. The error can not be trapped in the runtime of the application, it appears when app …

Member Avatar for x38class
0
215
Member Avatar for james19862012

Hello all, First time poster here. I'm creating a website for class that essentially lets people register with a user name and password. Whenever they're logged in they will have the opportunity to go to a page called SubmitStory.aspx where there will be a textbox, lets say it's just called …

Member Avatar for JorgeM
0
269
Member Avatar for savedlema

Why do I get an error creating a temporary table with something even as simple as this:"CREATE TABLE #Results"? But this "CREATE TABLE Results" works. I thought we put # when we need to create temporary tables (Access), its like I've once done that. Help on that please? Thanks!

Member Avatar for savedlema
0
393
Member Avatar for G_Waddell

Hi, I'm updating an application to .net from VB 6.0. It uses crystal reports to display reports but we get issues around versioning and having to have the client install Crystal so we would prefer not to depend on Crystal. I was originally going to use an XMLReader object to …

Member Avatar for G_Waddell
0
505
Member Avatar for ProgenitorVirus

Hi there, I'm reading the contents of a text document and saving all of the values (csv) into an array. My issue is that the very first article in the document is always being saved with "" appended to the beginning. eg. Text document reads: Hello,Doctor,Name,Continue,Yesterday,Tomorrow When it is brought …

Member Avatar for Reverend Jim
0
133
Member Avatar for manoj323
Member Avatar for bandurao

Hello friends, This is my first port so please bear with me. I am developing a simple software in Vb.net 2010. In this software you can add, edit, delete, print records. I have done everything except print option as I dont have any idea on how to do this. I …

Member Avatar for dinhunzvi
0
293
Member Avatar for kaizen202

Hi All, Is there any event to catch the column visibility change of datagridview? I am using a custom datagridview. I need to update the horizontal scrollbar maximum value whenever the column visibility is changed. Please provide some idea. Thank you.

Member Avatar for kaizen202
0
473
Member Avatar for shhh

Dim odcell = OutgoingdeliveriesDataGridView1.Rows(e.RowIndex).Cells(e.ColumnIndex).Value.ToString() Using _conn As New MySqlConnection("Server = localhost; Username= root; Password =; Database = forms") Using cmd With cmd MsgBox("Connection Established") .Connection = _conn .Parameters.Clear() .CommandText = "SELECT FormName, Description FROM FormMaintenance WHERE FormCode = @Code" .Parameters.AddWithValue("@Code", odcell) _conn.Open() Dim dr As MySqlDataReader dr = cmd.ExecuteReader() If …

Member Avatar for Reverend Jim
0
124
Member Avatar for Dili1234

I have two tables major and student majorname is the foreign key of Student table Student primary key=Reg_No I want to delete entire student record from student i used the coding like this........... Private Sub btnClear_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnClear.Click myConnection = New SqlConnection(connectionstring) myConnection.Open() …

Member Avatar for Reverend Jim
0
137
Member Avatar for SQLpower

Hello guys, I am trying to dynamically update a combobox using mysql database, however I get the Error Catch Message. Any help would appriciated. Private Sub cmbName_DropDown(ByVal sender As Object, ByVal e As System.EventArgs) Handles cmbName.DropDown Try dbCon = New MySqlConnection("SERVER=localhost;DATABASE=test;") strQuery = "Select name from customer_details" cmbName.Items.Clear() If DR.HasRows …

Member Avatar for SQLpower
0
190
Member Avatar for onlykl

Hello as title says, i would like to see if it is possible somehow to write in vb.net simple application that check if port 80 is used by some application and if it is to show Error message that it is used by APPLICATION NAME and asking if you want …

Member Avatar for SQLpower
0
134
Member Avatar for Dili1234

I used this code delete recods from table ............ in VBP is database name Sell-is a table name The DELETE statement conflicted with the REFERENCE constraint "FK_Sells_Product_Details". The conflict occurred in database "VBP", table "dbo.Sells", column 'P_Id'. The statement has been terminated. Dim check As Integer Dim cmdproduct As New …

Member Avatar for Dili1234
0
131
Member Avatar for arslanazam90

"SELECT * FROM table where column=" & Request.QueryString("querystringfeild") i want to add order by condition along with where condition. But i don't know how to write syntax please help me. thanks!

Member Avatar for xerohomicide
0
69
Member Avatar for jhedonghae

in my work i get 03:00:00 as the total hours work..how can i make it in just 3? Dim TimeOutHours = TimeSpan.FromHours(Val(DateTime.Parse(TimeOfDay.ToString(Me.TimeOutTextBox.Text.Trim)).Hour)) Dim TimeInHours = TimeSpan.FromHours(Val(DateTime.Parse(TimeOfDay.ToString(Me.TimeInTextBox.Text.Trim)).Hour)) Dim TimeOutMins As Integer = (Val(DateTime.Parse(TimeOfDay.ToString(TimeOutTextBox.Text)).Minute)) Dim TimeInMins As Integer = (Val(DateTime.Parse(TimeOfDay.ToString(TimeInTextBox.Text)).Minute)) Dim mingreat As TimeSpan = TimeOutHours.Subtract(TimeInHours).Subtract(TimeSpan.FromHours(1)) Dim minless As TimeSpan = TimeOutHours.Subtract(TimeInHours) …

Member Avatar for xerohomicide
0
110
Member Avatar for thewilf

Hi All, Got an issue that I know is quite common and read through lots of guides but cant see where I am going wrong. Got the code below which when form is loaded goes and grabs user from a table of usernames and puts them against a combo box …

Member Avatar for thewilf
0
294
Member Avatar for UKnod

Here is what I am trying to do: From VB.net open a word template --- Done Populate it from a database ------Done Have word report back with the saved file name so as I can add it to the database history ----Not done. I know is has something to do …

Member Avatar for UKnod
0
157
Member Avatar for SQLpower

My Insert statement is not working for some reason and I cannot figure out why. Any help would be highly appriciated. Imports MySql.Data Imports MySql.Data.MySqlClient Public Class frmCreateUser Dim connectionstring As String Dim dbCon As MySqlConnection Dim strQuery As String = "" Dim SQLCmd As MySqlCommand Dim DR As MySqlDataReader …

Member Avatar for SQLpower
0
272
Member Avatar for Jawow

I'm working on a homework in which i need to create a Pizza order form. I've created the form along with the code but when i debug it, it gives me error. Errors below:(i've attached my code) C:\Users\Vasquez\Documents\Visual Studio 2005\Projects\Pizza Order\Pizza Order\Form1.vb(113) : error BC30451: Name 'txtSurname' is not declared. …

Member Avatar for Reverend Jim
0
847
Member Avatar for zarifin99ska

hello, i'm doing a searching form, here is my code [CODE] Dim con As New OleDbConnection Dim cmd As New OleDbCommand Dim rd As OleDbDataReader con.ConnectionString = ("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=D:\Bengkel\Project\db.mdb") cmd.CommandText = "SELECT * from Book where authorName like '%" & textsearch.Text & "%'" cmd.Connection = con con.Open() rd = cmd.ExecuteReader …

Member Avatar for sinsarith
0
2K
Member Avatar for tieties

ok i need help with this code i more than triple checked the spelling so i dont know what is wrong anymore and i have checked that i inserted the right data also. This is my code i use to insert into my DB when i break it i get …

Member Avatar for Reverend Jim
0
284
Member Avatar for pratik65

hi, frnds i am making a project on Grading System of school and i am using vb.net 2010 as my front end and SqlExpress as my back end . i have a Marks_Table in my database in which user stores student marks info . i want to generate marksheet on …

0
111
Member Avatar for tooGr8

Can someone please show me how to get the Odd number using the For..Next loops in VB I have declared the following; Dim intCounter As Interger Dim intStartValue As Interger Dim intEndValue As Interger Dim intSum As Interger intStartValue = 0 intEndValue = 50 intSum = 0 Iam trying to …

Member Avatar for khair.ullah
0
76

The End.