Search:
Type: Posts; User: Ashaelon
Search:
Search took 0.03 seconds.
-
I think the idea of splitting this into 4 subs is to separate each "piece" of the code: updating the display list, updating the coordinates, incrementing the value, and updating the textbox. The 6...
-
I couldn't agree more. Breakpoints seem to be an after-thought when schools teach programming when it should be one of the first things taught.
Console.WriteLine() is also very useful for...
-
Go to the top of the thread, click on Thread Tools, then Mark as Resolved. :bigyello:
-
By closing the form. Calling form.Close(); will close the form, firing all of the close events for that form.
-
When you read a file using StreamReader and ReadLine(), it reads each line as a string of text. So, you would want to do something like:
using (StreamReader sr = File.OpenText("File.txt"))
{
...
-
How big are these files? Could you simply load these files into a Dictionary or List<String[]>? Do all of the lines in the first file contain consistent formatting (something=something)?
I may...
-
I was basing mine off of this statement by you:
If those statements are indeed still true, then closing the form in the way I presented would force each form to fire their form_closing event,...
-
I don't know anything about doing this, but have you tried any of the suggestions from a google search like this or this? It appears to have been done with the source available for use.
-
To get you on the path of reading text files line by line, a simple Google search for "vb.net read text file line by line" returned several results, one of which was this result. That should show...
-
I know you said that you found a solution, but wouldn't it make more sense to, in firstforms's closing event, loop through all open forms and just close the form, which in turn would fire the closing...
-
Thanks, Shaggy Hiker. I will look into Tasks (or not?). I haven't explored that avenue yet (and may not have to?).
ThreadPool was the first option I looked into until I read about it being for...
-
I posted this in the C# forum, but this would also apply in the VB world as well. I wanted to get all possible suggestions, not just from a small subset of viewers. It is in regards to what...
-
I am wanting to run some long running tasks in multiple threads, but I am unsure what approach to take. I have read about Thread, ThreadPool, and BackgroundWorker (which I use all the time for...
-
Here is the solution that fixed this issue. I have 2 DGVs that show different data. Since they both have the same data layout, I am able to use the same procedure to handle both DGVs...
-
Thanks for the response, but the If Not IsDBNull did return properly. My DGV looks similar to the following:
1.0 | Some information here
--------------------------------------
| ...
-
Admittedly, Q20 is a bit confusing, but there is a somewhat correct answer listed there.
Technically, answer would be incremented by number1, but that isnt an answer option.
-
HA!!! Mean would have been giving you the answers, but they were all wrong.
-
There is nothing wrong with the test. I can answer all of those questions, but I'm not going to. Not being able to answer ANY of those questions would tell me that you didn't pay attention or read...
-
Is this a test? If so, is it open-book? If so, doesn't your book explain this?
If this isnt a test, your book should explain this information.
Sorry, I am not personally into doing homework...
-
Put this as the first line of code as a declaration:
Imports Excel = Microsoft.Office.Interop.Excel
Edit:
Tyson beat me to it.
-
Anyone know why the following code doesn't update the backcolor of the cells?
For Each row As DataGridViewRow In dgvUI.Rows
If Not IsDBNull(row.Cells(0).Value) Then
...
-
This was just something that was annoying me. I dont really want to disable XP Visual Styles. It's just sad that my app runs faster than the progress bar updates, especially when you see a Complete...
-
Thanks dday. I just tested it on my Vista Ultimate SP2 system and the progressbar does the same thing as on my Win7 system. At least you will get to see what I am talking about. :)
-
Maybe your version of Windows is the difference. I am using Windows 7 Enterprise SP1.
The annoyance is that when I click the button, the progress bar takes about 2 seconds to completely fill up,...
-
You could split the string by the "[" into a string array. Of course, the first array element will be blank, but the second element should contain "1] Tue.....". Your array would look like this for...
-
-
I have an application that has a ProgressBar added to it set to Continuous style. Everything seems to work great except that the progress bars seems to "fill in" slower than needed. As a test, I...
-
My situation is pretty much the same as techgnome's. I learned the basics of VB6, then gained .NET knowledge by teaching myself and experience. Trial and error. Voted the same (Too early ...).
-
You could also have done this:
Me.lblAsterisks.Text = ""
For i As Integer = 2 To 10 Step 2
Dim x As Integer = 1
Do Until x > i
...
-
Update:
I've managed to get the Win API to work (by work, I mean not crash the app with no errors). It turns out that when I changed the CharSet from ANSI to AUTO, it caused issues (I have no idea...
-
Try using the MouseCaptureChanged event for the RTB. Search for synonyms based on the selection and list them in the list box in this event.
Here is what I did as a test:
Private Sub...
-
I tried following the link you provided, but was unable to. It shows http://www.*************s.com/.... when you mouse over it. What should be in place of the *s?
Edit:
Actually, I found the...
-
I've been Googling for a solution to this and, from what I have read, it appears that I will have to resort to using a Win API to enumerate the fonts. Unfortunately, I can't seem to find a good...
-
The InstalledFontsCollection doesn't list all of the fonts that are listed when you go to Control Panel -> Fonts. Unfortunately, I am not running into a problem on my computer, but the tool that I...
-
I am trying to find a method of listing all fonts installed on a system. I attempted to use the InstalledFontsCollection, but it doesn't seem to list all of the fonts. I am not going to use the...
-
Update:
I don't know how well this will work for everything, but I seem to have made it work for my current XML file using:
Private Sub readNodes(ByRef nodes As XmlNodeList)
For...
-
Just as a note on this, something I have run into with performance with VBA and Excel. If you are doing any type of cell decorating (ie changing text alignment, formats, colors, etc) you will see a...
-
If there are no other spaces in the string, then you could split the string by the space (Str.Split(" ")) into an array and only add the first array element to the rtb. If there are other spaces in...
-
Try a for loop:
Dim linesList As New List(Of String)(File.ReadAllLines("C:\test1.txt"))
For i as Integer = 1 to TextBox2.Text 'you may want to verify this isNumeric first
...
-
I tried using .value instead of innertext and it returns nothing, even for node3.
|
Click Here to Expand Forum to Full Width
|