20,285 Topics

Member Avatar for
Member Avatar for magnus-110

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, …

Member Avatar for sprogrammer
0
101
Member Avatar for lomex

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 :)

0
36
Member Avatar for choosechrist

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 …

Member Avatar for Pgmer
0
208
Member Avatar for shivya jain

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 …

Member Avatar for Pgmer
0
97
Member Avatar for steohl

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 …

Member Avatar for hericles
0
743
Member Avatar for timosoft

Hello. i will like to generate four numbers at random, that will total 100 and assign each to a textbox. thanks for your help.

Member Avatar for timosoft
0
927
Member Avatar for easterbunny

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); } } …

Member Avatar for easterbunny
0
4K
Member Avatar for Wolxhound90

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 …

Member Avatar for Wolxhound90
0
575
Member Avatar for jjones3580

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 …

Member Avatar for AndyOwl
0
154
Member Avatar for tendaimare

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 …

Member Avatar for Mitja Bonca
0
141
Member Avatar for poojavb

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 …

Member Avatar for poojavb
0
112
Member Avatar for thehunk

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

Member Avatar for thehunk
0
138
Member Avatar for timosoft

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%.

Member Avatar for timosoft
0
418
Member Avatar for GTTravis

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 …

Member Avatar for GTTravis
0
119
Member Avatar for renzlo

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

Member Avatar for Mitja Bonca
0
159
Member Avatar for raheel88

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 …

0
91
Member Avatar for skp03

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 …

Member Avatar for M.Waqas Aslam
0
142
Member Avatar for poojavb

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 …

Member Avatar for M.Waqas Aslam
0
547
Member Avatar for yumyam09

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 …

Member Avatar for M.Waqas Aslam
0
125
Member Avatar for tukky

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 …

Member Avatar for M.Waqas Aslam
0
150
Member Avatar for poolet25

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 …

Member Avatar for M.Waqas Aslam
0
158
Member Avatar for obwills

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 …

Member Avatar for M.Waqas Aslam
0
96
Member Avatar for rhone0809

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 …

Member Avatar for rhone0809
0
508
Member Avatar for mjkate.maddox

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"> …

0
51
Member Avatar for Leodumbi

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 …

Member Avatar for Mitja Bonca
0
124
Member Avatar for Om Alooi

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 …

Member Avatar for Mitja Bonca
0
378
Member Avatar for gozo12

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 …

0
63
Member Avatar for jjsmithy

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? …

Member Avatar for thines01
0
105
Member Avatar for shadachi

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 …

Member Avatar for thines01
0
165
Member Avatar for collin_ola

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 …

Member Avatar for collin_ola
0
300
Member Avatar for shaan_046

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 …

0
131
Member Avatar for raheel88

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 …

Member Avatar for raheel88
0
1K
Member Avatar for timothy0726

[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 …

Member Avatar for poojavb
0
123
Member Avatar for poojavb

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 …

Member Avatar for poojavb
0
373
Member Avatar for leo88

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 …

Member Avatar for G_Waddell
0
426
Member Avatar for samuraicarmen

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 …

0
127
Member Avatar for dilse4sk

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 …

Member Avatar for poojavb
0
144
Member Avatar for timosoft

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 …

Member Avatar for Smith5646
0
124
Member Avatar for dhaval.2cool

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 …

Member Avatar for hericles
0
118
Member Avatar for Shodow

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 …

Member Avatar for Shodow
0
546
Member Avatar for ninjatalon

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 …

Member Avatar for ninjatalon
0
134
Member Avatar for diane_mendoza

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 …

Member Avatar for WaltP
0
375
Member Avatar for nettripper

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 …

Member Avatar for nettripper
0
181
Member Avatar for ng5

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?

Member Avatar for Phasma
0
131
Member Avatar for leyla

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 …

Member Avatar for codeorder
0
177
Member Avatar for bigzos

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 & …

Member Avatar for bigzos
0
241
Member Avatar for bmackkc

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 …

Member Avatar for major_lost
0
2K
Member Avatar for RandomIntellect

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 …

0
127
Member Avatar for leyla

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: …

Member Avatar for leyla
0
360
Member Avatar for Farhan_B

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= …

Member Avatar for Phasma
0
153

The End.