800 Posted Topics
Re: 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 … | |
Re: 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) | |
Re: Is the data grid view bound to a data base or data set? | |
Re: 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 … | |
Re: 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. | |
![]() | Re: 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? ![]() |
Re: 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? | |
Re: 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 … | |
Re: 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: … | |
Re: 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 … | |
Re: Talk about resurrecting dead threads. Start a new thread with your problem, some of these users might not even be on Daniweb any more. | |
Re: 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 … | |
Re: 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 … | |
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 … | |
Re: Can you please post a larger snippet of the code? Where is the memory stream being declared? | |
Re: 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. | |
Re: 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 … | |
Re: 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 … | |
Re: 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 … | |
Re: 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 … | |
Re: 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)) + … | |
Re: [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). | |
Re: 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 … | |
Re: First of all Congratulations. Second of all, is it possible that this is considered a spammer? Just a question. | |
Re: 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. | |
Re: 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. | |
Re: 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 | |
Re: 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 … | |
Re: [Click Here](http://www.codeproject.com/Articles/4826/XML-File-Parsing-in-VB-NET) for an article on XML parsing from VB.Net | |
Re: 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) & "'/>") | |
Re: 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 … | |
Re: Place this in the form's load event: Me.Width = Screen.PrimaryScreen.Bounds.Width - 20 Me.Height = Screen.PrimaryScreen.Bounds.Height - 20 | |
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 … | |
Re: 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? | |
Re: 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 … | |
Re: 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) … | |
Re: Are you speaking of an interface as a GUI or an interface as a means for polymorphism? | |
Re: First of all, you are calling a procedure that does not exist. From what I see, TestMessage is not a member of the property. | |
Re: [This](http://answers.yahoo.com/question/index?qid=20070803083906AAmPvid) may be what you are looking for. | |
Re: 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 … | |
Re: 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 … | |
Re: 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? | |
Re: 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. | |
Re: Are you using a data adapter? Are you executing the adapter's Update function? | |
Re: 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. | |
Re: 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. | |
Re: 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...") | |
Re: 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 … | |
Re: 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 … | |
Re: 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) |
The End.