Search:

Type: Posts; User: Ashaelon

Page 1 of 4 1 2 3 4

Search: Search took 0.03 seconds.

  1. Replies
    9
    Views
    1,213

    Re: Making this code into a sub program

    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...
  2. Replies
    6
    Views
    612

    VS 2010 Re: I need some help guys. Please.

    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...
  3. Re: Writing/Reading text in a file at certain position

    Go to the top of the thread, click on Thread Tools, then Mark as Resolved. :bigyello:
  4. Replies
    18
    Views
    1,720

    Re: clean way for telling if a form is present

    By closing the form. Calling form.Close(); will close the form, firing all of the close events for that form.
  5. Re: Writing/Reading text in a file at certain position

    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"))
    {
    ...
  6. Re: Writing/Reading text in a file at certain position

    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...
  7. Replies
    18
    Views
    1,720

    Re: clean way for telling if a form is present

    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,...
  8. Replies
    20
    Views
    1,955

    Re: List Veiw Printing Help

    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.
  9. Replies
    7
    Views
    843

    Re: VS 2012 Text based calculator help

    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...
  10. Replies
    18
    Views
    1,720

    Re: clean way for telling if a form is present

    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...
  11. Replies
    3
    Views
    1,554

    Re: Best Approach to using multiple threads

    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...
  12. Replies
    0
    Views
    524

    Best Approach to using multiple threads

    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...
  13. Replies
    3
    Views
    1,554

    Best Approach to using multiple threads

    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...
  14. VS 2010 Re: Update DataGridView Cell Backcolor issue

    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...
  15. VS 2010 Re: Update DataGridView Cell Backcolor issue

    Thanks for the response, but the If Not IsDBNull did return properly. My DGV looks similar to the following:


    1.0 | Some information here
    --------------------------------------
    | ...
  16. Replies
    22
    Views
    1,055

    Re: Is any one good with Visual Basic .NET?

    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.
  17. Replies
    22
    Views
    1,055

    Re: Is any one good with Visual Basic .NET?

    HA!!! Mean would have been giving you the answers, but they were all wrong.
  18. Replies
    22
    Views
    1,055

    Re: Is any one good with Visual Basic .NET?

    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...
  19. Replies
    22
    Views
    1,055

    Re: Is any one good with Visual Basic .NET?

    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...
  20. Replies
    31
    Views
    15,303

    VS 2010 Re: Opening Microsoft Excel with VB

    Put this as the first line of code as a declaration:


    Imports Excel = Microsoft.Office.Interop.Excel


    Edit:

    Tyson beat me to it.
  21. VS 2010 [RESOLVED] Update DataGridView Cell Backcolor issue

    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
    ...
  22. Replies
    6
    Views
    850

    VS 2010 Re: ProgressBar Annoyance

    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...
  23. Replies
    6
    Views
    850

    VS 2010 Re: ProgressBar Annoyance

    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. :)
  24. Replies
    6
    Views
    850

    VS 2010 Re: ProgressBar Annoyance

    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,...
  25. Replies
    10
    Views
    975

    VS 2010 Re: repeated pattern in string

    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...
  26. Re: Data in MS Access Database our of order with VB 2010 Interface

    Can you post some code?
  27. Replies
    6
    Views
    850

    VS 2010 ProgressBar Annoyance

    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...
  28. Replies
    33
    Views
    2,507

    Poll: Re: Poll - Quick show of hands

    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 ...).
  29. Replies
    7
    Views
    1,539

    VS 2010 Re: Nested Loop Help Plz

    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
    ...
  30. Replies
    8
    Views
    8,447

    Re: List all fonts on the current system

    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...
  31. VS 2010 Re: Replace words with a xml file ( Please Help me)

    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...
  32. Replies
    8
    Views
    8,447

    Re: List all fonts on the current system

    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...
  33. Replies
    8
    Views
    8,447

    Re: List all fonts on the current system

    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...
  34. Replies
    8
    Views
    8,447

    Re: List all fonts on the current system

    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...
  35. Replies
    8
    Views
    8,447

    List all fonts on the current system

    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...
  36. Replies
    3
    Views
    660

    VS 2010 Re: Parsing an XML file

    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...
  37. Replies
    17
    Views
    8,396

    Re: Need some new eyes for refactoring....

    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...
  38. VS 2010 Re: Display only first column in textbox?

    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...
  39. Replies
    3
    Views
    947

    VS 2010 Re: Cut lines in text file?

    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
    ...
  40. Replies
    3
    Views
    660

    VS 2010 Re: Parsing an XML file

    I tried using .value instead of innertext and it returns nothing, even for node3.
Results 1 to 40 of 129
Page 1 of 4 1 2 3 4



Click Here to Expand Forum to Full Width