20,285 Topics
![]() | |
i want to put the values from three text boxes into one cell of my datagridview.. | |
Hi ok so i want to read images from an sql server database..the images are saved in bytes but im struggeling to retrieve them my code for the retrieving this is the code i used to save the image and its working. Dim sql As String = "INSERT INTO item … | |
Hello everyone! I am building a mfc dialog based application in visual c++ 6 and using mysql c api to connect to a database. What i need is a simple type of data grid to show mysql query results in a dialog. I do not need to edit, update, save … | |
Hi there Im trying to write up a code where two txt files are being compared to each other. One text files has the answer like "TFTTFFT" and the other txt files has the result including id like "1234 TT-FFT" The crazy part is that for each correct answer, the … | |
Hey guys I have a wierd issue that im not sure how to fix. If a users starts timer1 it will open form that has a timer and continue allowing them to choose other options. BUT the sendkeys do not go through until the timer is up and the form … | |
Dim num1, num2, sum As Double num1 = txtFirstNum.Text A variable input any number can go here num2 = txtSecondNum.Text A variable input any number can go here sum = num1 + num2 txtoutput.Text = sum My goal is to have the txtoutput show the equation 2 + 2 = … | |
i wanted to know the code for putting values from comboxes into Datagridview but i tried but im getting coversion exception.. Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim conn As New SqlConnection("Data Source=.\SQLEXPRESS;Initial Catalog=grade;Integrated Security=True;Pooling=False") Dim cmd As SqlCommand If ComboClass.SelectedItem <> "" Or … | |
Hello everyone, I'm trying to put an image for my memory game which contains many pictures of flags. Hoe do i start the code (It's the first layer) array? what do you think? would like to get your advise. Thanks, Danielle. | |
Hi, I have datetimepicker and next to datetimepicker is textbox. When I choose date from datetimepicker, selected date goes into textbox. Works fine. -- txt1.Text = Format(DateTimePicker1.Value, "dd.MM.yyyy") Problem is, when selected date from datetimepicker is shown in txt1, that date doesnt want to be saved into database. Database is … | |
Hi all, I'm about to get a little long winded here and I'm sorry for that but I have a couple of issues that I need guidance with. I have assembled a procedure that basically performs a bunch of web browser clicks to query Statistics Canada (SC). The query itself … | |
Hi all, I have the following procedure that connects to my database. Sub getDateModified() Dim fileCreatedDate As DateTime = File.GetCreationTime(strFilePath + "\CPI1.csv") Dim stmt As String SQLConn.ConnectionString = ConnString SQLConn.Open() stmt = "select Table_Numbers From tblRelease_Dates Where (Release_Date Between '" + fileCreatedDate + "' And GETDATE())" SQLCmd.Connection = SQLConn SQLCmd.CommandText … | |
I have written a VB reservations program that writes back to a SQL 2008 database. When I write the reservation event back to the data base, I also write the reservation 'end time' back to the database as reservationtime + 4 hours in order to block off the event resource. … | |
Dear all, I hope that you can help me with a vb.net problem. In my program the user chooses multiple options. When a group of options is given, than the program wil check if the user has give the right start and end value. See the code below If Me.cboA.SelectedIndex … | |
Just wondering if there is a way to populate an ImageList from a Resource file. I have looked around on the web, but everything seems to have been from back in 2003/2005. Any advice would be appreciated thanks in advance. | |
hello everybody, can you do something like this: dim x as integer=1 button_x.visibility=Windows.Visibility.Hidden i have about 24 buttons on my form that i need to change the visibility for. which buttons need to be changes - is a variable i get from database query. so i'll get several rows of … | |
This code to save, Edit and delete data in VB.Net using SQLServer as backend. this code is continuance from my previous post "Show Data in DataGrid with VB.Net 2003 and SQLServer 2000". so i didn't write code how to connect SQLServer 2000 with VB.Net 2003 cause this already in there. … | |
Hi friends! I have a piece of code that I think should be working just fine, but I wonder why it doesn't work, and I get an "Syntax Error in INSERT statement" error message. Here is the code to affect a table called "Users" in my Access database. Dim cmd … | |
Hi everyone, I have a problem with connecting vb.net to oracle database. At first I used VB.net 2010 express, but is does not support oracle so uninstalled it and replaced it with VB.net 2010 ultimate trial edition. Can you please give me some codes on how to properly connect vb.net … | |
hello, i have a project and im a beginner in this type of programming.. im using sqlcserver 2005 to connect into visual studio 2010.. may i ask what is the correct syntax connection string.. i have my code already but i can not connect because there is an error stating … | |
Hai Experts, I am having difficulty in saving/storing multiple values in a listbox. Briefly, I have a combobox to choose from, where the value selected will be added to a listbox. From the listbox(with multiple entries),I wanted to save it to a field in my SQL DB. I've been stuck … | |
Hello! I am making a software for school; a software will gather students data along with their term exams marks in database. And the it will generate Result and then print. but I could not understand how I can make this result, as i tried Visual Report Viewer (no use) … | |
Greetings! Is there a way to add a parser when you create a simple text editor? Thanks in advance. Best regards, glenndr_15 | |
I am aware that this is not strictly vb.net related but I couldn't think of a better place to put it. Is it at all possible with ClickOnce Deployment to on installation add custom folders where local resources for the application can copied to by clickonce to be accessed by … | |
Hi, In my game of Battleships, I am trying right now to randomly generate ship placement for the computer. I have made the program generate one particular spot in the grid using code like this: While CPlacementX > 5 GenerateCoords() End While For Each label In Me.Controls If label.Tag = … | |
Hello Community, I was wondering if there is a way to stick a cmd window/process that i called from my vb form to the bottom of the form like the picture: (below)  And so where ever i move the form the cmd windows will also follow. Also is … | |
If I want to transfer var1 in form1 to form2 to be used in an alogrithm how do I do this? I have tried importing the form and then using the variable - no success. I have tried something to this effect form1.var1 - Get the error that var1 is … | |
I am coding something fairly simple and I've run into a few barriers. Keep in mind I don't have much experience in VB.NET. **1) I have created timer that is activated by the user with a user-defined time. But, when the "Start" button is clicked, the timer immedieatly sets off … | |
Hey guys, Im having a problem when trying to detect mouse clicks inside a function. Heres some code, and hopefully you can see what it's doing as its really confusing trying to explain. Sub ImageFollow(e As System.Windows.Forms.MouseEventArgs, myImage As System.Drawing.Image) Dim pBox As New PictureBox While TimerLeft pBox.Image = myImage … | |
hey, pls help me.. i need to check(compare) whether the value in the textbox (say textbox1) present in particular table(field).. | |
Hi, I have a XML file: <?xml version="1.0" encoding="ISO-8859-1"?> <Report> <config repstarttime="" rependtime=""></config> <cashdrops></cashdrops> <cashsheets></cashsheets> <cspdata></cspdata> <fdremdata> <fdrementry ENTRYID=""></fdrementry> </fdremdata> <SHIFTDATA> <SHIFT_CD_Index ShiftSystemIndex="1" Shift_CD_Used="1" ></SHIFT_CD_Index> <SHIFT_CD_Index ShiftSystemIndex="2" Shift_CD_Used="1" ></SHIFT_CD_Index> <SHIFT_CD_Index ShiftSystemIndex="3" Shift_CD_Used="1" ></SHIFT_CD_Index> <SHIFT_CD_Index ShiftSystemIndex="4" Shift_CD_Used="1" ></SHIFT_CD_Index> </SHIFTDATA> <Order> <OrderHead filelocation="" filesuccess="TRUE" Attendant=""></OrderHead> <NFC1DATA nfc1count="0"></NFC1DATA> <PAYMENTDATA paymentcount="1"> <payentrydata id="1"></payentrydata> </PAYMENTDATA> … | |
Hello Community, I was wondering if there is a way to place CMD within a panel of a vb.net form.  Example: Please Help | |
I want 1 dialog box which is having a login username and Password field. ANd it must have 12 buttons. whenever i click on any button, it must open 1 Excel sheet associated with it. Just want 1 skeleton code. | |
Hello, I've been trying to find a place that explains how a pre-built 3D array is populated, but it seems like there is only help on how to declare it out there. Can anyone explain it? I know what data i want to put into the array, I just don't … | |
I got a few labels which show a entire week. It's displaying the long date like this LblCurrentDay.Text = Date.Now().ToString("D") LblCurrentDay1.Text = Date.Now().AddDays(1).ToString("D") LblCurrentDay2.Text = Date.Now().AddDays(2).ToString("D") LblCurrentDay3.Text = Date.Now().AddDays(3).ToString("D") LblCurrentDay4.Text = Date.Now().AddDays(4).ToString("D") LblCurrentDay5.Text = Date.Now().AddDays(5).ToString("D") LblCurrentDay6.Text = Date.Now().AddDays(6).ToString("D") The labels are all inside each of their own small panel. But … | |
Hey there! You guys have been extremely helpful, thank you. I have a question regarding the DataGridView. What I'm trying to do is take all the values from one column of a DataGridView and put that in either an array, textbox, anything. So far, I have only been able to … | |
Imports System Imports System.Data Imports MySql.Data.MySqlClient Imports System.IO Imports System.Diagnostics Module Module1 Dim myConnection As MySqlConnection Dim MySQLConnectionString As String Dim CommandLineArgs As System.Collections.ObjectModel.ReadOnlyCollection(Of String) = My.Application.CommandLineArgs Dim FILE_NAME As String = Nothing Dim dir As String = "C:\Mytest\" Dim strDate As String = Nothing Dim serv_type As String = … | |
Hi all Greetings, Please give me some advice how can i call my existing report in vb.net any reference is appreciated. I am trying the importing crystal decision but i can't find it on the reference is it maybe because i am not using CR10? or there is something that … | |
I am writing a program for a company and would like to limit how many users can use this program at one time. IE if they have a 3 user licence when the 4th user tries to log in it wont let them. I have no idea how to accomplish … | |
hi, im a new comer in this forum. please anyone can help me for find string in large text file (filesize = 1mb to 5 mb) example: i have a text document file, filename is test.txt file test.txt contains serial number 000001 000002 000003 000004 000005 000006 000007 000008 000009 … | |
Hi iam trying to create a simple script for my macro that i want to copy two different screens to clipboard when paste function is called ,i am using ibm websphere hod please help me if u know how it could be done | |
Hey guys. I want to use this code: Imports System.Drawing Public Class frmBG Private Sub frmBG_Paint(sender As Object, e As System.Windows.Forms.PaintEventArgs) Handles Me.Paint Dim g As Graphics = e.Graphics Dim p1 As Point = Me.ClientRectangle.Location Dim p2 As Point = New Point(Me.ClientRectangle.Right, Me.ClientRectangle.Bottom) Using brsGradient As New System.Drawing.Drawing2D.LinearGradientBrush(p1, p2, Color.Red, … | |
hi,i want design a feature which allows the forms to be changed to any theme color during runtime based on user specification can help me.. | |
![]() | Hello, I need a code for saving BackgroundImage from PictureBox1 with SaveFileDialog1. Please help me (I can't find the code) . |
Button1.DoDragDrop(BackgroundImage, DragDropEffects.None) Throws an error ' Object reference not set to an instance of an object. ' First time I've used DoDragDrop, and first time with 2012 :) | |
anyone please explain to me what is the diffrence of this two query select * from tbl_Booking where [Date of Pres] between 'October 11,2012' and 'September 17,2012' (this query can display the information) select * from tbl_booking where [Date of Pres] between 'September 17,2012' and 'October 11,2012' (while this query … | |
hi every one i have a datagridview that show my data in columns. what i'm trying to accomplish is that after choosing a row and pressing edit button a new form will open and split the row for the right text boxes to update the data. the datagridview row shows … | |
Quick question. I am in the process of creating an application that uses alot of images, its becoming quite unbearable having to look through them ect. I was wondering is it at all possible to programatically select an area of an image to display? That way I could group images … | |
Try If myCn.State <> ConnectionState.Open Then myCn.Open() End If If TextBox1.Text = "" Or TextBox2.Text = "" Or TextBox3.Text = "" Or TextBox4.Text = "" Or TextBox5.Text = "" Or TextBox6.Text = "" Then MsgBox("All Fields Are Required") Else strsql = "Update Prod set prod_name ='" + TextBox1.Text + "', … | |
How to get the videos in Listview with all the video details like views title author description dislikes likes favorites tags Thanks in advance! | |
How to Develop a Multiple Document Interfaces(MDI) based application |
The End.