1,857 Posted Topics
Re: If you're answering a post in a specific thread you should really post your answer( a link here is ok) in that thread. If you just want to share code, first you should make your post a code snippet, then post the relevant source code(the actual code, not just a … | |
Re: Something like this might be what you're looking for: struct InData { public DateTime cDate; public string cName; } public class clsPrint { InData cmData = new InData(); } | |
Re: or quite simply `(a+b)^2 = (a+b)*(a+b)` | |
Re: For handling the events for multiple controls in one handler, you might find it easier to omit the handles clause and use the addhandler method. Private Sub Form1_Load(sender As System.Object, e As System.EventArgs) Handles MyBase.Load For Each tb As Textbox In Me.Controls.OfType(Of TextBox) AddHandler tb.KeyPress, AddressOf TextBox_KeyPress Next End Sub … | |
Re: You could use [FTP](http://msdn.microsoft.com/en-us/library/vstudio/system.net.webrequestmethods.ftp%28v=vs.100%29.aspx/html) | |
Re: Since the names are consistent you could use the contains methods, `If tbx.Name.Contains("txtt") Then` | |
Re: How about a [C++ reference site](http://www.cplusplus.com) that includes references for different revisions of C++ and has a search feature that will also search it's forums? | |
Re: One quick way is to use an html editor. Paste the text into a new page. then look at the source. from here you can see the type of code you'll need to prepend and append to the text, in order to render it as html. | |
Re: What code have you tried? What problems are you having with it? | |
Re: Basically you'll have to get the xml value string and parse it to do the calculations. You'll probably need a select block and a loop | |
Re: What error is being reported? | |
Re: Have you tried handling the close event of the form? That should fire no matter how the form is closed except for anything that ends the process arbitrarily, like End Process in task manager. | |
Re: how are you loading the data? | |
Re: You might want to look at this [article](http://msdn.microsoft.com/en-us/library/vstudio/ms171645%28v=vs.100%29.aspx?cs-save-lang=1&cs-lang=csharp#code-snippet-1) about creating a Windows Explorer type interface. The examples hould be in C#. It uses a Split Container with a TreeView on one side and a ListView on the other. | |
Re: You'll need a while loop that checks for end of file(eof), then read the file line by line. Use split, like was mentioned, to get each part into an array. The step to this point are pretty standard. From here you can build the row for the listbox by picking … | |
Re: have you tried searching the posts on this site? | |
Re: Found this code in another [post](http://social.msdn.microsoft.com/Forums/en-US/vbgeneral/thread/32f2585c-2832-4668-b74e-a5b9458c5988) and it works for me: MailMessage Message = new MailMessage(); Message.To.Add("******@gmail.com"); Message.From = new MailAddress("NewUser@somewhere.com", "New User", Encoding.UTF8); Message.Subject = "Test"; Message.SubjectEncoding = Encoding.UTF8; Message.Body = "Test"; Message.BodyEncoding = Encoding.UTF8; Message.IsBodyHtml = false; Message.Priority = MailPriority.High; SmtpClient client = new SmtpClient("smtp.gmail.com"); client.Credentials = new … | |
Re: Hard to say what the problem could be. You're trying to marry an ancient relic of programming code with modern technology. Broaden your horizons, VS2012 Express is free and with your background in VB6 not that steep a learning curve. | |
Re: You'll probably need a For Loop, For I= 1 to Quantity, then add a row in the loop, so that you get the same number of rows added as the quantity | |
Re: unless you can get the owner to provide the source, your choices are very limited, and most likely will need to break a law or two. | |
Re: If you have that much data, you should probably look at using a database. You can load the datagridview with whatever data you need. | |
Re: First off are you in the right forum? Your code looks like VB.net not VB6. Secondly, if this is VB.net then, I'd use nested classes and lists instead of arrays. List work much the same with one important aspect, they are more dynamic and support growing and shrinking as items … | |
Re: Have you looked at [Walkthrough: Creating a ReportViewer Report? ](http://msdn.microsoft.com/en-us/library/ms252073%28v=VS.100%29.aspx) It seems to be step by step right from creating the form, to connecting to the database, to adding and formatting items. The sidebar on that page also includes links to quite a few other walkthroughs having to do with … | |
Re: The first thing to do is put the code for coffee into a sub routine and call it from main. Once this is done you're ready to put your front end menu in main and make more sub routines to call based on the choices in main. class Program { … | |
Re: What code have you tried that isn't working? This is essential since the description of your problem down't make much sense. | |
Re: I'm wondering if the problem is in using a different compiler or diffferent compiler settings. | |
Re: > Can you Help me, Elevator problem As soon as we see the code you're having a problem with. | |
Re: You could tie that to the Textchanged event or the validation event to have the calculation done automatically. | |
Re: Here's an [article](http://www.codeproject.com/Articles/1300/CxImage) with a image control library. It's written in C++, but if you compile it as a .dll and add a reference to it, you should be able to access the library in your vb project. | |
Re: You could try using the [CellValidating Event](http://msdn.microsoft.com/en-us/library/ykdxa0bc.aspx) | |
Re: for the root you can use the pow function #include<cmath> using namespace std; double temp = pow(27.0,1.0/3); | |
Re: Here's one way: Private Sub DataGridView1_CellValueChanged(sender As Object, e As System.Windows.Forms.DataGridViewCellEventArgs) Handles DataGridView1.CellValueChanged If e.RowIndex <> -1 Then Dim CurrentCell As DataGridViewCell = DirectCast(sender, DataGridView).Rows(e.RowIndex).Cells(e.ColumnIndex) If Not CurrentCell.Value Is Nothing Then If e.ColumnIndex = 0 AndAlso Not Double.TryParse(CurrentCell.Value.ToString, vbNull) Then MsgBox("Only Numbers Please") CurrentCell.Value = Nothing End If End If … | |
Re: You could use a readonly textbox then set the password character, by removing the border it looks just like a label. | |
Re: The problem is probably the comma | |
Re: You'll probably have to use a Deployment Project. Here's the [MSDN article on that](http://msdn.microsoft.com/en-us/library/vstudio/2kt85ked%28v=vs.100%29.aspx). If I'm not mistaken though, basically add the file to the project through the Add-Existing Item menu option, and it should get installed with the rest of your project. | |
Re: First off I'm pretty sure there is no such thing as Visual Studio 2006. If there was, something that old probably isn't designed to run on a 64 bit OS. Try using the latest Express edition instead | |
Re: What error messages do you receive? Also the error should point to a specific line. We'll need that as well. Just from a perusal of your code, start with removing line 8, it's redudnant. Also is the scope of cColor global? | |
Re: It appears that you're using getline but you're reading one character at a time. You're also loading each file line from each file into the same variable. In the second loop you're incrementing l but using i as the index ![]() | |
Re: I think what you is to handle the Unload event. Here the MSDN example of that: > This example demonstrates a simple procedure to close a form while prompting the user with various message boxes. In an actual application, you can add calls to general purpose Sub procedures that emulate … | |
Re: Your biggest problem is including commas in the number. While visually appealing, it doesn't return the right value. Your second biggest problem is your setting the limits of each if statement with 2 greaterthan or equals signs, instead of greater than or equal for the lower limit and less than … | |
Re: This [thread](http://www.daniweb.com/software-development/cpp/threads/449797/text-file-into-1d-array) should help | |
Re: Here's a great place to start, a working calculator project in C#: [Part 1](http://www.daniweb.com/software-development/csharp/code/217185/console-calculator-part-1-the-scanner) [Part 2](http://www.daniweb.com/software-development/csharp/code/217186/console-calculator-part-2-the-parser) [Part 3](http://www.daniweb.com/software-development/csharp/code/217187/console-calculator-part-3-the-calculator-engine) If that's too complicated for you here's a much simpler one: [Click Here](http://www.daniweb.com/software-development/csharp/threads/234578/need-help-for-building-a-console-based-calculator-using-c) Amazing what 5 minutes and a search engine will produce. | |
Re: Here's a [tutorial on classes](http://www.cplusplus.com/doc/tutorial/classes/) | |
Re: Here's a simple way to sort by any column. Just set the global variable `SortIndex` to the column index to sort by: Public Class Form2 Dim SortIndex As Integer = 0 Private Sub Form2_Load(sender As System.Object, e As System.EventArgs) Handles MyBase.Load Dim Rows As New List(Of ListViewItem) SortIndex = 2 … | |
Re: What have you attempted? What resource materials have you read? Here's a [thread](http://www.daniweb.com/software-development/vbnet/threads/427462/where-are-the-drawing-tools-in-visual-studio-2010-) with some info that should help. | |
Re: Take a look at these threads: [Click Here](http://www.daniweb.com/software-development/cpp/threads/308895/39simple39-coding.problems-using-caseswitch-under-certain-inputs.-assistance-please) [Click Here](http://www.daniweb.com/software-development/cpp/threads/216276/calculator-in-c) [Click Here](http://www.daniweb.com/software-development/cpp/threads/13316/c-calculator-program) | |
Re: Why do you think it's wrong? Don't you get the sum of the numbers? Does it produce an error? | |
Re: When you get the list of build errors, double-click on each one and it will take you to the code that is throwing the error. | |
Re: I suspect you have something else going on at that time. We'll need the code in the form your accessing the RichTextBox, and the code for the form that contains the RichTextBox. |
The End.