20,285 Topics
![]() | |
I'm using this encrypting function psoted by a member: [CODE]Public Function SimpleCrypt(ByVal Text As String) Dim strTempChar As String = "" Dim i As Integer For i = 1 To Text.Length If Asc(Mid$(Text, i, 1)) < 128 Then strTempChar = _ CType(Asc(Mid$(Text, i, 1)) + 128, String) ElseIf Asc(Mid$(Text, i, … | |
Hi all i have project that can creating watermarks for images but not hiding message like ( Steganography ) , I do not want Steganography .. i need ( hide a message in the watermark ) i hope to find solution , thanks :) | |
I want to create an xml file to disk on button click of a form.it takes in data from within the form and adds it to the respective fields in the xml file. my XML file contains the foll code [CODE]<?xml version="1.0"?> <database server="WELLFLOWGULF;" name="TRA" userid="sa" password="sdsds"> </database>[/CODE] on button … | |
Hello experts, I never used [B]"Dataset"[/B] in my project. But I know this is used for the set of tables. Can I use this to authenticate from more than one table? Tables in my Database are: Login, Student, Student Details, Fee, Teacher, Teacher Details. I want to use dataset in … | |
Hello My first post here. I'm trying to create a dynamic html page from vb.net. Here is my code. I get the error "'DataTable' is a type and cannot be used as an expression" Do you know how to solve this : [CODE]' Create a new XML document. Dim xmlDoc … | |
Hello. i will like to generate four numbers at random, that will total 100 and assign each to a textbox. thanks for your help. | |
Hi, i got a form with 10 button and i want to get the button name of the mouse click in a string variable i tried this: [CODE] private void Button_Click(object sender, RoutedEventArgs e) { string buttonName = ""; if (sender is Button) { buttonName = ((Button)sender).Name; MessageBox.Show(buttonName); } } … | |
Hey guys, Having a bit of a problem. I have loaded a list of values from a mysql database into a CheckedListBox and want to be able to select them to eb used in a query. The CheckedListBox shows the data as table_name.attribute_name, and when an item is selected I … | |
My wife and i own a contemporary pottery studio that offers what we call pottery perks program. Where in we offer a 20 gift certificate for every six times a person reaches a $20.00 limit. Having a lot of customers and keeping our little pottery perks information cards are starting … | |
i ve got two radiobuttons one labelled male and the other labelled female and a client is supposed to choose which gender they are and insert it into the other database along with other information. I want to know how I can insert the chosen value (male or female) into … | |
Hello Friends.... I have a patient registration form in my project...in which I have to browse the image of the patient save it in the database and when I need the details of the patient again the uploaded image should also be displayed.... Please help me in this... I have … | |
i have a combobox i want to show all the student name in it , i am using mssql database , and when we select student a textbox will show the rollno of that student , please help me | |
i need on how to draw a simple bar chat on my form like the picture below. for A B C D. Each time it draw at random. all % should be equal to 100%. | |
I have four crystal reports already created. I want to incorporate those reports into an application whereby when a user clicks on a menu item the report opens in a new tab providing that it is not opended already. i would be grateful if i can have some insight from … | |
Hi All, I want to build an application that will navigate a website that contains user login form and automatically logged to it and retrieve data from it's table. Is this possible? What would be my best approach here. Thanks in advance. -renzlo | |
I have a dynamic form, which contains an empty listbox and a button at first. When the button is clicked, an item is added to the listbox and a new PropertyGrid is created associated with that item. What I want to be able to do is change the name of … | |
i have a doubt i have created a application in which i have used a VLC (Video LAN player) and i have given in the property in the option MRL i gave the video address which should be played, when i executed then the video was playing and when i … | |
Hello Friends, I have got confused with one topic Scenario is such that.... I need to browse a file and copy the file from one location to another.... I am done with the file copying but I need to add the list of all files present under that folder in … | |
iam making a simple computation but iam having a problem with this [CODE] If btnAdd.Text = "&Add" Then cbleave.Enabled = True dtFrom.Enabled = True dtTo.Enabled = True dtApplied.Enabled = True clear() btnAdd.Text = "&Save" btnSearch.Enabled = True sql = "SELECT IFNULL(MAX(cnt),0) FROM tblleaveapp" NewDataSet(sql) Else If cbleave.Text = String.Empty Then … | |
Hey guys, I'm doing a project for university and i have hit a wall. I have a gridview that is connected to a database as shown below: [url]http://i40.tinypic.com/fys9i.jpg[/url] (menu is incomplete) I want a drop down box that is populated with the type of food such as (pizzas, burgers etc … | |
Well something is missing of me (again :P) and I need some help.. I am trying to get files for my database and load it into comboBox. But for some reason I get systax error.. As I mention into other post I am not familliar with VB so please check … | |
hello please i need help!! i have 7 forms in my windows application and the 7th form,only have a datagridview that has been populated from a bounded database. one of the columns in the datagridview contains date, so i need to check if the date in the column is today,then … | |
can anyone help me with this? im having trouble with renaming a file.. the last 2 digit of DT102T01 up to DT102T15 will count according to the number of files inside the Data_PRN folder. please help! any suggestion will be appreciated.. tnx '===== make directory & rename file . prn … | |
the given error is that this crdb_adplu.dll is missing or cannot be found in the path specified: file:///C:\Program Files (x86)\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Common\SAP BusinessObjects Enterprise XI 4.0\win32_x86\dotnet1\crdb_adoplus.dll' i already tried downloading it and adding it to the folder and editing the config file with : <startup useLegacyV2RuntimeActivationPolicy="true"> … | |
Hi everybody, its Leo again I'm having some problems calculating the values for two diferent fiels of the datatable. it return " [COLOR="Red"]Object reference not set to an instance of an object[/COLOR]" this is How I feed the datatable [CODE] Dim daProd As New SqlDataAdapter Dim conProd As New SqlConnection … | |
I have a problem in vb.net when i connect database to the vb it show me this massage for all tables that i have in the database "Could not retrieve schema information for table or view Attendance." when i press OK the fields do not show it looks like the … | |
i found this code but it record mic device only . [CODE]Imports System.Runtime.InteropServices Imports System.Text Public Class recordvb <DllImport("winmm.dll")> _ Private Shared Function mciSendString(ByVal command As String, ByVal buffer As StringBuilder, ByVal bufferSize As Integer, ByVal hwndCallback As IntPtr) As Integer End Function Private Sub Button1_Click(ByVal sender As System.Object, ByVal … | |
Hi everyone; I am working on a windows form project on VB.NET and am required to take the user submitted text from the textboxes on the form, to a networked database. I am guessing using an SQL database, so how would I set this up and implement all of this? … | |
Hi all , May i know should I set an object to nothing even after implementing an IDisposable method to my custom class ? Correct me if i am wrong , if you set it to nothing you are just setting the object to its default value . As you … | |
Hi, I keep getting the error: Object reference not set to an instance of an object. When attempting to check if a database record is Null or not using the line: [CODE] If IsDBNull(dSet.Tables("Subscriptions").Rows(incr).Item(8)) = True Then addsub2() End If [/CODE] I'm sure that I have opened and closed the … | |
0 down vote favorite share [g+] share [fb] share [tw] I have a class in which i have a method name method() returning a String in the form of JSON string. The output is :: [CODE] [{"ID":1,"Names":"Shantanu"},{"ID":2,"Names":"Mayur"},{"ID":3,"Names":"Rohit"},{"ID":4,"Names":"Jasdeep"},{"ID":5,"Names":"Rakesh"}] [/CODE] Now this in the form of data that i want to Populate … | |
I want to add a new PropertyGrid control every time an item is added to a ListBox. I have a ListBox, with an "Add Item" button underneath (and also a "Remove Item" button). Every time an item is added to the list, I want to create a new PropertyGrid corresponding … | |
[code]Dim cmd As OleDbCommand = New OleDbCommand("SELECT username,password FROM tblUsers where username=? and password=?", conn) Dim usernameParam As New OleDbParameter("@username", Me.txtUsername.Text) Dim passwordParam As New OleDbParameter("@password", Me.txtPass.Text) cmd.Parameters.Add(usernameParam) cmd.Parameters.Add(passwordParam) Try connectDatabase() Dim read As OleDbDataReader = cmd.ExecuteReader() If read.HasRows Then read.Read() If txtUsername.Text = read.Item("username").ToString And txtPass.Text = read.Item("password").ToString Then … | |
Hello Friends, I have a patient register form in my project... When the patient details will be saved in the database it should also be saved in the text file... I am dynamically creating a folder with patientid and firstname in that folder I am creating a text file patientreg.txt … | |
Hi, I wants to ask about how to call the javascript function/method in .aspx file from code behind(or server code)? for example: Javascript: [CODE] function initCard(userid) { //userid, balance, subsidy breakfast, subsidy lunch, subsidy dinner var iRet = winCtrl.initCard(userid, 0, 0, 0, 0); } [/CODE] code behind: [CODE] Dim sb … | |
A company transmits data over the telephone, but it's concerned that its phones could be tapped. All its data is transmitted as four-digit integers. The company has asked you to write an application that encrypts its data so that it may be transferred more securely. Encryption is the process of … | |
hi every 1 i am trying to make a search criteria based on last name.i have dragged and dropped customer dataset as details view on my form and booking as gridview(customer id is foreign key in bookings table so now when i scroll through customer i could see the relaive … | |
Hello my application have a main form. i have set the isMDIcontainer to true on the form properties. How do i set other forms to child form of the parent. i need to do this because the other forms start position is CenterParent. but as it is now when i … | |
i want to populate a listbox from a sql database and foll is the code i encountered error with: Dim con As SqlConnection Dim cmd As SqlCommand Dim lrd As SqlDataReader Dim dsitemlist As New DataSet con = New SqlConnection("Data Source=DHAVAL-PC\SQLEXPRESS;Initial Catalog=final;Integrated Security=True") con.Open() 'cmd = New SqlCommand("select Stud_RollNo from … | |
why is it sometimes i get an error? it doesn't highlight the error [B]CODE[/B] [CODE]Dim SqlQuery As String = "Select UserName from Login" Dim SqlAdapter As New MySqlDataAdapter Dim SqlCommand As New MySqlCommand Dim Ds As New DataSet Dim i As Integer With SqlCommand .CommandText = SqlQuery .Connection = sConnect … | |
I have multiple datatables containing multiple columns. I need to combine all of them to a single table. Here is an example: TABLE1 ================================================== -ID---NAME---AGE---ACOLUMN3---ACOLUMN4---ACOLUMN5- ----------------------------------------------- -1---JON----23------TRUE------FALSE-------TRUE -2---JANE----29------TRUE-----FALSE-------FALSE- -3---JOE----32------TRUE------TRUE--------TRUE ================================================== TABLE2 ================================================== -ID---NAME---AGE---BCOLUMN3---BCOLUMN4---BCOLUMN5- ----------------------------------------------- -1---JON----23-------TRUE------FALSE------TRUE -4---JOEY----34------FALSE-----TRUE-------TRUE -3---JOE----32-------TRUE------TRUE-------FALSE ================================================== COMBINED TABLE ================================================================================= -ID---NAME---AGE---ACOLUMN3---ACOLUMN4---ACOLUMN5---BCOLUMN3---BCOLUMN4---BCOLUMN5 --------------------------------------------------------------------------------- -1---JON-----23------TRUE------FALSE------TRUE-------TRUE------FALSE-------TRUE -2---JANE----29------TRUE------FALSE------FALSE------FALSE-----FALSE-------FALSE -4---JOEY----34------FALSE-----FALSE------FALSE------FALSE-----TRUE--------TRUE -3---JOE-----32------TRUE------TRUE-------TRUE-------TRUE------TRUE-------FALSE ================================================================================ Can someone … | |
hi! i'm having a project in school regarding vb.net and i badly need your help! it is about connecting vb.net to access. i need to be able to add, delete, edit, and save data to a table in access using a form in vb. i am also required to view … | |
Help.. Why is that everytime i add an imagae in my project (add resource) and use it as my image background i always get this error in dialog box saying.. "There were build errors. Would you like to continue and run the last successful build?" before.. i was able to … | |
i have a form with a listbox. the listbox can be edited (things added/deleted) and when the form is closed i would like the items in the listbox to be saved when the red "x" in the top right corner is clicked any ideas? | |
![]() | Hello, I'm back again with the same code however I have tried everything and I am still stuck. The message box works, and all of the values are correct but the last value. I would rather not change the message box code, but maybe just the last line where the … |
This is my login form [CODE] Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim con As New OleDbConnection("Provider=Microsoft.jet.oledb.4.0;data source=C:/Users/Space Era/Documents/User.mdb") Dim cmd As OleDbCommand = New OleDbCommand("SELECT * FROM Users WHERE userid = '" & TextBox2.Text & "' AND password = '" & TextBox1.Text & … | |
I have two forms; I'll call them frmReturn and frmReturnItem. FrmReturn is bound to data in a SQL table; data entered in frmReturnItem is stored as a child table in SQL. In the database, there is a one-->many between Return and ReturnItem. frmReturnItem can be opened only from frmReturn. frmReturn … | |
Hi, I've got two tables ina database which I'm trying to update at the same time. I'm using the code below to update: [CODE] Conn = New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=KingfisherDB.mdb;") Conn.Open() 'Define data adaptor and fill data sets DA = New OleDbDataAdapter DS = New DataSet Cmd = New OleDbCommand Cmd.Connection … | |
![]() | Below is the code I have been working on in VB.NET What basically happens is that when the user presses the calculate pay button, a message box is supposed to appear with all of the information in it, however the error comes up with: 'InvalidCastException: Conversion from string "Total pay: … ![]() |
I sence victory been battling the this code for 2 days now. the code i have generated is [CODE] strsql = "delete from cg_security_user_right where user_id= " & TextBox1.Text & " role_id=" & TextBox2.Text & ""[/CODE] it comes up with this error Syntax error (missing operator) in query expression 'user_id= … |
The End.