800 Posted Topics

Member Avatar for abhi415

You will need to write a function/sub that will refresh the expiration date on key entry. Something Like: Private Sub RefreshDates(ByVal sKey As String) If isAuthenticated(sKey) Then Me.Date1 = Now.AddMonths(6) Else Return End If End Sub Private Function isAuthenticated(ByVal key As String) As Boolean 'validate key and return true here …

Member Avatar for Begginnerdev
0
2K
Member Avatar for ayat abukhadra

I concur with Pgmer. There are many resouce out there for threading/background workers. Example: [Click here for threading](http://support.microsoft.com/kb/315577) or [Click here for background worker](http://msdn.microsoft.com/en-us/library/cc221403(v=vs.95).aspx)

Member Avatar for ayat abukhadra
0
131
Member Avatar for HibaPro
Member Avatar for abhi415

You are calling this from the CheckChanged event. That means when it will repeat the code when you use: Me.RadioButton3.Checked = True When you are setting the value, the application will raise the CheckChanged event. This will be an infinite loop, right? You can try to drop the code in …

Member Avatar for Begginnerdev
0
203
Member Avatar for Eruditio

Is the client computer running .NET Framework 4.0 Client while the dev machine is running Full? I have had issues with client Vs. full before. I wouldn't rule that out completely.

Member Avatar for Eruditio
0
1K
Member Avatar for DyO1

By searching the forumns, I found found another post looking for system memory [here](http://www.daniweb.com/software-development/vbnet/threads/356829/get-physical-memory-on-a-machine) As for video memory, are you using an aftermarket GPU or are you using an onboard or on chip GPU?

Member Avatar for DyO1
0
88
Member Avatar for cheesepotato

Just place: If TextBox.Text <> "" or TextBox1.Text <> String.Empty Then 'Place code here' Else MsgBox("Please enter a valid name.") e.Cancel = True End If Better question...Does each user have an active directory login and are they using this login to launch the application?

Member Avatar for Begginnerdev
0
161
Member Avatar for marky101

If the api you are using targets the WIA api on windows XP systems, it will not work on Vista or any machine afterwards. From my experiences with WIA, the function calls from WIA 1.6 to 2.0 is a small jump. I have seen that alot of the types are …

Member Avatar for marky101
0
458
Member Avatar for cheesepotato

You can declare a private boolean variable and a public property like so: Private buttonEnabled As Boolean = True Public Property EnableButton As Boolean Get Return Me.buttonEnabled End Get Set(value As Boolean) Me.buttonEnabled = value End Set End Property Then in the form's load event handler place the following code: …

Member Avatar for cheesepotato
0
763
Member Avatar for alexandra.lopez.94043

You have way to many event handlers... Did you know you can share handlers? Example: Private Sub CheckChanged(sender as object, ByVal e As EventArgs) Handles CheckBox1.CheckChanged,CheckBox2.CheckChanged,CheckBox3.CheckChanged If Ctype(sender,CheckBox).Checked Then TextBox.Visible=True Else TextBox.Visiable = FALSE End Sub As for the mssg, are you pulling the value from the text box that …

Member Avatar for Reverend Jim
0
201
Member Avatar for yoavgold

Talk about resurrecting dead threads. Start a new thread with your problem, some of these users might not even be on Daniweb any more.

Member Avatar for Begginnerdev
-1
2K
Member Avatar for iFrolox

You can also create one function using Jim's method: Private Sub FocusChanged(sender As Object, e As EventArgs) If CType(sender, TextBox).Focused = True Then CType(sender, TextBox).BackColor = Color.FromArgb(65, 65, 65) ElseIf CType(sender, TextBox).Focused = False Then CType(sender, TextBox).BackColor = Color.FromArgb(60, 60, 60) End If End Sub And just add the handlers …

Member Avatar for iFrolox
0
2K
Member Avatar for reds8

Are you using a DateTimePicker control? If so, you can make use of the ValueChanged event. If you listbox has multiple values, reference the value you want to change first. Example: Private selectedItem As Object 'Define your data type here' 'Example: selectedItem as Date' Private Sub ListBox1_Click(sender As System.Object, e …

Member Avatar for Begginnerdev
0
111
Member Avatar for Begginnerdev

Hello my fellow DaniWebbers, I have a question for you. Problem: I am troubleshooting an ASP.NET (some one else wrote) page that has an insert form. The user can insert, using linq, into the database. I want to check the database for the values before inserting the values. (Safeguarding from …

Member Avatar for Begginnerdev
0
328
Member Avatar for kerek2

Can you please post a larger snippet of the code? Where is the memory stream being declared?

Member Avatar for kerek2
0
563
Member Avatar for libathos

I am sorry my friend, but I believe you have posted on the wrong forum. This is, in fact, the VB.NET forum. I will flag for a mod to transfer for you.

Member Avatar for libathos
0
126
Member Avatar for gahhon

Problem 1: If you are seperating the values with ','; then you can make use of the string split function (asuming all values will be in the same format.) Just pass in the string from the listbox and then parse the string into an array using string split. Example: Dim …

Member Avatar for gahhon
0
106
Member Avatar for tirumal

When using text/strings in a sql string, always wrap the values with ' ' Example: Dim sqls As String = "INSERT INTO table(col1,col2,col3) VALUES ('" & text1.Text & "','" & text2.Text & "','" & text3.Text & "')" If you are wanting to use a textbox value as a data type …

Member Avatar for raficomps
0
2K
Member Avatar for HibaPro

You can use what hericles has posted and append the following: Dim con As New SqlConnection("Connection string here") con.Open() Dim sqls As String = "SELECT col_name1, col_name2 FROM table_name WHERE some_col = some_value;" Dim cmd As New SqlCommand(sqls, con) Dim da As New SqlDataAdapter(cmd) Dim ds As DataSet da.Fill(ds, "Values …

Member Avatar for poojavb
0
1K
Member Avatar for gahhon

You will need to implement an ArrayList then cast from the arraylist to a string. Example: Dim ar As New ArrayList 'Removing' ar.RemoveAt(0) 'Casting' Dim s As String s = TryCast(ar(0),String) 'If the cast fails it will return Nothing. Make sure to test for failure.' If s IsNot Nothing Then …

Member Avatar for gahhon
0
182
Member Avatar for hassan980

I see you are assigning the value to Y but you are adding X to the list box. > Dim y As Double = (((t / 0.2) * length) * ((0.2969 * (Math.Sqrt(x / length))) - (0.126 * (x / length)) - (0.3516 * ((x / length) ^ 2)) + …

Member Avatar for hassan980
0
223
Member Avatar for HibaPro

[Here](http://vb.net-informations.com/crystal-report/vb.net_crystal_reports_tutorials.htm) is a website containing small tutorials to help you on your way. As for a sample project, you can check [Here](http://www.codeproject.com/Questions/181279/Datagrid-view-to-crystal-reports-using-declared-da).

Member Avatar for Luc001
0
127
Member Avatar for iFrolox

You have alot of over head here I see. Is using a database out of the question? If it is, then what about using an ArrayList? When using an array list, you can simply store each account in the ArrayList and remove one by: Dim ar As New ArrayList Dim …

Member Avatar for iFrolox
0
2K
Member Avatar for daydie

First of all Congratulations. Second of all, is it possible that this is considered a spammer? Just a question.

Member Avatar for Begginnerdev
0
172
Member Avatar for arvin2006

If the DLL is a custom DLL, you can set the DLL's assembly information in the MyProject > Application > Assembly Information You can type the original creation date in the Description field.

Member Avatar for Begginnerdev
0
156
Member Avatar for Mikey12345

You can do something like this: Dim itm As ListViewItem Dim total As Single For Each itm In ListView1.Items If itm IsNot Nothing Then For i = 0 To itm.SubItems.Count - 1 total += CSng(itm.SubItems.Item(i).ToString) Next itm.SubItems.Add(total) End If Next See if this works.

Member Avatar for Reverend Jim
0
166
Member Avatar for Ruan10

So far, it looks as if you are on the right track. Now you will have to generate some false answers; such as creating an array of known false answers and pull randomly from that arra

Member Avatar for Ruan10
0
168
Member Avatar for istore221

If I understand what you are asking; you will want to include the folder in the project's deployment. If I am misunderstanding what you are asking, and you want to connect to the dev pc from the deployment pc, you will need to setup a share for the deployment pc …

Member Avatar for Begginnerdev
0
149
Member Avatar for VBTommy

[Click Here](http://www.codeproject.com/Articles/4826/XML-File-Parsing-in-VB-NET) for an article on XML parsing from VB.Net

Member Avatar for kvprajapati
1
501
Member Avatar for dwinn

You can try placing an IIF into the lines to test against empty or null values. Example: objWriter.WriteLine(" <Update Name='SH_REQ_DEL_DATE' Value= '" & IIf(sqlReader.GetString(0), IsNothing(sqlReader.GetString(0)) = False, IsNothing(sqlReader.GetString(0)) = True) & "'/>")

Member Avatar for dwinn
0
2K
Member Avatar for choboja621

Couple of Possibilities: Are you connecting to a database that is on a school PC? If you are then you will need an instance of this database on your home PC? -or- It is possible that you can't access the database from home. Are you trying to connect to SQL …

Member Avatar for Begginnerdev
0
129
Member Avatar for poojavb

Place this in the form's load event: Me.Width = Screen.PrimaryScreen.Bounds.Width - 20 Me.Height = Screen.PrimaryScreen.Bounds.Height - 20

Member Avatar for poojavb
0
5K
Member Avatar for Begginnerdev

Hello my fellow Daniwebers, I have a question for you. I have quite an odd problem that I have researched and have not been able to find a solution. I have a formview, named frmStatus, from which I am trying to retrieve controls to check for values. The form is …

Member Avatar for Begginnerdev
0
168
Member Avatar for belenos46

When you say that it refreshes the workbooks, are you meaning it updates data with current data and then saves as a different workbook? Are you using the original workbook as a template, or as a backup for the previously updated data?

Member Avatar for belenos46
0
321
Member Avatar for TIM_M_91

Have you verified that metroTilePanel1 exists? Have you checked to see if it has been renamed by accident? If not, you can add the sub as a handler manually by deleting the "Handles metroTilePanel1.ItemClick" off of the end and: 'Add this to your form load.' addHandler metroTilePanel1.ItemClick, Address Of metroTilePanel1_ItemClick …

Member Avatar for Begginnerdev
0
171
Member Avatar for poojavb

One thing I almost always have to do when working with dates from SQL server, is do a string split on the data coming in, seperating the date and the time. Dim tmp As String = dt.Rows(0).Item(0) Dim tmpAr() As String = tmp.Split(" ") 'tmpAr(0) will be the Date' 'tmpAr(1) …

Member Avatar for poojavb
-1
1K
Member Avatar for Susmita_Sikder
Member Avatar for Begginnerdev
0
67
Member Avatar for winki

First of all, you are calling a procedure that does not exist. From what I see, TestMessage is not a member of the property.

Member Avatar for Reverend Jim
0
308
Member Avatar for nanako

[This](http://answers.yahoo.com/question/index?qid=20070803083906AAmPvid) may be what you are looking for.

Member Avatar for poojavb
0
152
Member Avatar for dmv091

1)You will want to start with connecting to the database. There are many different types of connection providers, you will have to chose the one you like the best. 2)You will have to retrieve and store the information in a data table. You will find out more about this when …

Member Avatar for Reverend Jim
0
103
Member Avatar for Riteman

If your paragraphs are seperated by Crlf's, you can count the number of Clrf's between two sentences to determin a new paragraph. You will have to read the character before the current character and possibly the character before that too. You will want to do this by reading the file …

Member Avatar for Riteman
0
3K
Member Avatar for dangerousd28

What is your command text? Do you have an update statement? I am assuming that confirm user is returning true? A function that checks to see if the user is in the database?

Member Avatar for dangerousd28
0
226
Member Avatar for poojavb

You can read my previous post [URL="http://www.daniweb.com/software-development/vbnet/threads/407064"]here[/URL] for a reference on connecting to a database.

Member Avatar for Katie Kate
0
782
Member Avatar for kindofsudden
Member Avatar for kindofsudden
0
238
Member Avatar for lbgladson

Yes, this can be done with (intermediate) vb.net skills. You will want to look into MySQL for a database backend. Or, if you are wanting only one user, Acces will suffice. You will want to sit down and start designing your GUI/Flowchart/Database Design it to be practical and efficient.

Member Avatar for Begginnerdev
0
95
Member Avatar for slpefanis

You can also do something like this: Dim fromDir As New DirectoryInfo("C:\myFromDir\")'Import IO' Dim toDir As String = "C:\myToDir\" Dim fi As FileInfo For Each fi in FromDir.GetFiles() File.Copy(fi.FullName,toDir & fi.Name) Next This will copy the file from the source to the destination with the same name.

Member Avatar for Begginnerdev
0
217
Member Avatar for thiemebr

Are you selecting just one instance of the parameter "rate" or are you dealing with multiple entries? If multiple, that might be your problem. You can try passing all of this into a data table and looping through adding them to the label. (With delimiters "val1,val2,val3 ect...")

Member Avatar for Begginnerdev
0
99
Member Avatar for Iamateur

If you are not getting a reply - Don't make a new thread. This would be your fourth thread on the same topic. You can't beg community members for code, you have to show effort on your behalf. I know people have posted usefull references numerous times, why have you …

Member Avatar for Ezzaral
1
161
Member Avatar for jayawant.sawant

I beleive you have chosen the wrong template for your thread. Code snippets are mostly used for posting examples or contributing code to the community. Also, I don't want to sound skiddish at all.....but what would you possibly want to hide a process for? Are you writing a keylogger? Are …

Member Avatar for Begginnerdev
0
298
Member Avatar for shahbaz13

Are you wanting an active spell check? (One that checks as you type) or Are you wanting a passive spell check? (One that checks the word after you type it)

Member Avatar for Begginnerdev
0
157

The End.