1,857 Posted Topics

Member Avatar for xrjf

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 …

Member Avatar for Ancient Dragon
0
175
Member Avatar for GhostWolf

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

Member Avatar for tinstaafl
0
376
Member Avatar for pearl doll
Member Avatar for eos.paks

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 …

Member Avatar for eos.paks
0
2K
Member Avatar for Mr.M

You could use [FTP](http://msdn.microsoft.com/en-us/library/vstudio/system.net.webrequestmethods.ftp%28v=vs.100%29.aspx/html)

Member Avatar for Dervish1
0
229
Member Avatar for ses03

Since the names are consistent you could use the contains methods, `If tbx.Name.Contains("txtt") Then`

Member Avatar for tinstaafl
0
155
Member Avatar for nitin1

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?

Member Avatar for dexblack_1
0
186
Member Avatar for daino

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.

Member Avatar for daino
0
1K
Member Avatar for tazeen_muzammil
Member Avatar for visweswaran28

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

Member Avatar for N4JRY
0
152
Member Avatar for rahul.gour
Member Avatar for schroaus

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.

Member Avatar for tinstaafl
0
231
Member Avatar for vishalonne
Member Avatar for Cameronsmith63

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.

Member Avatar for tinstaafl
0
177
Member Avatar for TheOneTopCat

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 …

Member Avatar for GeekPlease
0
562
Member Avatar for motlatsisehole
Member Avatar for raajsj

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 …

Member Avatar for raajsj
0
248
Member Avatar for jemartalaban_1

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.

Member Avatar for tinstaafl
0
98
Member Avatar for ryan311
Member Avatar for acepeda

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

Member Avatar for GeekPlease
0
155
Member Avatar for ear92

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.

Member Avatar for GeekPlease
0
90
Member Avatar for GeekPlease

If you have that much data, you should probably look at using a database. You can load the datagridview with whatever data you need.

Member Avatar for GeekPlease
0
182
Member Avatar for burnweb

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 …

Member Avatar for burnweb
0
212
Member Avatar for ses03

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 …

Member Avatar for tinstaafl
0
855
Member Avatar for ToniSoft

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

Member Avatar for ddanbe
0
212
Member Avatar for dhillselva

What code have you tried that isn't working? This is essential since the description of your problem down't make much sense.

Member Avatar for Mr.pc.online
0
94
Member Avatar for gobiking
Member Avatar for gobiking
0
347
Member Avatar for Gametes

> Can you Help me, Elevator problem As soon as we see the code you're having a problem with.

Member Avatar for tinstaafl
0
193
Member Avatar for ranTHE

You could tie that to the Textchanged event or the validation event to have the calculation done automatically.

Member Avatar for Reverend Jim
0
203
Member Avatar for sntoane

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.

Member Avatar for tinstaafl
0
191
Member Avatar for PM312

You could try using the [CellValidating Event](http://msdn.microsoft.com/en-us/library/ykdxa0bc.aspx)

Member Avatar for PM312
0
183
Member Avatar for pearl doll

for the root you can use the pow function #include<cmath> using namespace std; double temp = pow(27.0,1.0/3);

Member Avatar for ddanbe
0
145
Member Avatar for manoj_582033

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 …

Member Avatar for tinstaafl
0
82
Member Avatar for schroaus

You could use a readonly textbox then set the password character, by removing the border it looks just like a label.

Member Avatar for schroaus
0
705
Member Avatar for grubby
Member Avatar for rexdon

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.

Member Avatar for rexdon
0
273
Member Avatar for samica

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

Member Avatar for tinstaafl
0
121
Member Avatar for Mononucleosis

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?

Member Avatar for Begginnerdev
0
107
Member Avatar for kortneycoles

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

Member Avatar for iamthwee
0
491
Member Avatar for LeNenne

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 …

Member Avatar for rishif2
0
444
Member Avatar for sujanthi.kumari

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 …

Member Avatar for new_developer
0
182
Member Avatar for jt1250champ

This [thread](http://www.daniweb.com/software-development/cpp/threads/449797/text-file-into-1d-array) should help

Member Avatar for new_developer
0
844
Member Avatar for visweswaran28

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.

Member Avatar for tinstaafl
0
96
Member Avatar for Doze_4u

Here's a [tutorial on classes](http://www.cplusplus.com/doc/tutorial/classes/)

Member Avatar for joshua.klaser
0
351
Member Avatar for Papa_Don

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 …

Member Avatar for Jx_Man
0
8K
Member Avatar for Mononucleosis

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.

Member Avatar for tinstaafl
0
102
Member Avatar for soche123

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)

Member Avatar for rishif2
0
3K
Member Avatar for soche123
Member Avatar for soche123
0
2K
Member Avatar for harrybo

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.

Member Avatar for harrybo
0
100
Member Avatar for pwolf

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.

Member Avatar for tinstaafl
0
246

The End.