800 Posted Topics
Re: One thing to take into consideration in packet loss /size of image. If there is a large amount of packet loss between you and the site - the quality will suffer greatly. If the size of your picturebox is smaller/larger than the original image there will be stretching or pinching. … | |
Re: You need to create an action lister (event handler) for the button click. For example: Private Sub Button_Click(byval sender as Object, byval e As Eventargs) Try 'Place your code here to find the textbox Catch ex As Exception MsgBox(ex.ToString) End Try End Sub Add the handler to the button before … | |
Re: You will have to get the current value, subtract, then update to the newest value. This is assuming your amount colum in as decimal value. For Example: Try Dim da As New OleDbDataAdapter(New OleDbCommand("SELECT * FROM Inventory WHERE Item='" & sItemType & "'", myConnection)) 'The select gets the table structure. … | |
Re: Is the code throwing an exceptions? From a first glace perspective, we can't tell if it has errors or not. Have you looked into [Try/Catch](http://www.homeandlearn.co.uk/net/nets5p4.html) blocks? Place your code in them and give a MsgBox for output: Try 'Paste your code here Catch ex As Exception MsgBox(ex.ToString) End Try | |
Re: To do this, you will lose ALL server code and ASP.Net code. To do this, simply remove all the code above and save as html, or load into a browser > view source > save as doc.html | |
| |
Re: Why do I have the odd feeling this is an assignment..... Do **YOU** have any code thus far? | |
Re: You could try to create a linq table in your dbml file named 'Duplicate' with the same column names and field lengths. Then, try to cast the object to the type of Duplicate | |
Re: The number on the end of each function represents the bit count, therefore, represents the maximum value that can be returned by that function ( as Integer ) Int16 - 16bit Int32 - 32bit Int64 - 64bit As for the decimal places, the ToInt32 function returns an integer, which is … | |
Re: I suspect a field length on one of your values you are inserting/updating. For example: Dim str As String = "Hello World" If the length of str is greater than the size of the field (varchar or nvarchar) then you will truncate the data. Begin by looking at all of … | |
Re: Why dont you just make use of the splash screen setting in the My Application > Application menu?  | |
Re: Have you tried dynamicly creating the update statement? For example: Try 'Insert data_adapter.UpdateCommand = New OleDbCommandBuilder(data_adapter).GetInsertCommand 'Update data_adapter.UpdateCommand = New OleDbCommandBuilder(data_adapter).GetUpdateCommand 'Delete data_adapter.UpdateCommand = New OleDbCommandBuilder(data_adapter).GetDeleteCommand data_adapter.Update(CType(binding_source.DataSource, DataTable)) Catch ex As OleDbException MsgBox("ERROR:" & ex.Source & " " & ex.Message, MsgBoxStyle.OkOnly) MsgBox(cmd_builder.GetInsertCommand().CommandText, MsgBoxStyle.OkOnly) End Try | |
Re: It would depend on the circumstance. If the IT department rejected due to a breach of policy, then it is "illegal". If they rejected due to not wanting to take care of it (Lazy) you can possible find other methods. | |
Re: Are you using some kind of programming language, or just HTML? | |
Re: **EDIT** This looks like a quiz question. Are you asking for help on a quiz/test/homework? | |
Re: You can try something like this: Private CurrentCollection As HtmlElementCollection Private Sub Populate(ByVal sAddress as String) 'For example: sAddress = "www.google.com" Dim linkCollection As HtmlElementCollection = GetAllLinks(sAddress) For i = 0 To linkCollection.Count - 1 ComboBox1.Items.Add(i) Next 'Keep track of current links CurrentCollection = linkCollection End Sub Private Sub ComboBox1_SelectedIndexChanged(ByVal … | |
Re: There a few different methods you can use to do this: [Print Form](http://msdn.microsoft.com/en-us/library/microsoft.visualbasic.powerpacks.printing.printform.aspx) Or [Print Document](http://msdn.microsoft.com/en-us/library/system.drawing.printing.printdocument.aspx) Just retreive the [active child](http://msdn.microsoft.com/en-us/library/4s6dtf7z(v=vs.80).aspx) and print! | |
Re: I'm sorry, but we can't answer quizes/tests for you. We are a **help** forum, not a **DO** forum. | |
Re: You can try something like this: 'I think this is what you meant by cColor. Private _CurrentColor As Color = Color.White Public Property cColor As Color Get Return Me._CurrentColor End Get Set(value As Color) Me._CurrentColor = value End Set End Property As for the dialog code: Try 'Create a new … | |
Re: Without some sort of documentation or opening the ports on the firewall, you will have no starting point for your sniffer application. Do you know any of these ports? | |
Re: Do you have code that connects to the database for every report dataset? If so, I would check that code first. It could be something that is occuring before crystal even gets the data. | |
Re: Have you come to a solution to this problem my friend? | |
Re: What errors are you receiving? Try placing the code in a try/catch: Try 'Your code here. Catch ex As Exception MsgBox(ex.ToString) End Try If the following code: Me.txtTypeOfEvaluation.Text = ds.Tables("Employees").Rows(0).Item(14) Had thrown errors, I suspect an index out of range, or some kind of exception. I would try: txtTypeOfEvaluation.Text = … | |
Re: I personally used [this](http://www.codeproject.com/Articles/19689/Working-with-Active-Directory-in-VB-NET) article as a reference when I was struggling with AD. I hope this helps you as much as it helped me. | |
Re: You will have to re-write the file. Example: Dim SR as New StreamReader(path) Dim SW as New StreamWriter(path & "tmp") Do While SR.Peek <> -1 Dim sCur As String = SR.ReadLine If sCur <> Block Then SW.WriteLine(sCur) End If Loop SR.Close SW.Close 'Next Copy Over the original hosts file File.Copy(path … | |
Re: >P.D The code doesn't need to be pretty, stable or optimized, but if it works, it's great. Whoa now! If the code isn't stable - it never worked to begin with! =) | |
Re: If I understand what you are asking, then you are wanting a to write a program that checks to see the current exchange rates and store them into a database? | |
Re: You are looking at server/client programming. [Here](http://www.codeproject.com/Articles/14346/A-Simple-Multi-Threaded-Server-Client-Instant-Mess) is a nice project for a reference point. | |
Re: You can add an attachment to an email by doing the following: Dim oMail As New Net.Mail.MailMessage oMail.Attachments.Add(New Net.Mail.Attachment("Path to my file")) As for saving a copy local, you could parse the email into a text file and save it. | |
Re: I will flag your post to be moved the the SQL forum where you may receive more help. | |
Re: It sounds like you may have a memory, or hard drive problem. My suggestion would be to download and run a memory test ([Memtest86](http://www.memtest86.com/download.htm)) and run [chkdsk](http://en.wikipedia.org/wiki/CHKDSK) to check the hard drive for any errors. | |
Re: It sounds like you need a server/client setup, or you could add a way for the user to configure the path to the database ( on the local network ) using a DNS name or IP. (Static IP will be necessary if you wish to do it only once) For … | |
Re: Is your code compiled for older versions of the .NET framework? ie.. 2.0,3.0,4.0, 4.0 Client Profile | |
Re: First off, it is bittersweet to be ahead of your class. Bitter due to having a higher chance to make errors on code that you can't fully understand, but sweet because you can use the time to improve your coding/understanding of the language and logic. As for this: Public Function … | |
Re: You will want to open the file, read/split all lines, then rehash them with your delimiter: **This code is written on the fly.** Try 'Reader/Writer for file operations. Dim sr As New StreamReader("PathToMyFile") Dim sw As New StreamWriter("PathToFile") 'Lists for storage Dim lstAllLines As New List(Of List(Of String)) Dim lstFinal … | |
Re: I would check with the ATM manufacturer to find out what keycode is being sent by those keys. Then look for that keycode with a [keyboard hook](http://www.supportforums.net/showthread.php?tid=916) | |
Re: What type of field are you storing this image in? | |
Re: I was having problems with this concept quite a long time ago, but found [this article.](http://www.knowdotnet.com/articles/printgriddemo-printable.html) | |
Re: What are you storing these values in, a database? If so, just write a sub routine that retreives information based on your selected: Public Class Form1 Private Sub GO_Click(ByVal sender As Object, ByVal e As EventArgs) Handles GO.Click Form2.Filter = ComboBox1.Text End Sub End Class Code for second form: Public … | |
Re: On which line of code is this error thrown. You seem to have a lot of hard coded indexes, it could be numerous things. I would start with the obvious, do you have 14 cells in your datagridview? Does your dataset have rows? | |
Re: Pass your query and parameters into your Search Sub: Dim Query As String = "SELECT * FROM tblTest WHERE [My Column]=@Value" Dim Parameters As New Dictionary(Of String, String) 'Fill the dictionary Parameters.Add("@Value", "ValueToSearchFor") 'Call the Sub Search(Query, Parameters) 'Sub Declaration Private Sub Search(ByVal sQuery As String, ByVal dctParameters As Dictionary(Of … | |
Re: If you have an exchange server that allows you to bounce emails, just use the server ip and port to send a SMTP email. For example: [Sending SMTP Mail in VB.NET](http://stackoverflow.com/questions/9280105/sending-smtp-email-from-vb-net-form-application) | |
Re: How are you declaring imageList? Is it: Dim imageList as New List(Of Image) How are you storing these images? | |
Re: What Adapter are you using? SQLClient, OLEDB, ACE ? If you are using SQLClient Then try something like this: Try Dim con As New SQLConnection("Data Source=MYSERVEr;Initial Catalog=MYDATABASE;Integrated Security=True") con.Open Catch ex As Exception MsgBox(ex.ToString) End Try | |
Re: You can make use of the the datagridview's rows added and removed handlers: Private Sub Rows_Added(ByVal sender As Object, ByVal e As DataGridViewRowsAddedEventArgs) Handles DataGridView1.RowsAdded Try 'Update your dataset here. Catch ex As Exception MsgBox(ex.ToString) End Try End Sub Private Sub Rows_Removed(ByVal sender As Object, ByVal e As DataGridViewRowsRemovedEventArgs) Handles … | |
Re: If using the default .NET ListView, which I don't think supports gifs, you will not be able to see any animation. You can use something like [this](http://www.codeproject.com/Articles/16009/A-Much-Easier-to-Use-ListView). Hope this points you in the right dir. :) | |
Hello my fellow Daniwebers. I am to ask for some ideas for a challenge. I want a good challenge for my skills, and even help expand my skills Please post your challenge below. Thanks, Begginnerdev | |
Re: Have you tried: RichTextBox1.Text.Replace("ThisString","ThatString") | |
Re: Call this response harsh, but we are a **help** forum, not a **do** forum. You can find a good project as a starting point [here](http://www.codeproject.com/Articles/9781/How-to-Load-and-Display-Crystal-Reports-in-VB-NET). Please feel free to ask any questions about any problems you may have after you have attempted this yourself. |
The End.